@@ -8,12 +8,12 @@ const { channel } = require('dc-polyfill')
88const DatadogSpan = require ( '../opentracing/span' )
99const id = require ( '../id' )
1010const tagger = require ( '../tagger' )
11+ const { MANUAL_DROP , MANUAL_KEEP , SAMPLING_PRIORITY } = require ( '../../../../ext/tags' )
12+ const { DD_MAJOR } = require ( '../../../../version' )
1113const { MAX_META_VALUE_LENGTH } = require ( '../encode/tags-processors' )
1214const { encode : encodeMsgpack } = require ( '../msgpack' )
1315const NativeSpanContext = require ( './span_context' )
1416const { OpCode } = require ( './index' )
15- const { MANUAL_DROP , MANUAL_KEEP , SAMPLING_PRIORITY } = require ( '../../../../ext/tags' )
16- const { DD_MAJOR } = require ( '../../../../version' )
1717
1818// Republished from the `addTags` override so subscribers (e.g. the wall
1919// profiler's web-tag refresh) still receive tag updates on the native path.
@@ -389,6 +389,7 @@ class NativeDatadogSpan extends DatadogSpan {
389389
390390 return spanContext
391391 }
392+
392393 /**
393394 * Override `setTag` for a single-tag fast path that avoids the
394395 * `{ [key]: value }` literal + parsedTags round-trip the batched
@@ -609,7 +610,6 @@ class NativeDatadogSpan extends DatadogSpan {
609610
610611module . exports = NativeDatadogSpan
611612
612-
613613function isSamplingPriorityTag ( key ) {
614614 return key === MANUAL_KEEP || key === MANUAL_DROP || key === SAMPLING_PRIORITY
615- }
615+ }
0 commit comments