datadog

package module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

README

opentelemetry-go datadog propagator

Package providing OpenTelemetry context propagation for the Datadog propagation format.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL