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

Fix some remaining problems with disabling metrics, mostly deferring access to RegistryFactory #3663

Merged
merged 11 commits into from Nov 22, 2021
Merged

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented Nov 19, 2021

Resolves #3653

When metrics are disabled via config, we want to give the code a chance to set the MetricsSettings used for the RegistryFactory accordingly before the RegistryFactory is used by other Helidon code.

This PR fixes a few remaining issues with that.

The commits are grouped roughly by the affected area to simply reviews.

@tjquinno tjquinno added this to the 2.4.1 milestone Nov 19, 2021
@tjquinno tjquinno self-assigned this Nov 19, 2021
@tjquinno tjquinno merged commit 17224d1 into helidon-io:helidon-2.x Nov 22, 2021
@tjquinno tjquinno deleted the metrics-disabled-2.x branch November 22, 2021 20:52
arjav-desai pushed a commit to arjav-desai/helidon that referenced this pull request Nov 27, 2021
…access to RegistryFactory (helidon-io#3663)

* Set initial MetricsSettings for creating RegistryFactory from config; still can be changed by later calls to getInstance(MetricsSettings)

* Need to support no-op Gauge after all

* Defer use of RegistryFactory as long as possible for executor metrics

* Reorder some steps in MP metrics service initialization

* In MP fault tolerance, defer access to RegistryFactory

* In Jaeger metrics defer access to RegistryFactory

* In DB client defer access to RegistryFactory

* In grpc defer access to RegistryFactory

* Add MP/metrics test for disabled metrics
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.

None yet

2 participants