extension

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DdTraceId              ddTraceContext = "x-datadog-trace-id"
	DdParentId             ddTraceContext = "x-datadog-parent-id"
	DdSpanId               ddTraceContext = "x-datadog-span-id"
	DdSamplingPriority     ddTraceContext = "x-datadog-sampling-priority"
	DdInvocationError      ddTraceContext = "x-datadog-invocation-error"
	DdInvocationErrorMsg   ddTraceContext = "x-datadog-invocation-error-msg"
	DdInvocationErrorType  ddTraceContext = "x-datadog-invocation-error-type"
	DdInvocationErrorStack ddTraceContext = "x-datadog-invocation-error-stack"

	DdSeverlessSpan  ddTraceContext = "dd-tracer-serverless-span"
	DdLambdaResponse ddTraceContext = "dd-response"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionManager

type ExtensionManager struct {
	// contains filtered or unexported fields
}

func BuildExtensionManager

func BuildExtensionManager(isUniversalInstrumentation bool) *ExtensionManager

func (*ExtensionManager) Flush

func (em *ExtensionManager) Flush() error

func (*ExtensionManager) IsExtensionRunning

func (em *ExtensionManager) IsExtensionRunning() bool

func (*ExtensionManager) SendEndInvocationRequest added in v1.8.0

func (em *ExtensionManager) SendEndInvocationRequest(ctx context.Context, functionExecutionSpan ddtrace.Span, cfg ddtrace.FinishConfig)

func (*ExtensionManager) SendStartInvocationRequest added in v1.8.0

func (em *ExtensionManager) SendStartInvocationRequest(ctx context.Context, eventPayload json.RawMessage) context.Context

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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