Skip to content

Commit 213913f

Browse files
committed
attempted code fix
1 parent 9a1fa20 commit 213913f

File tree

1 file changed

+1
-1
lines changed
  • packages/dd-trace/src/opentracing/propagation

1 file changed

+1
-1
lines changed

packages/dd-trace/src/opentracing/propagation/text_map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ class TextMapPropagator {
595595

596596
_extractBaggageItems (carrier, spanContext) {
597597
if (!this._hasPropagationStyle('extract', 'baggage')) return
598-
if (!carrier.baggage) return
598+
if (!carrier || !carrier.baggage) return
599599
if (!spanContext) return
600600
const baggages = carrier.baggage.split(',')
601601
for (const keyValue of baggages) {

0 commit comments

Comments
 (0)