Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertTraceContextToSpanContext ¶
func ConvertTraceContextToSpanContext(traceCtx TraceContext) (ddtrace.SpanContext, error)
ConvertTraceContextToSpanContext converts a TraceContext object to a SpanContext that can be used by dd-trace.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener creates a function execution span and injects it into the context
func MakeListener ¶
MakeListener initializes a new trace lambda Listener
func (*Listener) HandlerFinished ¶
HandlerFinished ends the function execution span and stops the tracer
func (*Listener) HandlerStarted ¶
HandlerStarted sets up tracing and starts the function execution span if Datadog tracing is enabled
type TraceContext ¶
TraceContext is map of headers containing a Datadog trace context
func ConvertCurrentXrayTraceContext ¶
func ConvertCurrentXrayTraceContext(ctx context.Context) TraceContext
ConvertCurrentXrayTraceContext returns the current X-Ray trace context converted to Datadog headers, taking into account the current subsegment. It is designed for sending Datadog trace headers from functions instrumented with the X-Ray SDK.