Skip to content

Conversation

@akang31
Copy link
Contributor

@akang31 akang31 commented Aug 22, 2025

The instrumentation flushing feature in the AccessMonitorUtil is meant to be as non-invasive as possible. However, we currently have calls outside the dedicated threadpool when shutting down the AccessMonitorUtil. The intention here was to make sure we aren't missing any instrumentation data that accrued at the end, but this also puts a call on the main thread (which could have issues such as blocking JVM shutdown on hangs).

So, we choose to be non-invasive over completeness of information. To be clear, it's quite unlikely that we will actually be losing data in any meaningful way (since property usage is generally either at startup, or just throughout the uptime of an application, meaning that any instrumentation dropped in the last window is very likely to have been seen already).

@akang31 akang31 merged commit b62fb49 into 2.x Aug 23, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants