opentelemetry-java-contrib
opentelemetry-java-contrib copied to clipboard
Closing a JFR recording may throw an Exception
Component(s)
jfr-connection
What happened?
Description
Calling the Recording#close() method may throw an exception if the FlightRecorder MXBean closeRecording function fails. The behavior of the original microsoft/jfr-streaming code was to swallow the exception. The behavior of the contributed code is different and this has caused a regression in an application that uses this module.
Steps to Reproduce
Expected Result
The close() method on a Recording should not throw an exception.
Actual Result
Component version
1.37.0
Log output
No response
Additional context
No response
PR #1412
Resolved by #1412