You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To always have access to a trace and span ID, add a new internal PropagationContext property to the scope, an object holding a traceId and spanId and an optional dynamicSamplingContext.
Populate the traceId and spanId with valid, random IDs on construction.
You may update the traceId and dynamicSamplingContext from the request headers during an incoming request or if the process was exposed to a SENTRY_TRACE and/or SENTRY_BAGGAGE environment variable if performance is disabled.
The Dynamic Sampling Context should be lazily constructed once needed, using a new fromOptions function that constructs the DSC based on the client options if performance is disabled.
When captureEvent is called, you may use these values on the scope as a fallback to construct the trace context and envelope header item if no transaction exists in the SDK.
For outgoing HTTP requests, use the values in the scope as a fallback if no transaction is present. The sentry-trace will contain a trailing -0 indicating an unsampled transaction.
The text was updated successfully, but these errors were encountered:
Tasks
To always have access to a trace and span ID, add a new internal
PropagationContext
property to the scope, an object holding atraceId
andspanId
and an optionaldynamicSamplingContext
.Populate the
traceId
andspanId
with valid, random IDs on construction.You may update the
traceId
anddynamicSamplingContext
from the request headers during an incoming request or if the process was exposed to aSENTRY_TRACE
and/orSENTRY_BAGGAGE
environment variable if performance is disabled.The Dynamic Sampling Context should be lazily constructed once needed, using a new
fromOptions
function that constructs the DSC based on the client options if performance is disabled.When
captureEvent
is called, you may use these values on the scope as a fallback to construct thetrace
context and envelope header item if no transaction exists in the SDK.For outgoing HTTP requests, use the values in the scope as a fallback if no transaction is present. The
sentry-trace
will contain a trailing-0
indicating an unsampled transaction.The text was updated successfully, but these errors were encountered: