Documentation ¶
Index ¶
Constants ¶
View Source
const TRACING_INSTRUMENTATION_NAME = "clogger"
Variables ¶
This section is empty.
Functions ¶
func InitTracing ¶
func InitTracing(config TracingConfig) *tracesdk.TracerProvider
Types ¶
type TracingConfig ¶
type TracingConfig struct { // The name of the service that is doing tracing ServiceName string // If true, only log spans, don't send them off (Default: false) Debug bool // The rate at which to sample (0 - 1), where 0 (default) is no sampling (send no spans) // and 1 is send all the spans SamplingRate float64 // The span propagation format (Defaults to B2) Propagator propagation.TextMapPropagator }
Click to show internal directories.
Click to hide internal directories.