Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TraceContextFetcherForResponseHeaders = RestoreOrCreateTraceContextWithoutAPM
Functions ¶
func ApmTraceResponseHeaders ¶ added in v0.5.0
func RestoreOrCreateTraceContextWithoutAPM ¶ added in v0.5.0
RestoreOrCreateTraceContextWithoutAPM is designed as a fallback to enable trace propagation even if Elastic APM is not configured or disabled. It uses some Elastic apm go agent functions for compatibility but does not require the middleware to be active.
func UseElasticApmTraceContext ¶ added in v0.5.0
UseElasticApmTraceContext extracts the apm.TraceContext from the apm.Transaction stored in the Context. The transaction is contained in the context if Elastic APM is enabled and the apmhttp handler has started the transaction. See https://pkg.go.dev/go.elastic.co/apm/module/apmhttp/v2@v2.1.0#StartTransactionWithBody
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.