-
Notifications
You must be signed in to change notification settings - Fork 519
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
Built-in support for Micrometer metrics publishing #458
Comments
Thank you for the request! If you have anything in mind how that supposed to be implemented on the Although from our experience an unconditional instrumentation is full of errors: no one said that we would like to instrument every single We do have some stuff in the |
Looks like this project has some idea how to implement it: https://github.com/findinpath/spring-retry-metrics. I still think that this can be implemented as an injectable |
I wonder if |
I didn't have anything particular in mind reporting that idea. I've just thought, it could be useful to that those statistics/metrics available and Micrometer is an natural continuation. The separate - Micrometer aware - module with injectable listener (and probably switchable auto configuration) sounds like a good idea. When added as a dependency (and enable with auto configuration), it could "observe" all the retryable methods, unless annotated with some dedicated annotation ( There is a "new" Micrometer observation API and maybe it could be leveraged (however, I haven't had a chance to play with it so far). Btw, maybe @findinpath has any thoughts after the original implementation in his project (and encountered challenges), years ago. |
I thought about an Observation API, but that then rejected that idea. No, I'm not going to accept a new module just for this feature. I'm still struggling to understand how different calls (and retries, respectively) of the same method are going to be distinguished on the metrics consumer side, but probably that's just my low knowledge of the subject at all. We can ask @marcingrzejszczak for advice. |
So, I decided to implement something myself: #459. |
It would be useful to provide Micrometer metrics related to spring-retry functionality (e.g. number of successful/failed retries (per retry/label) or retry execution times). Preferably, it could be done in the declarative way (no extra code/changes in the end project) - the feature is enabled and/or the extra module is added.
The text was updated successfully, but these errors were encountered: