Documentation ¶
Overview ¶
Package loggingtracer provides a trace.Tracer that wraps trace.DefaultTracer and logs span starts/ends and durations. It is intended for local debugging only, as usage in production might cause noisy and/or verbose logs.
To use this logger, call Initialize(). To customize the logger function, override Logf.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logf func(format string, v ...interface{}) = sklog.Infof
Logf is the logging function used by this package.
Functions ¶
func Initialize ¶
func Initialize()
Initialize wraps trace.DefaultTracer with a trace.Tracer implementation that logs span starts/ends using the Logf function defined in this package.
This is intended for local debugging only. Usage in production might cuase noisy/verbose logs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.