I have a PoC repository at https://github.com/dweber019/spring-tracing-example to use B3. The only thing missing is baggage.

If you start the spring project and use the swagger UI or https://github.com/dweber019/spring-tracing-example/blob/master/src/main/resources/tracing.http I would expect to have baggage logged at https://github.com/dweber019/spring-tracing-example/blob/master/src/main/java/ch/basler/experimental/tracingexample/CatFactsController.java#L25.

This is not the case and it's not propagated within resttemplate too.

Check issues https://github.com/spring-projects/spring-boot/issues/33516 and https://github.com/micrometer-metrics/micrometer-samples/tree/main/baggage-consumer

Comment From: mhalbritter

Your http file use multiple B3 headers. Have you tried the "merged" B3 header which i used here? https://github.com/spring-projects/spring-boot/issues/33516#issuecomment-1351434708

Note: if you don't include the b3 header, the baggage is ignored, too.

Comment From: dweber019

Yes added the example I used with the same negative result here https://github.com/dweber019/spring-tracing-example/blob/master/src/main/resources/tracing.http#L6.

IMHO it should not matter, if I use one or multiple headers as this is up to the caller to decide what he uses as long as it's conform to the specification of B3. We even have software which we can't change regarding this aspect.

Comment From: dweber019

Found the error. misconfiguration in the application.yaml. I have updated the repo.