-
Notifications
You must be signed in to change notification settings - Fork 41.2k
MetricsFilter can't be disabled #4365
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
This condition looks wrong and was introduced in d0cf6b5 |
That property does not work because The feature of disabling the filter is still nice though so we decided to align that to the main |
thx |
I don't like this change. The benefit of using two different properties was that the filter could be disabled using a property while the endpoint remained enabled. Now it's both or nothing. The alternative is to use auto-configuration exclusions but people seem to prefer the properties. Couldn't we set |
We decided to restore the initial property and make sure it can be set by adding |
when set
endpoints.metrics.filter.enabled=false
, exception was throwed:It seems like
org.springframework.boot.actuate.endpoint.MetricsEndpoint
'sConfigurationProperties
annotation load it.The text was updated successfully, but these errors were encountered: