Documentation
¶
Index ¶
- Variables
- func InitializeJaeger(serviceName string, additionalAttributes ...attribute.KeyValue) error
- func InjectSpanName(ctx context.Context, name string) context.Context
- func Shutdown() error
- func SpanFromContext(ctx context.Context, name string) (context.Context, trace.Span)
- func SpanNameFormatter(operation string, req *http.Request) string
- func SpanNameFromContext(ctx context.Context) string
- func Trace() trace.Tracer
- func UninjectSpanName(ctx context.Context) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidHost = errors.New("jaeger: invalid agent host")
ErrInvalidHost is used when the Jaeger Agent host is either not given or invalid.
Functions ¶
func InitializeJaeger ¶
InitializeJaeger initializes a tracer provider that sends traces to Jaeger, and then sets it as the global tracer provider. additionalAttributes is an optional parameter that specifies additional attributes that should be added to every trace.
func SpanFromContext ¶
func SpanNameFromContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.