tracing

package
v0.0.0-...-5ddf7d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2022 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const TRACING_INSTRUMENTATION_NAME = "clogger"

Variables

This section is empty.

Functions

func GetTracer

func GetTracer() trace.Tracer

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL