Skip to content
Discussion options

You must be logged in to vote

For the original poster: enabling/disabling client metrics is a little more complicated for http specifically. Metrics are already collected for REST Client (with micrometer) for Resteasy and Resteasy Reactive... if you're working against the micrometer extension, you might be better off following a pattern like this:

https://github.com/micrometer-metrics/micrometer/blob/main/micrometer-core/src/main/java/io/micrometer/core/instrument/logging/LoggingMeterRegistry.java

Your extension can then focus on enabling or disabling the construction of a custom MeterRegistry bean.

As far as testing for enabled metrics at build time, you'd want to look at a combination of config, you would want to do…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Sgitario
Comment options

@ebullient
Comment options

Comment options

You must be logged in to vote
1 reply
@Sirz3chs
Comment options

Answer selected by Sirz3chs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment