-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
bugA general bugA general bugmodule: micrometer-coreAn issue that is related to our core moduleAn issue that is related to our core module
Milestone
Description
Describe the bug
LongTaskTimer#measure
does not return the maximum duration, see current code:
micrometer/micrometer-core/src/main/java/io/micrometer/core/instrument/LongTaskTimer.java
Lines 262 to 266 in e45501f
@Override | |
default Iterable<Measurement> measure() { | |
return Arrays.asList(new Measurement(() -> (double) activeTasks(), Statistic.ACTIVE_TASKS), | |
new Measurement(() -> duration(baseTimeUnit()), Statistic.DURATION)); | |
} |
The following is missing:
new Measurement(() -> max(baseTimeUnit()), Statistic.MAX)
Environment
- Micrometer version: current main branch
Expected behavior
https://docs.micrometer.io/micrometer/reference/concepts/long-task-timers.html:
Long task timers publish at least the following statistics:
- Active task count
- Total duration of active tasks
- The maximum duration of active tasks
Metadata
Metadata
Assignees
Labels
bugA general bugA general bugmodule: micrometer-coreAn issue that is related to our core moduleAn issue that is related to our core module