File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
docs/modules/ROOT/pages/servlet/integrations Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -213,8 +213,12 @@ Kotlin::
213
213
----
214
214
@Bean
215
215
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
+ }
218
222
}
219
223
----
220
224
======
You can’t perform that action at this time.
0 commit comments