From 4072588c29b4d445bb38bdc28aed23cdaf0cd56f Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 17 May 2023 16:38:03 -0700 Subject: [PATCH] Polish "Fix invalid Zipkin Reporter back-off behavior" See gh-35455 --- .../autoconfigure/tracing/zipkin/ZipkinConfigurations.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurations.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurations.java index 2ff1b2335c..8a751eaee7 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurations.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurations.java @@ -118,9 +118,9 @@ class ZipkinConfigurations { static class ReporterConfiguration { @Bean - @ConditionalOnMissingBean + @ConditionalOnMissingBean(Reporter.class) @ConditionalOnBean(Sender.class) - Reporter spanReporter(Sender sender, BytesEncoder encoder) { + AsyncReporter spanReporter(Sender sender, BytesEncoder encoder) { return AsyncReporter.builder(sender).build(encoder); }