From 97e7753cdbcd4382794e4e6a432226cc9b2adc6e Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Tue, 21 Oct 2025 10:55:59 +0800 Subject: [PATCH 1/2] Configure devtools to set trace probability to 100% by default See gh-47721 Signed-off-by: Yanming Zhou --- .../src/main/resources/META-INF/spring-devtools.properties | 1 + 1 file changed, 1 insertion(+) create mode 100644 module/spring-boot-micrometer-tracing/src/main/resources/META-INF/spring-devtools.properties diff --git a/module/spring-boot-micrometer-tracing/src/main/resources/META-INF/spring-devtools.properties b/module/spring-boot-micrometer-tracing/src/main/resources/META-INF/spring-devtools.properties new file mode 100644 index 00000000000..d8c80c41699 --- /dev/null +++ b/module/spring-boot-micrometer-tracing/src/main/resources/META-INF/spring-devtools.properties @@ -0,0 +1 @@ +defaults.management.tracing.sampling.probability=1.0 From ebcb646efbe5c7a3b3fd993e1010f14a648320a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Thu, 23 Oct 2025 11:28:15 +0200 Subject: [PATCH 2/2] Polish "Configure devtools to set trace probability to 100% by default" See gh-47721 --- .../docs/antora/modules/reference/pages/using/devtools.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/using/devtools.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/using/devtools.adoc index 9e3d688f11e..b4bd6620e06 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/using/devtools.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/using/devtools.adoc @@ -68,6 +68,9 @@ For this reason, spring-boot-devtools disables the caching options by default. Cache options are usually configured by settings in your `application.properties` file. For example, Thymeleaf offers the configprop:spring.thymeleaf.cache[] property. + +The same applies for tracing probability that's set to 100% as the default may not log all traces used for testing. + Rather than needing to set these properties manually, the `spring-boot-devtools` module automatically applies sensible development-time configuration. The following table lists all the properties that are applied: