diff --git a/spring-cloud-sleuth.html b/spring-cloud-sleuth.html index 759a37d57..5e0b39504 100644 --- a/spring-cloud-sleuth.html +++ b/spring-cloud-sleuth.html @@ -1925,6 +1925,25 @@ the consumer app). +
+

In order to customize the polling mechanism you can create a bean of PollerMetadata type +with name equal to StreamSpanReporter.POLLER. Here you can find an example of such a configuration.

+
+
+
+
@Configuration
+public static class CustomPollerConfiguration {
+
+	@Bean(name = StreamSpanReporter.POLLER)
+	PollerMetadata customPoller() {
+		PollerMetadata poller = new PollerMetadata();
+		poller.setMaxMessagesPerPoll(500);
+		poller.setTrigger(new PeriodicTrigger(5000L));
+		return poller;
+	}
+}
+
+
@@ -2281,7 +2300,7 @@ To disable Zuul support set the spring.sleuth.zuul.enabled property