LongTaskTimer created from a Timed
annotation doesn't enable histogram
#2704
Labels
Milestone
Timed
annotation doesn't enable histogram
#2704
Describe the bug
With frameworks, e.g. Spring Boot, that support the Micrometer
@Timed
annotation, you can makeLongTaskTimers
by setting the attributelongTask = true
. There is also ahistogram
attribute which currently has no effect withlongTask = true
.Environment
openjdk version "16.0.1" 2021-04-20
To Reproduce
How to reproduce the bug:
In a Spring Boot web app, make a controller like the following:
Expected behavior
The created LongTaskTimer
some.job
should have histograms enabled, but it does not.Additional context
LongTaskTimers were enhanced in the 1.5 release to add histogram support. It seems we missed updating the code where a LongTaskTimer was built from an instance of the
@Timed
annotation.The text was updated successfully, but these errors were encountered: