Merge branch '3.1.x'

This commit is contained in:
Phillip Webb
2023-06-30 14:54:52 +01:00

View File

@@ -89,9 +89,10 @@ For example, the following will provide a correlation ID for Logback in format p
NOTE: In the example above, configprop:logging.include-application-name[] is set to `false` to avoid the application name being duplicated in the log messages (configprop:logging.pattern.correlation[] already contains it).
It's also worth mentioning that configprop:logging.pattern.correlation[] contains a trailing space so that it is separated from the logger name that comes right after it by default.
[[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.
WARNING: If you create the `WebClient` or the `RestTemplate` without using the auto-configured builders, automatic trace propagation won't work!
@@ -179,6 +180,8 @@ This will create an observation named "some-operation" with the tag "some-tag=so
TIP: If you want to create a span without creating a metric, you need to use the https://micrometer.io/docs/tracing#_using_micrometer_tracing_directly[lower-level `Tracer` API] from Micrometer.
[[actuator.micrometer-tracing.baggage]]
=== Baggage
You can create baggage with the `Tracer` API: