Added an aspect around Netty's WebClient#request method

fixes gh-806
This commit is contained in:
Marcin Grzejszczak
2018-03-02 00:54:36 +01:00
parent 0e50456ab0
commit 7428609ff7
4 changed files with 216 additions and 24 deletions

View File

@@ -1023,6 +1023,15 @@ tracing context gets injected to the sent requests.
To block these features, set `spring.sleuth.web.client.enabled` to `false`.
==== Netty `HttpClient`
We instrument the Netty's `HttpClient`.
To block this feature, set `spring.sleuth.web.client.enabled` to `false`.
IMPORTANT: You have to register `HttpClient` as a bean so that the instrumentation happens.
If you create a `HttpClient` instance with a `new` keyword, the instrumentation does NOT work.
=== Feign
By default, Spring Cloud Sleuth provides integration with Feign through `TraceFeignClientAutoConfiguration`.