Type Alias sentry_core::TracesSampler
source ยท pub type TracesSampler = dyn Fn(&TransactionContext) -> f32 + Send + Sync;
Expand description
A function to be run for each new transaction, to determine the rate at which it should be sampled.
This function may choose to respect the sampling of the parent transaction (ctx.sampled
)
or ignore it.