-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenTelemetry and tagged baggage does not create a tag #375
Comments
@mhalbritter so in Micrometer 1.0.x I fixed the bug in OTel and that got propagated forward. However with Brave it works with 1.0.x if you add the separate tag setting handler, but it won't work with 1.1.x onwards. That's because we've aligned that the Brave's baggage should work like OTel one which means that it has a value only within the scope. The handler however is called after the span is finished so it's way after the baggage scope gets closed. So what I did is I added a constructor for The only potential problem I see is that someone creates a span but doesn't it put it in scope and wants to set a baggage on it, but baggage as such must live within a scope so I can't imagine someone creating a span not in scope and then a baggage in scope. If someone wants baggage they need to have a span in scope too 🤷 |
Thanks. I've opened spring-projects/spring-boot#38724. |
@marcingrzejszczak We have the following issue after upgrading spring boot to 3.1.4 version. At the code snipet below we invoke the set method for example with
If we don't invoke the Any idea? Thanks in advance! |
FYI: This is a cross-post from here. |
Neither Boot 3.1 nor Micrometer Tracing 1.1 are supported, see: https://spring.io/projects/spring-boot#support |
Per spring-projects/spring-boot#38724 (comment) I think they tried with Boot 3.3.3 and had the same issue. I think a new issue with a minimal reproducer or code for a unit test would be best to continue the investigation. |
I have this code:
and
t1
configured as tag fields on theOtelBaggageManager
.While it creates the span, the
t1
tag is missing.If I add
to the try-with-resources, the tag appears.
The text was updated successfully, but these errors were encountered: