fix minor error in docs

This commit is contained in:
jinia91 2024-09-20 10:40:11 +09:00 committed by Josh Cummings
parent e618fc425d
commit b205436948
1 changed files with 6 additions and 2 deletions

View File

@ -213,8 +213,12 @@ Kotlin::
----
@Bean
fun noSpringSecurityObservations(): ObservationRegistryCustomizer<ObservationRegistry> {
ObservationPredicate predicate = (name: String, context: Observation.Context) -> !name.startsWith("spring.security.")
(registry: ObservationRegistry) -> registry.observationConfig().observationPredicate(predicate)
val predicate = ObservationPredicate { name: String, _: Observation.Context? ->
!name.startsWith("spring.security.")
}
return ObservationRegistryCustomizer { registry: ObservationRegistry ->
registry.observationConfig().observationPredicate(predicate)
}
}
----
======