-
Notifications
You must be signed in to change notification settings - Fork 41.1k
startupTimeMetrics seems to cause bean dependency cycle when a MeterBinder uses a spring data repository #30902
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
Comments
Yes, please. I have been unable to reproduce the problem from what you have described thus far. |
While building the reproducer I noticed that the problem is caused by including I'll open an issue on that project. |
Thanks for letting me know. FWIW the dependency between |
I opened a corresponding issue in the spring cloud gcp project: |
For posterity, the issue is not Firestore-specific, but adding metrics following Spring Boot docs avoids the cycle nicely. In the reproducer, user implementation of |
For completeness; here is a reproducer without Firestore: https://github.com/elefeint/FirestoreMetricsReproducer/tree/h2-reproducer |
The problem does not occur with Spring Boot 3.x. |
Spring Boot version: 2.6.7
We seem to be running into an issue similar to #27591.

We recently migrated one of our metric sources to use a spring data repository. This seems to cause a bean dependency cycle caused by
startupTimeMetrics
(See attached bean cycle screenshot).If needed, I can attempt to provide a minimal reproducer, but I hope the current information is enough.
The text was updated successfully, but these errors were encountered: