mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 16:52:13 +00:00
fix missing semi-colon java example in observability documentation
This commit is contained in:
parent
f588f9fa9a
commit
3b447b938c
@ -192,8 +192,8 @@ 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);
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
@ -198,7 +198,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);
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user