-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove metrics when shutting down InstrumentedQueuedThreadPool #4000
Comments
It sounds like it may make sense, but I'd like to understand more. In most cases, I would expect stopping the threadpool to happen on shutdown of the |
Yes. Another place where it may be nice is with running multiple integration tests, spinning up and shutting down Jetty multiple times for different tests, but all using the same globalRegistry. This would provide better isolation for such tests. |
We offer a |
Ok I have opened a PR for this. please take a look and let me know if there is anything I can improve. Thanks again! |
…dPoolMetrics/InstrumentedQueuedThreadPool fixes micrometer-metrics#4000
…dPoolMetrics/InstrumentedQueuedThreadPool fixes micrometer-metrics#4000
…dPoolMetrics/InstrumentedQueuedThreadPool fixes micrometer-metrics#4000
…dPoolMetrics/InstrumentedQueuedThreadPool fixes micrometer-metrics#4000
…dPoolMetrics/InstrumentedQueuedThreadPool fixes micrometer-metrics#4000
…dPoolMetrics/InstrumentedQueuedThreadPool fixes micrometer-metrics#4000
remove metrics from MeterRegistry when shutting down InstrumentedQueuedThreadPool
Something like:
Rationale
Clean up resources when not needed anymore
Additional context
The dropwizard metrics jetty InstrumentedQueuedThreadPool does something similar, and it seems like a good idea to do here as well.
I am happy to open a PR for this with tests if it is agreed that this should exist.
Thanks
The text was updated successfully, but these errors were encountered: