File tree 1 file changed +5
-2
lines changed
dd-trace-core/src/main/java/datadog/trace/common/sampling
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
package datadog .trace .common .sampling ;
2
2
3
+ import static datadog .trace .api .sampling .PrioritySampling .SAMPLER_DROP ;
4
+ import static datadog .trace .api .sampling .PrioritySampling .SAMPLER_KEEP ;
5
+
3
6
import datadog .trace .api .sampling .SamplingMechanism ;
4
7
import datadog .trace .core .CoreSpan ;
5
8
import java .time .Clock ;
@@ -38,10 +41,10 @@ public <T extends CoreSpan<T>> void setSamplingPriority(final T span) {
38
41
39
42
if (shouldSample ()) {
40
43
log .debug ("Set SAMPLER_KEEP for span {}" , span .getSpanId ());
41
- span .setSamplingPriority (PrioritySampling . SAMPLER_KEEP , SamplingMechanism .APPSEC );
44
+ span .setSamplingPriority (SAMPLER_KEEP , SamplingMechanism .APPSEC );
42
45
} else {
43
46
log .debug ("Set SAMPLER_DROP for span {}" , span .getSpanId ());
44
- span .setSamplingPriority (PrioritySampling . SAMPLER_DROP , SamplingMechanism .APPSEC );
47
+ span .setSamplingPriority (SAMPLER_DROP , SamplingMechanism .APPSEC );
45
48
}
46
49
}
47
50
You can’t perform that action at this time.
0 commit comments