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

Introduce MP Config Property mp.metrics.enable #782

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Channyboy
Copy link
Contributor

TCK will be delivered in another PR

For #686

mp.metrics.enable=demo.app.*=false;demo.app.testCounter=true
----

CAUTION: Before disabling metrics, be aware if your application uses any `getMetric(...)` or `getCounter(...)`/`getHistogram(...)`/`getTimer(...)`/`getGauge(...)` method calls that try to retrieve a specific metric. Due to the _disabled_ metric not being registered this may cause an `IllegalArgumentException`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

returns null

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest using enabled (with a trailing d) in the config key.

We've talked about choosing config key names which describe states of things (enabled) rather than actions to perform on things (enable).

@Channyboy
Copy link
Contributor Author

Slated for future release

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

Successfully merging this pull request may close these issues.

2 participants