Extracts trace propagation data from the current span or from the client's scope (via transaction or propagation
context) and serializes it to sentry-trace and baggage values. These values can be used to propagate
a trace via our tracing Http headers or Html <meta> tags.
This function also applies some validation to the generated sentry-trace and baggage values to ensure that
only valid strings are returned.
When an external propagation context is registered (e.g. via the OTLP integration) and there is no active
Sentry span, this function returns an empty object to defer outgoing request propagation to the external
propagator (e.g. an OpenTelemetry propagator).
If (@param options.propagateTraceparent) is true, the function will also generate a traceparent value,
following the W3C traceparent header format.
Extracts trace propagation data from the current span or from the client's scope (via transaction or propagation context) and serializes it to
sentry-traceandbaggagevalues. These values can be used to propagate a trace via our tracing Http headers or Html<meta>tags.This function also applies some validation to the generated sentry-trace and baggage values to ensure that only valid strings are returned.
When an external propagation context is registered (e.g. via the OTLP integration) and there is no active Sentry span, this function returns an empty object to defer outgoing request propagation to the external propagator (e.g. an OpenTelemetry propagator).
If (@param options.propagateTraceparent) is
true, the function will also generate atraceparentvalue, following the W3C traceparent header format.