-
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 from MeterRegistry when shutting down InstrumentedQueuedThreadPool #4003
remove metrics from MeterRegistry when shutting down InstrumentedQueuedThreadPool #4003
Conversation
1351b4d
to
95fff2b
Compare
Hi @shakuzen would you mind taking a look at this PR? Thanks |
@jonatan-ivanov I would really appreciate if someone could take a look at this PR. Thanks! |
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.
Sorry for taking so long to review, and thanks for opening the pull request.
...e/src/main/java/io/micrometer/core/instrument/binder/jetty/InstrumentedQueuedThreadPool.java
Outdated
Show resolved
Hide resolved
95fff2b
to
17f3c8f
Compare
17f3c8f
to
cd06911
Compare
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.
Thank you for quickly updating the pull request. I've left another review.
...e/src/main/java/io/micrometer/core/instrument/binder/jetty/JettyServerThreadPoolMetrics.java
Outdated
Show resolved
Hide resolved
a13d34b
to
1c3c2ed
Compare
...e/src/main/java/io/micrometer/core/instrument/binder/jetty/JettyServerThreadPoolMetrics.java
Show resolved
Hide resolved
...c/test/java/io/micrometer/core/instrument/binder/jetty/InstrumentedQueuedThreadPoolTest.java
Outdated
Show resolved
Hide resolved
...c/test/java/io/micrometer/core/instrument/binder/jetty/InstrumentedQueuedThreadPoolTest.java
Outdated
Show resolved
Hide resolved
1c3c2ed
to
0e9977c
Compare
…dPoolMetrics/InstrumentedQueuedThreadPool fixes micrometer-metrics#4000
0e9977c
to
b365e4c
Compare
I have made all requested changes. Please take another look. |
Thank you for the pull request and patience and all the quick turnarounds on feedback. |
remove metrics from MeterRegistry when shutting down JettyServerThreadPoolMetrics/InstrumentedQueuedThreadPool
fixes #4000
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.