Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -392,8 +392,6 @@ public void setSpanSamplingPriority(double rate, int limit) {
if (limit != Integer.MAX_VALUE) {
unsafeSetTag(SPAN_SAMPLING_MAX_PER_SECOND_TAG, limit);
}
propagationTags.updateTraceSamplingPriority(
PrioritySampling.USER_KEEP, SamplingMechanism.SPAN_SAMPLING_RATE);
isSelectedBySingleSpanSampling = true;
}
}
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -229,7 +229,8 @@ class DDSpanContextTest extends DDCoreSpecification {
// single span sampling should not change the trace sampling priority
context.getSamplingPriority() == UNSET
context.effectiveSamplingPriority == USER_KEEP
context.getPropagationTags().createTagMap() == ["_dd.p.dm":"-" + SPAN_SAMPLING_RATE]
// make sure the `_dd.p.dm` tag has not been set by single span sampling
context.getPropagationTags().createTagMap() == [:]

where:
rate | limit
Expand Down