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
As required by Relay and the EAP, the sample_rate in the DSC must specify the actual sample rate of the trace. If an SDK overrides the sample rate of an incoming trace, for example by invoking the tracesSampler, the new rate must be set on the DSC.
Note that usually the DSC is supposed to be immutable, which includes the sample rate, to ensure complete traces. Invoking the tracesSampler purposefully opts out of this and modifies the DSC.
Implementation
On an incoming trace, the DSC's sample_rate is updated if:
an explicit sampling decision is forced, e.g. startTransaction(sampled: true)
Description
As required by Relay and the EAP, the
sample_rate
in the DSC must specify the actual sample rate of the trace. If an SDK overrides the sample rate of an incoming trace, for example by invoking thetracesSampler
, the new rate must be set on the DSC.Note that usually the DSC is supposed to be immutable, which includes the sample rate, to ensure complete traces. Invoking the
tracesSampler
purposefully opts out of this and modifies the DSC.Implementation
On an incoming trace, the DSC's
sample_rate
is updated if:startTransaction(sampled: true)
tracesSampler
is invokedtracesSampleRate
is usedStakeholder(s)
@jan-auer
Team(s)
Mobile, Web Backend, Web Frontend, GDX
SDKs
SDKs
The text was updated successfully, but these errors were encountered: