Description
Expected Behavior
The ability to customize the obersations made by spring security (adjust low/high cardinality keys, etc). For instance I would like to add the high cardinality key of the Principal#getName()
to my traces.
Current Behavior
You cannot currently customize the provided AuthorizationObservationConvention
without registering your own ObersationRegistry
which replaces the entire registry.
Context
Here is where the AuthorizationObservationConvention
is currently used and instantiated as part of the class:
In spring boot, they made adjustments ahead of the 3.0 release to make their own observation conventions customizable for HTTP clients. It would make sense for spring-security to do the same thing here and allow providing your own conventions/overridden conventions.
See spring boots implementation here: spring-projects/spring-boot@07766c4