Fix sampling bug.
This commit is contained in:
parent
8928716f70
commit
4a7648dd9d
|
|
@ -40,9 +40,10 @@ public class SamplingService implements BootService {
|
|||
if (on) {
|
||||
if (rollingSeed % Config.Agent.SAMPLING_CYCLE != 0) {
|
||||
segment.setSampled(false);
|
||||
rollingSeed++;
|
||||
}else{
|
||||
this.rollingSeed = 1;
|
||||
}
|
||||
rollingSeed++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue