Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider making the MicrometerApnsClientMetricsListener a MeterBinder #679

Open
filiphr opened this issue Jan 29, 2019 · 2 comments
Open
Milestone

Comments

@filiphr
Copy link

filiphr commented Jan 29, 2019

I am not that well versed in Micrometer. However, I noticed that if I want to use Spring Boot and provide the MicrometerApnsClientMetricsListener as a bean then I need to inject the MeterRegistry and if this is in an auto configuration I need to make sure the ordering and everything. If the bean is a MeterBinder then Spring Boot will automatically the bindTo method.

Is this something that would be interesting for the Pushy team?

@jchambers
Copy link
Owner

Yes, that makes a lot of sense. I, too, am very new to Micrometer and didn't know about MeterBinder until just now. I can just take care of that as part of whatever fix happens for #666.

@jchambers jchambers added this to the v0.15.0 milestone May 9, 2020
@jchambers jchambers modified the milestones: v0.15.0, v0.16.0 Aug 8, 2021
@jchambers
Copy link
Owner

Wow—it's been nearly five years since this issue was opened. Time flies.

Two important things have happened in the meantime:

  1. I've gained significant real-world experience with Micrometer and
  2. Based on that, I've proposed a significant overhaul to the Micrometer metrics listener in Significantly overhaul the ApnsClientMetricsListener interface #1046.

Unfortunately, I think a consequence of the Micrometer overhaul is that making the listener a MeterBinder no longer makes sense. Rather than having a static set of meters that will be known at construction time, we'll have a bunch of dynamically-tagged meters that we'll "discover" at runtime. It's not immediately clear to me if that's in keeping with the spirit of MeterBinder, but I'll read more (and ask some questions) to see what I can figure out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants