From 388670177ccd87db39467ac9267367a023926413 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Fri, 29 Jul 2016 13:50:54 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-sleuth.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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