unleash-client-java icon indicating copy to clipboard operation
unleash-client-java copied to clipboard

Add support for Micrometer

Open bikerp opened this issue 1 year ago • 2 comments

Describe the feature request

I would appreciate if Unleash supports Micrometer/Prometheus metrics for http client requests

Background

No response

Solution suggestions

No response

bikerp avatar Feb 10 '25 13:02 bikerp

Hi @bikerp. We're trying to avoid adding more libraries, so we will not be adding prometheus/micrometer as a direct dependency.

However, we'd be open to add more hooks that you could hook into or more events that you could write an event listener to handle. That would allow our users most flexibility when it comes to deciding what useful metrics are for them.

If you'd like to describe which metrics you're missing, or add a PR with events/hooks I'd definitely be willing to help you get it approved and merged.

chriswk avatar Feb 12 '25 08:02 chriswk

I think the only soultion now is to provide custom FeatureFetcher. I think that FeatureFetcher could be more generic and could accept any http client

bikerp avatar Feb 12 '25 09:02 bikerp