Skip to content

Commit

Permalink
Native image reflection config for HdrHistogram usage
Browse files Browse the repository at this point in the history
Our client-side percentiles use HdrHistogram as an implementation detail. That library uses some reflection that fails at runtime in a native image without this reflection config.
Ideally, the HdrHistogram library would work in native images out-of-the-box by, for example, having this reflection config in its published JAR. In the meantime, we will add the necessary config to Micrometer to provide a better experience for our users compiling to native images and using client-side percentiles.
With this, users should not need to add any configuration or hints themselves to use Micrometer in their native image applications.

Resolves gh-3002
  • Loading branch information
shakuzen committed Feb 8, 2022
1 parent daab34b commit 1235276
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,13 @@
{"name":"getMaxFileDescriptorCount","parameterTypes":[] },
{"name":"getOpenFileDescriptorCount","parameterTypes":[] }
]
},
{
"name":"org.HdrHistogram.ConcurrentHistogram",
"methods":[{"name":"<init>","parameterTypes":["long","long","int"] }]
},
{
"name":"org.HdrHistogram.Histogram",
"methods":[{"name":"<init>","parameterTypes":["long","long","int"] }]
}
]

0 comments on commit 1235276

Please sign in to comment.