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
feat(dynamic-sampling): Introduce a new rule to raise the floor of the sample rate (#4801)
Every project can define a minimum ("floor") sample rate. Relay will
evaluate two rules for each transaction for the base sample rate.
trace rule: as usual.
floor rule: ensures the minimum rate for the project.
Relay should base its dynamic sampling decision on the larger of the two
rates.
Balancing rules should be applied to the floor rule to apply consistent
up-sampling of rare transactions
Example
```
Trace sample rate: 0.05
Floor Rule: 0.5
Transaction Rule: x * 1.5
```
Result:
```
Base rate: 0.5 > 0.05 => 0.5
After applying balancing rules:
0.5 * 1.5 = 0.75
```
---
Only the first rule is applied to make sure local transaction based
rules apply before trace based rules.
Refs: TET-565
0 commit comments