File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed
main/java/datadog/trace/core
test/groovy/datadog/trace/core Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -367,9 +367,7 @@ public DDSpanContext(
367367 propagationTags != null
368368 ? propagationTags
369369 : traceCollector .getTracer ().getPropagationTagsFactory ().empty ();
370- if (parentId == 0 ) { // higher bits of traceID are only used in root span
371- this .propagationTags .updateTraceIdHighOrderBits (this .traceId .toHighOrderLong ());
372- }
370+ this .propagationTags .updateTraceIdHighOrderBits (this .traceId .toHighOrderLong ());
373371 this .injectBaggageAsTags = injectBaggageAsTags ;
374372 if (origin != null ) {
375373 setOrigin (origin );
Original file line number Diff line number Diff line change @@ -286,24 +286,6 @@ class DDSpanContextTest extends DDCoreSpecification {
286286 span. context. encodedResourceName == -2
287287 }
288288
289- def " higher order bits of 128bit traceID is only set as PTag in root span" () {
290- when :
291- def parent = tracer. buildSpan(" fakeOperation" )
292- .withServiceName(" fakeService" )
293- .withResourceName(" fakeResource" )
294- .start()
295-
296- def child = tracer. buildSpan(" fakeOperation" )
297- .withServiceName(" fakeService" )
298- .withResourceName(" fakeResource" )
299- .asChildOf(parent)
300- .start()
301-
302- then :
303- parent. context(). getPropagationTags(). getTraceIdHighOrderBits() != 0
304- // child.context().getPropagationTags().getTraceIdHighOrderBits() == 0
305- }
306-
307289 private static String dataTag (String tag ) {
308290 " _dd.${ tag} .json"
309291 }
You can’t perform that action at this time.
0 commit comments