Ensure baggage can always be added to
Otherwise it could be assigned to a Collections.emptyMap()
Fixes
@@ -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) {
