Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithTraceContext ¶ added in v0.9.0
ContextWithTraceContext uses the incoming event and/or context object payloads to determine the current TraceContext and then adds that TraceContext to the context object
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 ¶ added in v0.9.0
MakeListener initializes a new trace lambda Listener
func (*Listener) HandlerFinished ¶
HandlerFinished finishes the function execution span (if it was started) and stops the tracer
func (*Listener) HandlerStarted ¶
HandlerStarted creates the function execution span representing the Lambda function execution and adds that span to the context so that the user can create child spans (if Datadog tracing is enabled)
type TraceContext ¶ added in v0.9.0
TraceContext is map of headers containing a Datadog trace context
func GetTraceHeaders ¶
func GetTraceHeaders(ctx context.Context, useCurrentSegmentAsParent bool) TraceContext
GetTraceHeaders retrieves the current trace headers that should be added to outbound requests