This commit is contained in:
Adrian Cole
2020-04-09 22:01:45 +08:00
parent 5e3ab4bc94
commit a4a33dec6f
3 changed files with 14 additions and 19 deletions

View File

@@ -12,7 +12,7 @@ image::https://badges.gitter.im/spring-cloud/spring-cloud-sleuth.svg[Gitter, lin
== Spring Cloud Sleuth
Spring Cloud Sleuth provides Spring Boot auto-configuration for distributed
tracing. Underneath, Spring Cloud Sleuth is a layer over a Tracer library named
tracing. Underneath, Spring Cloud Sleuth is a layer over a tracer library named
https://github.com/openzipkin/brave[Brave].
Sleuth configures everything you need to get started. This includes where trace
@@ -43,7 +43,7 @@ public class DemoController {
----
If you add that handler to a controller, you can see the calls to `home()`
being traced in the logs as well in Zipkin, if configured.
being traced in the logs as well in https://zipkin.io/[Zipkin], if configured.
NOTE: Instead of logging the request in the handler explicitly, you
could set `logging.level.org.springframework.web.servlet.DispatcherServlet=DEBUG`.

View File

@@ -9,7 +9,7 @@ same way regardless of if the error came from a common instrumented library,
such as `RestTemplate`, or your own code annotated with `@NewSpan` or similar.
Below, we'll use the word Zipkin to describe the tracing system, and include
Zipkin screenshots. However, most services accepting Zipkin's format[https://zipkin.io/zipkin-api/#/default/post_spans],
Zipkin screenshots. However, most services accepting https://zipkin.io/zipkin-api/#/default/post_spans[Zipkin format]
have similar base features. Sleuth can also be configured to send data in other
formats, something detailed later.
@@ -97,11 +97,11 @@ To do so, you have to do the following (for readability, we pass the dependencie
*Logback Setup*
Consider the following example of a Logback configuration file (named https://raw.githubusercontent.com/spring-cloud/spring-cloud-sleuth/{branch}/docs/src/main/asciidoc/logback-spring.xml[logback-spring.xml]).
Consider the following example of a Logback configuration file (logback-spring.xml).
[source,xml]
-----
include::https://raw.githubusercontent.com/spring-cloud/spring-cloud-sleuth/{branch}/docs/src/main/asciidoc/logback-spring.xml[]
include::{project-root}/docs/src/main/asciidoc/logback-spring.xml[]
-----
That Logback configuration file: