-
Notifications
You must be signed in to change notification settings - Fork 61
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 failing when more than 1 test #647
Comments
By forcing
|
@n0tl3ss can you take a look? |
@driverpt I tried to recreate your issue without success. Can you check does I created app using launcher. I selected Here is a test code:
|
Try adding these dependencies:
|
All test passes, Can you try to recreate it and publish the app on the github? |
@n0tl3ss , let me create a Project. In the meanwhile, can you try adding a simple JMS Producer? |
Sample Project: https://github.com/driverpt/micronaut-otel-issue |
Hi @driverpt, This might be workaround:
Problem is that |
Expected Behavior
Tests should boot properly
Actual Behaviour
GlobalOpenTelemetry
is being initialized twice in between Tests. (seeGlobalOpenTelemetry#get
).Gradle Output:
Code where it fails:
Fix suggestion: On JUnit Extension call
GlobalOpenTelemetry.resetForTest()
on@BeforeAll
if test isPER_CLASS
, else on@BeforeEach
.Steps To Reproduce
otel.exporter=none
for Test Environment./gradlew build
Environment Information
Example Application
No response
Version
3.7.0
The text was updated successfully, but these errors were encountered: