Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
khanayan123 committed Feb 6, 2025
1 parent cde9361 commit 8167ab2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dd-trace/src/opentracing/propagation/text_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ class TextMapPropagator {

const tid = traceId.substring(0, 16)

if (tid === zeroTraceId) return
// don't set upper 64 bits if they are all zeros or 128 bit trace id generation is disabled
if (tid === zeroTraceId || this._config.traceId128BitGenerationEnabled === false) return

spanContext._trace.tags['_dd.p.tid'] = tid
}
Expand Down

0 comments on commit 8167ab2

Please sign in to comment.