-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Values for 'management.endpoints.web.exposure' #18363
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
Conversation
Add values hints and 'any' provider to management.endpoints.web.exposure.include and management.endpoints.web.exposure.exclude configuration properties
|
Thanks for the PR @AlexFalappa. You're right that we could provide completion for endpoint IDs there. This list can apply to JMX exposure as well which makes me think there's quite a repetition in values (and endpoints defined outside of Spring Boot could not be documented that way). This makes me wonder how we can improve the metadata syntax to avoid the duplication. |
|
External jars can also contribute endpoints so we need to find a way for the list to be extended by them. |
|
@snicoll you are right the same would plainly apply to the JMX endpoint exposure. @philwebb would merging of hints lists suffice ? Looking at the code in If list merging were in place external jars could simply define in Just thinking out loud, I haven't carefully thought of all the implications of configuration metadata merge-instead-of-replace logic. |
|
@philwebb absolutely, that's what I meant by "and endpoints defined outside of Spring Boot could not be documented that way"
We'd have to do something like that but we can't reuse the existing mechanism IMO. Other IDEs have dedicated code and it's not a requirement to use |
Also added value hints for management.endpoints.jmx.exposure.include and management.endpoints.jmx.exposure.exclude configuration properties.
|
Just added hints values for JMX endpoints as well if you intend to go down the repeated values road in the short term and think about a more comprehensive solution after. Squash at will. |
|
Thanks again for the PR and the update @AlexFalappa. We've come to the conclusion that the current situation is not ideal and decided to remove hints from our metadata altogether. We'd like to tackle this problem differently, see #18408 |
It might make sense to add values hints and
anyprovider tomanagement.endpoints.web.exposure.includeandmanagement.endpoints.web.exposure.excludeconfiguration properties.The hinted values are the basic available actuators endpoint ids plus
*.This way IDEs could help building the comma separated list of actuator endpoints to hide/expose providing completion on endpoints names. For example I have added such support to NetBeans SpringBoot plugin in commit AlexFalappa/nb-springboot@3fb9478
Such type of hint is similar to that for
management.health.status.orderconfiguration property of typeList<String>.Feel free to also backport to 2.1.x line if it makes sense.