Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTextMapPropagator ¶
func NewTextMapPropagator(additional ...propagation.TextMapPropagator) propagation.TextMapPropagator
NewTextMapPropagator returns a default propagator, that will connect all components with the same mechanism. It should be used in all places that require a propagator. Receives an optional list of additional propagators, that will added to the default one. Use this only for some specific cases (usually for integration with third-party or old systems).
Types ¶
type Propagator ¶
type Propagator interface {
Inject(ctx context.Context, headers http.Header)
Extract(ctx context.Context, headers http.Header) context.Context
}
func NewPropagator ¶
func NewPropagator() Propagator
type TracerProvider ¶
func NewTracerProvider ¶
func NewTracerProvider(kind SpanKind) TracerProvider
Click to show internal directories.
Click to hide internal directories.