Updated the docs to include the new poller mechanism

This commit is contained in:
Marcin Grzejszczak
2016-07-29 15:48:19 +02:00
parent 32be48963c
commit b26ae5da86
2 changed files with 24 additions and 14 deletions

View File

@@ -354,6 +354,14 @@ NOTE: the sample consumer application above explicitly excludes
but this is optional (you might actually want to trace requests into
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.
[source,java]
----
include::../../../../spring-cloud-sleuth-stream/src/test/java/org/springframework/cloud/sleuth/stream/SleuthStreamAutoConfigurationTest.java[tags=custom_poller,indent=0]
----
== Metrics
Currently Spring Cloud Sleuth registers very simple metrics related to spans.