Browse Source

fix missing semi-colon java example in observability documentation

pull/12851/head
Wyfrel 3 years ago committed by Josh Cummings
parent
commit
3b447b938c
  1. 4
      docs/modules/ROOT/pages/reactive/integrations/observability.adoc
  2. 2
      docs/modules/ROOT/pages/servlet/integrations/observability.adoc

4
docs/modules/ROOT/pages/reactive/integrations/observability.adoc

@ -192,8 +192,8 @@ Instead, you can alter the provided `ObservationRegistry` with an `ObservationPr @@ -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);
}
----

2
docs/modules/ROOT/pages/servlet/integrations/observability.adoc

@ -198,7 +198,7 @@ Instead, you can alter the provided `ObservationRegistry` with an `ObservationPr @@ -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);
}
----

Loading…
Cancel
Save