Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPFormat ¶
type HTTPFormat struct{}
HTTPFormat propagator serializes SpanContext to/from HTTP Headers.
func (HTTPFormat) Extract ¶
func (hf HTTPFormat) Extract(ctx context.Context, carrier propagation.TextMapCarrier) context.Context
Extract extracts a context from the carrier if it contains HTTP headers.
func (HTTPFormat) Fields ¶
func (hf HTTPFormat) Fields() []string
func (HTTPFormat) Inject ¶
func (hf HTTPFormat) Inject(ctx context.Context, carrier propagation.TextMapCarrier)
Inject injects a context into the carrier as HTTP headers.
Click to show internal directories.
Click to hide internal directories.