From 761b4a4880fb31805b29621e16cab0ac43db573b Mon Sep 17 00:00:00 2001 From: buildmaster Date: Thu, 1 Nov 2018 13:30:24 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- multi/multi__introduction.html | 5 ++++- single/spring-cloud-sleuth.html | 5 ++++- spring-cloud-sleuth.xml | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/multi/multi__introduction.html b/multi/multi__introduction.html index ef5006608..3ea4a9260 100644 --- a/multi/multi__introduction.html +++ b/multi/multi__introduction.html @@ -150,7 +150,10 @@ However, you can search by tag to find the trace, assuming a span having the sea - foo - upper_case

The code.  -

Unresolved directive in intro.adoc - include::https://raw.githubusercontent.com/spring-cloud/spring-cloud-sleuth/master/spring-cloud-sleuth-core/src/test/java/org/springframework/cloud/sleuth/instrument/multiple/MultipleHopsIntegrationTests.java[tags=baggage_tag,indent=0]

+

initialSpan.tag("foo",
+		ExtraFieldPropagation.get(initialSpan.context(), "foo"));
+initialSpan.tag("UPPER_CASE",
+		ExtraFieldPropagation.get(initialSpan.context(), "UPPER_CASE"));

1.3 Adding Sleuth to the Project

This section addresses how to add Sleuth to your project with either Maven or Gradle.

[Important]Important

To ensure that your application name is properly displayed in Zipkin, set the spring.application.name property in bootstrap.yml.

1.3.1 Only Sleuth (log correlation)

If you want to use only Spring Cloud Sleuth without the Zipkin integration, add the spring-cloud-starter-sleuth module to your project.

The following example shows how to add Sleuth with Maven:

Maven. 

<dependencyManagement> 1
       <dependencies>
diff --git a/single/spring-cloud-sleuth.html b/single/spring-cloud-sleuth.html
index 8652c31cf..f2e2cde89 100644
--- a/single/spring-cloud-sleuth.html
+++ b/single/spring-cloud-sleuth.html
@@ -150,7 +150,10 @@ However, you can search by tag to find the trace, assuming a span having the sea
     - foo
     - upper_case

The code.  -

Unresolved directive in intro.adoc - include::https://raw.githubusercontent.com/spring-cloud/spring-cloud-sleuth/master/spring-cloud-sleuth-core/src/test/java/org/springframework/cloud/sleuth/instrument/multiple/MultipleHopsIntegrationTests.java[tags=baggage_tag,indent=0]

+

initialSpan.tag("foo",
+		ExtraFieldPropagation.get(initialSpan.context(), "foo"));
+initialSpan.tag("UPPER_CASE",
+		ExtraFieldPropagation.get(initialSpan.context(), "UPPER_CASE"));

1.3 Adding Sleuth to the Project

This section addresses how to add Sleuth to your project with either Maven or Gradle.

[Important]Important

To ensure that your application name is properly displayed in Zipkin, set the spring.application.name property in bootstrap.yml.

1.3.1 Only Sleuth (log correlation)

If you want to use only Spring Cloud Sleuth without the Zipkin integration, add the spring-cloud-starter-sleuth module to your project.

The following example shows how to add Sleuth with Maven:

Maven. 

<dependencyManagement> 1
       <dependencies>
diff --git a/spring-cloud-sleuth.xml b/spring-cloud-sleuth.xml
index 1ecddff1d..f0250378b 100644
--- a/spring-cloud-sleuth.xml
+++ b/spring-cloud-sleuth.xml
@@ -397,7 +397,10 @@ However, you can search by tag to find the trace, assuming a span having the sea
 
 The code
 
-Unresolved directive in intro.adoc - include::https://raw.githubusercontent.com/spring-cloud/spring-cloud-sleuth/master/spring-cloud-sleuth-core/src/test/java/org/springframework/cloud/sleuth/instrument/multiple/MultipleHopsIntegrationTests.java[tags=baggage_tag,indent=0]
+initialSpan.tag("foo",
+		ExtraFieldPropagation.get(initialSpan.context(), "foo"));
+initialSpan.tag("UPPER_CASE",
+		ExtraFieldPropagation.get(initialSpan.context(), "UPPER_CASE"));