Type Alias TracesSampler
pub type TracesSampler = dyn Fn(&TransactionContext) -> f32 + Sync + Send;
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.