FrankChen021 / bithon

An observability platform mainly for Java
Apache License 2.0
16 stars 5 forks source link

Fix flaky UT #728

Closed FrankChen021 closed 7 months ago

FrankChen021 commented 7 months ago

The ProbabilisticSamplerTransform previously uses random-based calculations to determine whether to keep the input. For UT, this randomness causes flaky. This improves the implementation by using a determinant calculate which is already used in tracing sampling algorithm.