1
0
mirror of synced 2026-07-27 13:35:29 +00:00

fix missing semi-colon java example in observability documentation

This commit is contained in:
Wyfrel
2023-02-21 22:58:26 +01:00
committed by Josh Cummings
parent f588f9fa9a
commit 3b447b938c
2 changed files with 3 additions and 3 deletions
@@ -192,8 +192,8 @@ Instead, you can alter the provided `ObservationRegistry` with an `ObservationPr
----
@Bean
ObservationRegistryCustomizer<ObservationRegistry> noSpringSecurityObservations() {
ObservationPredicate predicate = (name, context) -> !name.startsWith("spring.security.")
return (registry) -> registry.observationConfig().observationPredicate(predicate)
ObservationPredicate predicate = (name, context) -> !name.startsWith("spring.security.");
return (registry) -> registry.observationConfig().observationPredicate(predicate);
}
----
@@ -198,7 +198,7 @@ Instead, you can alter the provided `ObservationRegistry` with an `ObservationPr
@Bean
ObservationRegistryCustomizer<ObservationRegistry> noSpringSecurityObservations() {
ObservationPredicate predicate = (name, context) -> !name.startsWith("spring.security.");
return (registry) -> registry.observationConfig().observationPredicate(predicate)
return (registry) -> registry.observationConfig().observationPredicate(predicate);
}
----