From afc8e0c7b2f555c35e12dd0e703e8844d5376e2c Mon Sep 17 00:00:00 2001 From: buildmaster Date: Wed, 15 Nov 2017 16:14:30 +0000 Subject: [PATCH] Sync docs from 2.0.x to gh-pages --- 2.0.x/multi/multi__introduction.html | 6 +++--- 2.0.x/single/spring-cloud-sleuth.html | 6 +++--- 2.0.x/spring-cloud-sleuth.xml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/2.0.x/multi/multi__introduction.html b/2.0.x/multi/multi__introduction.html index 7df9d915a..cb0ae00e0 100644 --- a/2.0.x/multi/multi__introduction.html +++ b/2.0.x/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/2.0.x/single/spring-cloud-sleuth.html b/2.0.x/single/spring-cloud-sleuth.html index b2712ef06..ebdd78704 100644 --- a/2.0.x/single/spring-cloud-sleuth.html +++ b/2.0.x/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/2.0.x/spring-cloud-sleuth.xml b/2.0.x/spring-cloud-sleuth.xml index c905fde03..a8c30d1b4 100644 --- a/2.0.x/spring-cloud-sleuth.xml +++ b/2.0.x/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