-
Notifications
You must be signed in to change notification settings - Fork 863
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
Fix marshaler self suppression error #5318
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #5318 +/- ##
=========================================
Coverage 90.99% 90.99%
Complexity 4901 4901
=========================================
Files 551 551
Lines 14484 14487 +3
Branches 1369 1369
=========================================
+ Hits 13179 13182 +3
Misses 907 907
Partials 398 398
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/ProtoSerializer.java
Show resolved
Hide resolved
exporters/common/src/test/java/io/opentelemetry/exporter/internal/marshal/MarshalerTest.java
Outdated
Show resolved
Hide resolved
// If close is called automatically as part of try-with-resources, it's possible that | ||
// output.flush() will throw the same exception. Re-throwing the same exception in a finally | ||
// block triggers an IllegalArgumentException indicating illegal self suppression. To avoid | ||
// this, we wrap the exception so a different instance is thrown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤯
Resolves #5239.