Add executor.delayed gauge for ForkJoinPool on Java 25+#7353
Merged
shakuzen merged 1 commit intomicrometer-metrics:mainfrom Apr 1, 2026
Merged
Add executor.delayed gauge for ForkJoinPool on Java 25+#7353shakuzen merged 1 commit intomicrometer-metrics:mainfrom
shakuzen merged 1 commit intomicrometer-metrics:mainfrom
Conversation
89920e4 to
cd904e4
Compare
...eter-core/src/main/java/io/micrometer/core/instrument/binder/jvm/ExecutorServiceMetrics.java
Show resolved
Hide resolved
...eter-core/src/main/java/io/micrometer/core/instrument/binder/jvm/ExecutorServiceMetrics.java
Show resolved
Hide resolved
Member
|
@kwondh5217 Would you please rebase on or merge the latest |
shakuzen
approved these changes
Mar 31, 2026
Member
shakuzen
left a comment
There was a problem hiding this comment.
The changes look good to me. Thanks!
ForkJoinPool.getDelayedTaskCount() was added in Java 25, enabling monitoring of delayed (including periodic) tasks that are scheduled but not yet ready for execution. The gauge is conditionally registered via reflection so it remains compatible with Java versions before 25. Closes micrometer-metricsgh-6381 Signed-off-by: Daeho Kwon <trewq231@naver.com>
Contributor
Author
|
Hi @shakuzen, I've rebased onto the latest main. However, it seems JvmGcMetricsTest#gcMetricsAvailableAfterGc is failing due to a timing issue unrelated to my changes. Could you re-trigger the CI? Thanks! |
shakuzen
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #6381
executor.delayedgauge forForkJoinPoolusinggetDelayedTaskCount()introduced in Java 25