-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Enable Virtual Thread Binder if micrometer-java21 is on the Classpath #44686
Conversation
/cc @brunobat (micrometer), @ebullient (micrometer) |
@brunobat Hey! I mentioned that work with you last week. Here is an initial draft. |
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.
Looks ok to me @cescoffier. Will you be adding something else to the PR?
🙈 The PR is closed and the preview is expired. |
@brunobat Nope,all good on my side. Let me open it for review if you don't see any big problem. |
...ployment/src/test/java/io/quarkus/micrometer/deployment/binder/VirtualThreadMetricsTest.java
Show resolved
Hide resolved
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.
We need an IT test
@brunobat Good point about the IT:
|
@brunobat It requires |
cb54f92
to
f317787
Compare
@brunobat IT added and doc updated. |
This comment has been minimized.
This comment has been minimized.
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.
Please check my comments bellow.
...tion-tests/virtual-threads/metrics-virtual-threads/src/main/resources/application.properties
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This commit introduces automatic registration of the virtual thread meter binder when the `io.micrometer:micrometer-java21` dependency is present. The binder collects metrics related to virtual threads pinning and misbehavior (unable to unpark or start) The binder is activated under the following conditions: - The `micrometer-java21` dependency is available on the classpath. - The application is running on Java 21 or higher. - The `quarkus.micrometer.binder.virtual-threads.enabled` property is set to true (default).
f317787
to
feae06c
Compare
Status for workflow
|
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.
Looks good to me. Thanks @cescoffier !
Status for workflow
|
This commit introduces automatic registration of the virtual thread meter binder when the
io.micrometer:micrometer-java21
dependency is present. The binder collects metrics related to virtual threads pinning and misbehavior (unable to unpark or start)The binder is activated under the following conditions:
micrometer-java21
dependency is available on the classpath.quarkus.micrometer.binder.virtual-threads.enabled
property is set to true (default).