From 9854154c317c0f165fca88b73c4b40c68bee9d3d Mon Sep 17 00:00:00 2001 From: Tadaya Tsuyukubo Date: Wed, 15 Feb 2023 17:45:14 -0800 Subject: [PATCH] Specify @Order to the defaultTracingObservationHandler bean definition See gh-34216 Signed-off-by: Tadaya Tsuyukubo --- .../tracing/MicrometerTracingAutoConfiguration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/MicrometerTracingAutoConfiguration.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/MicrometerTracingAutoConfiguration.java index f216c31bde..ed857b12a5 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/MicrometerTracingAutoConfiguration.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/MicrometerTracingAutoConfiguration.java @@ -62,6 +62,7 @@ public class MicrometerTracingAutoConfiguration { @Bean @ConditionalOnMissingBean @ConditionalOnBean(Tracer.class) + @Order(DEFAULT_TRACING_OBSERVATION_HANDLER_ORDER) public DefaultTracingObservationHandler defaultTracingObservationHandler(Tracer tracer) { return new DefaultTracingObservationHandler(tracer); }