Skip to content

Commit

Permalink
attempted code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ida613 committed Feb 6, 2025
1 parent 9a1fa20 commit 213913f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dd-trace/src/opentracing/propagation/text_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ class TextMapPropagator {

_extractBaggageItems (carrier, spanContext) {
if (!this._hasPropagationStyle('extract', 'baggage')) return
if (!carrier.baggage) return
if (!carrier || !carrier.baggage) return
if (!spanContext) return
const baggages = carrier.baggage.split(',')
for (const keyValue of baggages) {
Expand Down

0 comments on commit 213913f

Please sign in to comment.