Merge branch '1.3.x'
This commit is contained in:
@@ -80,17 +80,11 @@ public class ZipkinAutoConfiguration {
|
||||
ZipkinProperties zipkin,
|
||||
Sender sender
|
||||
) {
|
||||
final AsyncReporter<Span> reporter = AsyncReporter.builder(sender).queuedMaxSpans(
|
||||
1000) // historical constraint. Note: AsyncReporter supports memory bounds
|
||||
return AsyncReporter.builder(sender)
|
||||
.queuedMaxSpans(1000) // historical constraint. Note: AsyncReporter supports memory bounds
|
||||
.messageTimeout(zipkin.getMessageTimeout(), TimeUnit.SECONDS)
|
||||
.metrics(reporterMetrics)
|
||||
.build(zipkin.getEncoder());
|
||||
return new Reporter<Span>() {
|
||||
@Override public void report(Span span) {
|
||||
reporter.report(span);
|
||||
reporter.flush();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user