Documentation ¶
Overview ¶
Package telemetry provides the telemetry for fleet components.
Index ¶
Constants ¶
View Source
const ( // EnvTraceID is the environment variable key for the trace ID EnvTraceID = "DATADOG_TRACE_ID" // EnvParentID is the environment variable key for the parent ID EnvParentID = "DATADOG_PARENT_ID" )
Variables ¶
This section is empty.
Functions ¶
func EnvFromSpanContext ¶
func EnvFromSpanContext(spanCtx ddtrace.SpanContext) []string
EnvFromSpanContext returns the environment variables for the span context.
func SpanContextFromContext ¶
func SpanContextFromContext(ctx context.Context) (ddtrace.SpanContext, bool)
SpanContextFromContext extracts the span context from the context if available.
func SpanContextFromEnv ¶
func SpanContextFromEnv() (ddtrace.SpanContext, bool)
SpanContextFromEnv injects the traceID and parentID from the environment into the context if available.
Types ¶
Click to show internal directories.
Click to hide internal directories.