Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Propagator ¶
type Propagator struct{}
Propagator serializes Span Context to/from Datadog headers.
Example Datadog format: X-Datadog-Trace-Id: 16701352862047361693 X-Datadog-Parent-Id: 2939011537882399028
func (Propagator) Extract ¶
func (dd Propagator) Extract(ctx context.Context, carrier propagation.TextMapCarrier) context.Context
Extract gets a context from the carrier if it contains Datadog headers.
func (Propagator) Fields ¶
func (dd Propagator) Fields() []string
Fields returns list of fields set with Inject.
func (Propagator) Inject ¶
func (dd Propagator) Inject(ctx context.Context, carrier propagation.TextMapCarrier)
Inject injects a context to the carrier following Datadog format.
Click to show internal directories.
Click to hide internal directories.