-
Notifications
You must be signed in to change notification settings - Fork 199
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
valueMax reporting wrong number #2806
Comments
hi @razum90, thanks for reporting this! I'm able to repro this locally, it looks like the valueMax is the max since JVM start instead of the max for the given interval. We will investigate further, thanks. |
Thanks @trask! |
hi @razum90, this looks like a micrometer bug: micrometer-metrics/micrometer#3298 Application Insights Java also supports OpenTelemetry Metrics, which I confirmed doesn't have this issue:
(unfortunately OpenTelemetry Metrics doesn't have a dedicated Timer yet) |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Hi @trask, oh okay. Will have to follow up that issue then. Thanks for looking into it. |
Hello will this issue ever be fixed? As I have this same issue in the following environment: JDK 17 Please advise if there is a work around, as we rely heavily on these metric capabilities. Efforts to squash most appreciated. Any additional information I can provide, please advise. Sincerely, |
hi @razum90! we are planning to replace our existing Micrometer instrumentation with the more recent upstream OpenTelemetry Micrometer instrumentation, which re-implements the Micrometer API using the OpenTelemetry Metrics SDK implementation, and therefore should avoid the above Micrometer bug. (another option is to use the OpenTelemetry Metrics API directly, depending on how integrated your Micrometer usage is) |
@trask That is good information. In interim I created a simple TimerWrapper object. Will review the OpenTelemetry Metrics SDK implementation for moving forward. Many thanks, Jeff |
Expected behavior
I would expect
valueMax
to have a value less thanvalueSum
.Actual behavior
valueMax
is greater thanvalueSum
.To Reproduce
This is my method that is called to gather metrics using
micrometer
:System information
Please provide the following information:
Logs
Turn on SDK logs and attach/paste them to the issue. If using an application server, also attach any relevant server logs.
Be sure to remove any private information from the logs before posting!
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: