We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b6a83a commit 98e733fCopy full SHA for 98e733f
1 file changed
packages/dd-trace/src/priority_sampler.js
@@ -122,7 +122,10 @@ class PrioritySampler {
122
const context = this._getContext(span)
123
const root = context._trace.started[0]
124
125
- if (!root) return // noop span
+ if (!root) {
126
+ log.error('Skipping the setPriority on noop span')
127
+ return // noop span
128
+ }
129
130
context._sampling.priority = samplingPriority
131
context._sampling.mechanism = mechanism
0 commit comments