Add possibility to sample subsequent traces based on previous trace sampling decision #15754
Labels
Package: core
Issues related to the Sentry Core SDK
Content-Length: 210298 | pFad | http://github.com/getsentry/sentry-javascript/issues/15754
C3Fetched URL: http://github.com/getsentry/sentry-javascript/issues/15754
Alternative Proxies:
Description
We should provide a way for users to make a sampling decision for a trace based on the sampling decision of the previous trace (i.e. the one we link since #14992). Concretely, we propose to add an option to
tracesSampler
:where
previousTraceSampled
is typed asboolean | undefined
. The semantics for all values:true
- previous trace was positively sampled and sent to Sentry (this makes no guarantees that this trace in fact was stored; it can still be dropped by Relay)false
- previous trace was negatively sampled and not Sent to Sentryundefined
- multiple implicationsThis allows users to ensure that a trace chain is longer or in general more complete.
Important notes:
The text was updated successfully, but these errors were encountered: