Skip to content

Commit b205436

Browse files
jinia91jzheaux
authored andcommitted
fix minor error in docs
1 parent e618fc4 commit b205436

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,12 @@ Kotlin::
213213
----
214214
@Bean
215215
fun noSpringSecurityObservations(): ObservationRegistryCustomizer<ObservationRegistry> {
216-
ObservationPredicate predicate = (name: String, context: Observation.Context) -> !name.startsWith("spring.security.")
217-
(registry: ObservationRegistry) -> registry.observationConfig().observationPredicate(predicate)
216+
val predicate = ObservationPredicate { name: String, _: Observation.Context? ->
217+
!name.startsWith("spring.security.")
218+
}
219+
return ObservationRegistryCustomizer { registry: ObservationRegistry ->
220+
registry.observationConfig().observationPredicate(predicate)
221+
}
218222
}
219223
----
220224
======

0 commit comments

Comments
 (0)