-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Description
Since #16093, a new conditional annotation has been introduced to guard Actuator endpoints and only instantiate infrastructure when endpoints are exposed.
Given this comment on the issue:
The current implementation is completely separating enablement and exposure.
For now, @ConditionalOnEnabledEndpoint and @ConditionalOnExposedEndpoint are used together. It might make sense to revisit that in the next milestone and make @ConditionalOnExposedEndpoint call the other. Right now I'm wondering if it's still best to keep those separated as they are different concepts and there might be cases where we want to let developers reuse/extend existing infrastructure independently of what's happening with the endpoints.
We should review this annotation and consider whether we want to merge condition implementations, or consider both conditions when @ConditionalOnExposedEndpoint
is added.