-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Use early static registration of EventPublishingContextWrapper #41439
Comments
Hi @wilkinsona, I would like to work on this issue. Could you please assign it to me? Additionally, I have a few questions to ensure I address the issue correctly:
Thanks for your guidance! |
Thanks for the offer, @abounaime, but we'd prefer to handle this one ourselves. |
@philwebb I looked at this fix and I think it will work great. There is only one situation where it won't work, and that is for a specific case when running unit tests. I encountered this in my own, similar, workaround for this early context wrapper initialization problem. The situation is as follows: When a unit test runs first, that doesn't use Spring Boot Test, which accesses the OpenTelemetry context, then it will cause the Context wrappers to have been applied before the I solved this by implementing a JUnit If you want me to create a new issue for this, then I will happily do so. |
spring-boot/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/OpenTelemetryAutoConfiguration.java
Line 168 in a349170
The text was updated successfully, but these errors were encountered: