Document tracing support for RestClient

Closes gh-41182
This commit is contained in:
Moritz Halbritter 2024-06-21 10:52:13 +02:00
parent e9eeac9028
commit 013a4dd2b7

View File

@ -93,9 +93,9 @@ It's also worth mentioning that configprop:logging.pattern.correlation[] contain
[[actuator.micrometer-tracing.propagating-traces]]
=== Propagating Traces
To automatically propagate traces over the network, use the auto-configured <<io#io.rest-client.resttemplate, `RestTemplateBuilder`>> or <<io#io.rest-client.webclient, `WebClient.Builder`>> to construct the client.
To automatically propagate traces over the network, use the auto-configured <<io#io.rest-client.resttemplate, `RestTemplateBuilder`>>, <<io#io.rest-client.restclient, `RestClient.Builder`>> or <<io#io.rest-client.webclient, `WebClient.Builder`>> to construct the client.
WARNING: If you create the `WebClient` or the `RestTemplate` without using the auto-configured builders, automatic trace propagation won't work!
WARNING: If you create the `RestTemplate`, the `RestClient` or the `WebClient` without using the auto-configured builders, automatic trace propagation won't work!