Skip to content

Commit

Permalink
fix minor error in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jinia91 authored and jzheaux committed Sep 23, 2024
1 parent e618fc4 commit b205436
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
----
======
Expand Down

0 comments on commit b205436

Please sign in to comment.