package
0.0.0-20230421061608-abdf862ceccd
Repository: https://github.com/bwplotka/tracing-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

DoInSpan does `f` function inside span using tracer in the context.
GetSpan returns current span or noopSpan if no span was created.
NewTracer creates new instance of Tracer with given exporter builder.
NewWriterExporter returns the writer exporter for spans.
StartSpan creates spans using tracer in the context.
TraceIDRatioBasedSampler samples a given fraction of traces.
WithExporter sets additional exporter builders for spans.
WithSampler sets sampler, by default there is no sampler.
WithServiceName sets service name that will be in attributes of all spans created by this tracer in "service.name" key.
No description provided by the author

# Structs

Tracer is the root tracing entity that can enables creation of spans, and its export to the desired backends in a form of traces.

# Interfaces

No description provided by the author
Span is the individual component of a trace.

# Type aliases

No description provided by the author
No description provided by the author
Option sets the value of an option for a Config.
No description provided by the author
TracerStartSpanOption sets the value in tracerStartSpanOptions.