From 573013b5ea901142b0abbd9f37dfdbbd30f82021 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Wed, 15 Nov 2017 14:33:01 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- multi/multi__introduction.html | 6 +++--- single/spring-cloud-sleuth.html | 6 +++--- spring-cloud-sleuth.xml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/multi/multi__introduction.html b/multi/multi__introduction.html index 7df9d915a..cb0ae00e0 100644 --- a/multi/multi__introduction.html +++ b/multi/multi__introduction.html @@ -222,7 +222,7 @@ dependencies.

Maven.  <artifactId>spring-rabbit</artifactId> </dependency>

1

In order not to pick versions by yourself it’s much better if you add the dependency management via -the Spring BOM

2

Add the dependency to spring-cloud-starter-sleuth-zipkin2 - that way all dependent dependencies will be downloaded

3

To automatically configure rabbit, simply add the spring-rabbit dependency

Gradle.  +the Spring BOM

2

Add the dependency to spring-cloud-starter-zipkin2 - that way all dependent dependencies will be downloaded

3

To automatically configure rabbit, simply add the spring-rabbit dependency

Gradle. 

dependencyManagement { 1
     imports {
         mavenBom "org.springframework.cloud:spring-cloud-dependencies:${releaseTrainVersion}"
@@ -230,8 +230,8 @@ the Spring BOM

"org.springframework.cloud:spring-cloud-starter-sleuth-zipkin2" 2 + compile "org.springframework.cloud:spring-cloud-starter-zipkin2" 2 compile "org.springframework.amqp:spring-rabbit" 3 }

1

In order not to pick versions by yourself it’s much better if you add the dependency management via -the Spring BOM

2

Add the dependency to spring-cloud-starter-sleuth-zipkin2 - that way all dependent dependencies will be downloaded

3

To automatically configure rabbit, simply add the spring-rabbit dependency

\ No newline at end of file +the Spring BOM

2

Add the dependency to spring-cloud-starter-zipkin2 - that way all dependent dependencies will be downloaded

3

To automatically configure rabbit, simply add the spring-rabbit dependency

\ No newline at end of file diff --git a/single/spring-cloud-sleuth.html b/single/spring-cloud-sleuth.html index 3286adf31..f08ced0da 100644 --- a/single/spring-cloud-sleuth.html +++ b/single/spring-cloud-sleuth.html @@ -222,7 +222,7 @@ dependencies.

Maven.  <artifactId>spring-rabbit</artifactId> </dependency>

1

In order not to pick versions by yourself it’s much better if you add the dependency management via -the Spring BOM

2

Add the dependency to spring-cloud-starter-sleuth-zipkin2 - that way all dependent dependencies will be downloaded

3

To automatically configure rabbit, simply add the spring-rabbit dependency

Gradle.  +the Spring BOM

2

Add the dependency to spring-cloud-starter-zipkin2 - that way all dependent dependencies will be downloaded

3

To automatically configure rabbit, simply add the spring-rabbit dependency

Gradle. 

dependencyManagement { 1
     imports {
         mavenBom "org.springframework.cloud:spring-cloud-dependencies:${releaseTrainVersion}"
@@ -230,11 +230,11 @@ the Spring BOM

"org.springframework.cloud:spring-cloud-starter-sleuth-zipkin2" 2 + compile "org.springframework.cloud:spring-cloud-starter-zipkin2" 2 compile "org.springframework.amqp:spring-rabbit" 3 }

1

In order not to pick versions by yourself it’s much better if you add the dependency management via -the Spring BOM

2

Add the dependency to spring-cloud-starter-sleuth-zipkin2 - that way all dependent dependencies will be downloaded

3

To automatically configure rabbit, simply add the spring-rabbit dependency

2. Additional resources

Marcin Grzejszczak talking about Spring Cloud Sleuth and Zipkin

click here to see the video

3. Features

  • Adds trace and span ids to the Slf4J MDC, so you can extract all the logs from a given trace or span in a log aggregator. Example logs:

    2016-02-02 15:30:57.902  INFO [bar,6bfd228dc00d216b,6bfd228dc00d216b,false] 23030 --- [nio-8081-exec-3] ...
    +the Spring BOM

    2

    Add the dependency to spring-cloud-starter-zipkin2 - that way all dependent dependencies will be downloaded

    3

    To automatically configure rabbit, simply add the spring-rabbit dependency

2. Additional resources

Marcin Grzejszczak talking about Spring Cloud Sleuth and Zipkin

click here to see the video

3. Features

  • Adds trace and span ids to the Slf4J MDC, so you can extract all the logs from a given trace or span in a log aggregator. Example logs:

    2016-02-02 15:30:57.902  INFO [bar,6bfd228dc00d216b,6bfd228dc00d216b,false] 23030 --- [nio-8081-exec-3] ...
     2016-02-02 15:30:58.372 ERROR [bar,6bfd228dc00d216b,6bfd228dc00d216b,false] 23030 --- [nio-8081-exec-3] ...
     2016-02-02 15:31:01.936  INFO [bar,46ab0d418373cbc9,46ab0d418373cbc9,false] 23030 --- [nio-8081-exec-4] ...

    notice the [appname,traceId,spanId,exportable] entries from the MDC:

    • spanId - the id of a specific operation that took place
    • appname - the name of the application that logged the span
    • traceId - the id of the latency graph that contains the span
    • exportable - whether the log should be exported to Zipkin or not. When would you like the span not to be exportable? In the case in which you want to wrap some operation in a Span and have it written to the logs diff --git a/spring-cloud-sleuth.xml b/spring-cloud-sleuth.xml index a2410b7a7..df9039fc4 100644 --- a/spring-cloud-sleuth.xml +++ b/spring-cloud-sleuth.xml @@ -527,7 +527,7 @@ dependencies. the Spring BOM -Add the dependency to spring-cloud-starter-sleuth-zipkin2 - that way all dependent dependencies will be downloaded +Add the dependency to spring-cloud-starter-zipkin2 - that way all dependent dependencies will be downloaded To automatically configure rabbit, simply add the spring-rabbit dependency @@ -543,7 +543,7 @@ the Spring BOM } dependencies { - compile "org.springframework.cloud:spring-cloud-starter-sleuth-zipkin2" + compile "org.springframework.cloud:spring-cloud-starter-zipkin2" compile "org.springframework.amqp:spring-rabbit" } @@ -554,7 +554,7 @@ dependencies { the Spring BOM -Add the dependency to spring-cloud-starter-sleuth-zipkin2 - that way all dependent dependencies will be downloaded +Add the dependency to spring-cloud-starter-zipkin2 - that way all dependent dependencies will be downloaded To automatically configure rabbit, simply add the spring-rabbit dependency