diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/tracing.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/tracing.adoc index 2ac871c89d..fcdc7d2c1a 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/tracing.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/tracing.adoc @@ -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 <> or <> 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: