소스 검색

fix minor error in docs

jinia91 11 달 전
부모
커밋
b205436948
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      docs/modules/ROOT/pages/servlet/integrations/observability.adoc

+ 6 - 2
docs/modules/ROOT/pages/servlet/integrations/observability.adoc

@@ -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)
+    }
 }
 ----
 ======