fix minor error in docs
This commit is contained in:
parent
e618fc425d
commit
b205436948
|
@ -213,8 +213,12 @@ Kotlin::
|
||||||
----
|
----
|
||||||
@Bean
|
@Bean
|
||||||
fun noSpringSecurityObservations(): ObservationRegistryCustomizer<ObservationRegistry> {
|
fun noSpringSecurityObservations(): ObservationRegistryCustomizer<ObservationRegistry> {
|
||||||
ObservationPredicate predicate = (name: String, context: Observation.Context) -> !name.startsWith("spring.security.")
|
val predicate = ObservationPredicate { name: String, _: Observation.Context? ->
|
||||||
(registry: ObservationRegistry) -> registry.observationConfig().observationPredicate(predicate)
|
!name.startsWith("spring.security.")
|
||||||
|
}
|
||||||
|
return ObservationRegistryCustomizer { registry: ObservationRegistry ->
|
||||||
|
registry.observationConfig().observationPredicate(predicate)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
======
|
======
|
||||||
|
|
Loading…
Reference in New Issue