Added missing conditionals
This commit is contained in:
@@ -71,6 +71,7 @@ public class SleuthStreamAutoConfiguration {
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public StreamSpanReporter sleuthStreamSpanReporter(HostLocator endpointLocator,
|
||||
SpanMetricReporter spanMetricReporter) {
|
||||
return new StreamSpanReporter(endpointLocator, spanMetricReporter);
|
||||
|
||||
@@ -51,7 +51,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
public class ZipkinAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(ZipkinSpanReporter.class)
|
||||
@ConditionalOnMissingBean
|
||||
public ZipkinSpanReporter reporter(SpanMetricReporter spanMetricReporter, ZipkinProperties zipkin) {
|
||||
return new HttpZipkinSpanReporter(zipkin.getBaseUrl(), zipkin.getFlushInterval(),
|
||||
zipkin.getCompression().isEnabled(), spanMetricReporter);
|
||||
|
||||
Reference in New Issue
Block a user