Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Prevent filtered traces from biasing the sample rate (#1018)
The `URLFilter` and `MethodsFilter` implementations are side-effect free, and are safe to run in any order. However, `sampler.shouldTrace` is not, a result of `true` from it has the side effect of altering the trace window. This commit fixes this by calling the side-effecting sampler method last.
- Loading branch information