We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e618fc4 commit b205436Copy full SHA for b205436
docs/modules/ROOT/pages/servlet/integrations/observability.adoc
@@ -213,8 +213,12 @@ Kotlin::
213
----
214
@Bean
215
fun noSpringSecurityObservations(): ObservationRegistryCustomizer<ObservationRegistry> {
216
- ObservationPredicate predicate = (name: String, context: Observation.Context) -> !name.startsWith("spring.security.")
217
- (registry: ObservationRegistry) -> registry.observationConfig().observationPredicate(predicate)
+ val predicate = ObservationPredicate { name: String, _: Observation.Context? ->
+ !name.startsWith("spring.security.")
218
+ }
219
+ return ObservationRegistryCustomizer { registry: ObservationRegistry ->
220
+ registry.observationConfig().observationPredicate(predicate)
221
222
}
223
224
======
0 commit comments