Documentation
¶
Overview ¶
Package tracing contains orchestration code for opentracing. Specifically, it is used to build an integration with Jaeger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Flags = flag.Flags{ &flag.Boolean{ Name: "tracer-disabled", Usage: "If true, disables opentracing", EnvVar: "TRACER_DISABLED", Destination: &config.disabled, }, &flag.String{ Name: "tracer-host", Usage: "Host for opentracing", EnvVar: "TRACER_HOST", Value: "jaeger:6831", Destination: &config.host, }, &flag.Float64{ Name: "tracer-sample-rate", Usage: "Sample rate for traces", EnvVar: "TRACER_SAMPLE_RATE", Value: 1, Destination: &config.sampleRate, }, &flag.Duration{ Name: "tracer-flush-interval", Usage: "Buffer flushing interval for traces", EnvVar: "TRACER_BUFFER_FLUSH_INTERVAL", Value: time.Second, Destination: &config.bufferFlushInterval, }, }
Flags contains all command-line flags that can be used to configure tracing.
Functions ¶
func AddError ¶
func AddError(span opentracing.Span, err error)
AddError adds the provided error to the span.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.