Closed Xyaren closed 2 weeks ago
Right, fortunately with opentelemetry you have the option to get the Baggage using getBaggage() turn it into a builder, update it and store it again.
https://github.com/open-telemetry/opentelemetry-java/issues/2553
I feel this might be an unintended restriction due to the ConcurrentHashMap.
What would my alternative be to remove a baggage Item ?
What would my alternative be to remove a baggage Item ?
Do we need one? It looks like OpenTracing didn't have a way to remove baggage:
Granted it's also not clear either what should happen when calling OpenTracing's Span.setBaggageItem
with a null
value.
I can overwrite them but not remove them ? Sounds quuestionable.
Empty strings it is then...
Closing in favor of #7848
What Does This Do
Prevent NPE when deleting baggage value by
setBaggageItem("key", null)
Motivation
NPE when trying to remove a baggage item.
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issue