Added docs for custom async rest template (#566)

fixes #564
This commit is contained in:
Marcin Grzejszczak
2017-04-18 14:45:07 +02:00
parent 612436764c
commit 9dc626a873
3 changed files with 139 additions and 5 deletions

View File

@@ -536,6 +536,16 @@ To block the `AsyncRestTemplate` features set `spring.sleuth.web.async.client.en
To disable creation of the default `TraceAsyncClientHttpRequestFactoryWrapper` set `spring.sleuth.web.async.client.factory.enabled`
to `false`. If you don't want to create `AsyncRestClient` at all set `spring.sleuth.web.async.client.template.enabled` to `false`.
===== Multiple Asynchronous Rest Templates
Sometimes you need to use multiple implementations of Asynchronous Rest Template. In the following snippet you
can see an example of how to set up such a custom `AsyncRestTemplate`.
[source,java]
----
include::../../../../spring-cloud-sleuth-core/src/test/java/org/springframework/cloud/sleuth/instrument/async/MultipleAsyncRestTemplateTests.java[tags=custom_async_rest_template,indent=0]
----
=== Feign
By default Spring Cloud Sleuth provides integration with feign via the `TraceFeignClientAutoConfiguration`. You can disable it entirely