You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems there is a good amount of users who are registering an ObservationPredicate in order to disable Observations for Spring Security, something like this:
Hm. On a second thought, I wonder if spring.security.observations.enabled=false would be a better property name, and if the code should be moved to the org.springframework.boot.actuate.autoconfigure.security package.
After some discussion, we're going to change the scope of this issue a bit. We add properties to disable observations starting with a prefix like the PropertiesMeterFilter already allows for metrics. Then we document that Spring Security observations can be disabled by setting management.observations.enable.spring.security=false.
mhalbritter
changed the title
Add a property to disable Observations for Spring Security
Add a property to disable Observations starting with a prefix
Jun 13, 2023
It seems there is a good amount of users who are registering an ObservationPredicate in order to disable Observations for Spring Security, something like this:
I think this common use-case could be simplified by creating this bean and let the users to configure this using a single property.
The text was updated successfully, but these errors were encountered: