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

Make metric providers properly lazy #1069

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented Oct 25, 2024

This commit turns injection of metric registries in metric providers into a lazy variant (Provider<>), and turns field injection into constructor injection. This is all to make CompoundMetricsProvider work properly in case some of the metric providers actually cannot function properly, because the respective dependencies do not exist.

This commit turns injection of metric registries in metric providers
into a lazy variant (`Provider<>`), and turns field injection into
constructor injection. This is all to make `CompoundMetricsProvider`
work properly in case some of the metric providers actually cannot
function properly, because the respective dependencies do not exist.
@Ladicek Ladicek added this to the 6.6.1 milestone Oct 25, 2024
@Ladicek
Copy link
Contributor Author

Ladicek commented Oct 25, 2024

This should fix the issue found in smallrye/smallrye-reactive-messaging#2801

@Ladicek Ladicek merged commit ffbcfa6 into smallrye:main Oct 29, 2024
13 checks passed
@Ladicek Ladicek deleted the make-metric-providers-lazy branch October 29, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant