From f6eaedea3577ab44304da17e8d63f62d9be1317c Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Thu, 27 Jul 2023 12:44:30 +0800 Subject: [PATCH] Reinstate use of configprop macro See gh-36604 --- .../src/docs/asciidoc/actuator/observability.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/observability.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/observability.adoc index 53c79996f7a..9d8cd3b0efa 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/observability.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/observability.adoc @@ -58,7 +58,7 @@ If you'd like to prevent some observations from being reported, you can use the The preceding example will prevent all observations with a name starting with `denied.prefix` or `another.denied.prefix`. -TIP: If you want to prevent Spring Security from reporting observations, set the property `management.observations.enable.spring.security` to `false`. +TIP: If you want to prevent Spring Security from reporting observations, set the property configprop:management.observations.enable.spring.security[] to `false`. If you need greater control over the prevention of observations, you can register beans of type `ObservationPredicate`. Observations are only reported if all the `ObservationPredicate` beans return `true` for that observation.