helidon-io / helidon

Java libraries for writing microservices
https://helidon.io
Apache License 2.0
3.44k stars 562 forks source link

NPE in io.opentelemetry.api.baggage.BaggageEntry.getValue() using alternatives to deprecated Span baggage calls #8882

Closed RickyFrost closed 1 week ago

RickyFrost commented 2 weeks ago

Environment Details

Problem Description

Changes in Helidon SE 4.0.5 io.helidon.tracing.Span deprecated longstanding baggage calls. Specifically String baggage(String key) But trying to use the alternatives in some cases cause NPE when baggage is untouched in the span.

Steps to reproduce

See uploaded standalone test cases BaggageOptionalTest.java.txt