Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTracePropagator ¶
func NewTracePropagator() propagation.TextMapPropagator
NewTracePropagator creates a new propagator.
Types ¶
type TracePropagator ¶
type TracePropagator struct{}
TracePropagator implements propagation.TracePropagator to propagate traces in HTTP headers for Google Cloud Platform and Stackdriver Trace.
func (TracePropagator) Extract ¶
func (f TracePropagator) Extract(ctx context.Context, carrier propagation.TextMapCarrier) context.Context
Extract returns the context from a given carrier.
func (TracePropagator) Fields ¶
func (f TracePropagator) Fields() []string
func (TracePropagator) Inject ¶
func (f TracePropagator) Inject(ctx context.Context, carrier propagation.TextMapCarrier)
Inject injects the span into a given carrier.
Click to show internal directories.
Click to hide internal directories.