The new releases of klog (via klogr) and logr expose support for call traces via a new WithCallDepth API in logr. The new klogr can be configured to pass structured log entries into klog instead of turning them into a single text message.