Improves the logging by switching to `tracing` for a better log output. Besides that, it also adds a trace for the function being executed.