mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
Fix Observability Opt-out Documentation Typo
Issue gh-12268
This commit is contained in:
parent
701f754e37
commit
c60c10792c
@ -192,7 +192,7 @@ Instead, you can alter the provided `ObservationRegistry` with an `ObservationPr
|
|||||||
----
|
----
|
||||||
@Bean
|
@Bean
|
||||||
ObservationRegistryCustomizer<ObservationRegistry> noSpringSecurityObservations() {
|
ObservationRegistryCustomizer<ObservationRegistry> noSpringSecurityObservations() {
|
||||||
ObservationPredicate predicate = (name, context) -> name.startsWith("spring.security.")
|
ObservationPredicate predicate = (name, context) -> !name.startsWith("spring.security.")
|
||||||
return (registry) -> registry.observationConfig().observationPredicate(predicate)
|
return (registry) -> registry.observationConfig().observationPredicate(predicate)
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
@ -202,7 +202,7 @@ ObservationRegistryCustomizer<ObservationRegistry> noSpringSecurityObservations(
|
|||||||
----
|
----
|
||||||
@Bean
|
@Bean
|
||||||
fun noSpringSecurityObservations(): ObservationRegistryCustomizer<ObservationRegistry> {
|
fun noSpringSecurityObservations(): ObservationRegistryCustomizer<ObservationRegistry> {
|
||||||
ObservationPredicate predicate = (name: String, context: Observation.Context) -> name.startsWith("spring.security.")
|
ObservationPredicate predicate = (name: String, context: Observation.Context) -> !name.startsWith("spring.security.")
|
||||||
(registry: ObservationRegistry) -> registry.observationConfig().observationPredicate(predicate)
|
(registry: ObservationRegistry) -> registry.observationConfig().observationPredicate(predicate)
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
@ -197,7 +197,7 @@ Instead, you can alter the provided `ObservationRegistry` with an `ObservationPr
|
|||||||
----
|
----
|
||||||
@Bean
|
@Bean
|
||||||
ObservationRegistryCustomizer<ObservationRegistry> noSpringSecurityObservations() {
|
ObservationRegistryCustomizer<ObservationRegistry> noSpringSecurityObservations() {
|
||||||
ObservationPredicate predicate = (name, context) -> name.startsWith("spring.security.")
|
ObservationPredicate predicate = (name, context) -> !name.startsWith("spring.security.");
|
||||||
return (registry) -> registry.observationConfig().observationPredicate(predicate)
|
return (registry) -> registry.observationConfig().observationPredicate(predicate)
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
@ -207,7 +207,7 @@ ObservationRegistryCustomizer<ObservationRegistry> noSpringSecurityObservations(
|
|||||||
----
|
----
|
||||||
@Bean
|
@Bean
|
||||||
fun noSpringSecurityObservations(): ObservationRegistryCustomizer<ObservationRegistry> {
|
fun noSpringSecurityObservations(): ObservationRegistryCustomizer<ObservationRegistry> {
|
||||||
ObservationPredicate predicate = (name: String, context: Observation.Context) -> name.startsWith("spring.security.")
|
ObservationPredicate predicate = (name: String, context: Observation.Context) -> !name.startsWith("spring.security.")
|
||||||
(registry: ObservationRegistry) -> registry.observationConfig().observationPredicate(predicate)
|
(registry: ObservationRegistry) -> registry.observationConfig().observationPredicate(predicate)
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
Loading…
x
Reference in New Issue
Block a user