Failed to record timer metrics in native image with percentiles configured #3002
Labels
bug
A general bug
module: micrometer-api
theme: native-image
Issues related to GraalVM native or Project Leyden
Milestone
Describe the bug
When running an application as a GraalVM native image with percentiles configured, at runtime an error like the following will happen when trying to record e.g. a Timer.
Environment
java -version
] tested with GraalVM22.0.0.2.r17-grl
To Reproduce
How to reproduce the bug:
In an application with
micrometer-core
on the classpath, have a main class like the following. Compile it to a native image and run it.Expected behavior
No runtime exception. No additional reflection config required.
Additional context
While it would be ideal if the HdrHistogram library had the necessary native image reflection config provided, we may want to add configuration for the reflection usage we know about from Micrometer code.
The Spring Native project recently added hints for this same issue, but for non-Spring native usage of Micrometer, it would help those users to have it here, or eventually perhaps in HdrHistogram itself.
The text was updated successfully, but these errors were encountered: