Ensure baggage can always be added to
Otherwise it could be assigned to a Collections.emptyMap() Fixes https://github.com/DataDog/dd-trace-java/issues/1036
This commit is contained in:
parent
5fecfa3617
commit
63c6db0cd5
|
@ -103,7 +103,7 @@ public class DDSpanContext implements io.opentracing.SpanContext {
|
|||
if (baggageItems == null) {
|
||||
this.baggageItems = new ConcurrentHashMap<>(0);
|
||||
} else {
|
||||
this.baggageItems = baggageItems;
|
||||
this.baggageItems = new ConcurrentHashMap<>(baggageItems);
|
||||
}
|
||||
|
||||
if (tags != null) {
|
||||
|
|
Loading…
Reference in New Issue