diff --git a/multi/multi__customizations.html b/multi/multi__customizations.html
index bf015a354..41e61c5ba 100644
--- a/multi/multi__customizations.html
+++ b/multi/multi__customizations.html
@@ -119,20 +119,7 @@ TraceFilter myTraceFilter(BeanFactory beanFactory, Sometimes you want to create a manual Span that will wrap a call to an external service which is not instrumented.
What you can do is to create a span with the Remember not to add both By default Sleuth assumes that when you send a span to Zipkin, you want the span’s service name
+Below you can see an example of a call to Redis that is wrapped in such a span. Remember not to add both By default Sleuth assumes that when you send a span to Zipkin, you want the span’s service name
to be equal to If If If using Zipkin, configure the percentage of spans exported using If you want both Sleuth and Zipkin just add the Maven.
<dependency>
In order not to pick versions by yourself it’s much better if you add the dependency management via
-the Spring BOM Add the dependency to Gradle.
+the Spring BOM Add the dependency to Gradle.
peer.service tag that will contain a value of the service that you want to call.
-Below you can see an example of a call to Redis that is wrapped in such a span.org.springframework.cloud.sleuth.Span newSpan = tracer.createSpan("redis");
-try {
- newSpan.tag("redis.op", "get");
- newSpan.tag("lc", "redis");
- newSpan.logEvent(org.springframework.cloud.sleuth.Span.CLIENT_SEND);
- // call redis service e.g
- // return (SomeObj) redisTemplate.opsForHash().get("MYHASH", someObjKey);
-} finally {
- newSpan.tag("peer.service", "redisService");
- newSpan.tag("peer.ipv4", "1.2.3.4");
- newSpan.tag("peer.port", "1234");
- newSpan.logEvent(org.springframework.cloud.sleuth.Span.CLIENT_RECV);
- tracer.close(newSpan);
-}
![[Important]](images/important.png)
Important peer.service tag and the SA tag! You have to add only peer.service.Unresolved directive in spring-cloud-sleuth.adoc - include::../../../..//spring-cloud-sleuth-zipkin/src/test/java/org/springframework/cloud/sleuth/zipkin/HttpZipkinSpanReporterTest.java[tags=service_name,indent=0]![[Important]](images/important.png)
Important peer.service tag and the SA tag! You have to add only peer.service.spring.application.name value. That’s not always the case though. There
are situations in which you want to explicitly provide a different service name for all spans coming
from your application. To achieve that it’s enough to just pass the following property
diff --git a/multi/multi__features.html b/multi/multi__features.html
index d3502ab6d..bb705d5d4 100644
--- a/multi/multi__features.html
+++ b/multi/multi__features.html
@@ -10,7 +10,7 @@ latency in your applications. Sleuth is written to not log too much, and to not
rest template, scheduled actions, message channels, zuul filters, feign client).SpanInjector and SpanExtractor implementations.spring-cloud-sleuth-zipkin2 then the app will generate and collect Zipkin-compatible traces.
+a baggage element then it will be sent downstream either via HTTP or messaging to other processes.spring-cloud-sleuth-zipkin then the app will generate and collect Zipkin-compatible traces.
By default it sends them via HTTP to a Zipkin server on localhost (port 9411).
Configure the location of the service using spring.zipkin.baseUrl.spring-rabbit or spring-kafka your app will send traces to a broker instead of http.spring-cloud-sleuth-stream is deprecated and should no longer be used.![[Important]](images/important.png)
Important spring.sleuth.sampler.percentage
(default 0.1, i.e. 10%). Otherwise you might think that Sleuth is not working cause it’s omitting some spans.spring-cloud-starter-zipkin dependency.<dependencyManagement>
<dependencies>
<dependency>
@@ -184,10 +184,10 @@ the Spring BOM
<groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-zipkin2</artifactId>
+ <artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>spring-cloud-starter-zipkin2spring-cloud-starter-zipkindependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${releaseTrainVersion}"
@@ -195,11 +195,11 @@ the Spring BOM
- compile "org.springframework.cloud:spring-cloud-starter-zipkin2"
+ compile "org.springframework.cloud:spring-cloud-starter-zipkin"
}
In order not to pick versions by yourself it’s much better if you add the dependency management via -the Spring BOM | |
Add the dependency to |
If you want to use RabbitMQ or Kafka instead of http, add the spring-rabbit or spring-kafka
-dependencies. The default destination name is zipkin.
Note: spring-cloud-sleuth-stream is deprecated and incompatible with these destinations
If you want Sleuth over RabbitMQ add the spring-cloud-starter-zipkin2 and spring-rabbit
+the Spring BOM
Add the dependency to spring-cloud-starter-zipkin
If you want to use RabbitMQ or Kafka instead of http, add the spring-rabbit or spring-kafka
+dependencies. The default destination name is zipkin.
Note: spring-cloud-sleuth-stream is deprecated and incompatible with these destinations
If you want Sleuth over RabbitMQ add the spring-cloud-starter-zipkin and spring-rabbit
dependencies.
Maven.
<dependencyManagement><dependencies> @@ -215,14 +215,14 @@ dependencies.
Maven. <dependency>
<groupId>org.springframework.cloud</groupId> - <artifactId>spring-cloud-starter-zipkin2</artifactId> + <artifactId>spring-cloud-starter-zipkin</artifactId> </dependency> <dependency>
<groupId>org.springframework.amqp</groupId> <artifactId>spring-rabbit</artifactId> </dependency>
In order not to pick versions by yourself it’s much better if you add the dependency management via -the Spring BOM | |
Add the dependency to | |
To automatically configure rabbit, simply add the spring-rabbit dependency |
Gradle. +the Spring BOM
Add the dependency to spring-cloud-starter-zipkin - that way all dependent dependencies will be downloaded
To automatically configure rabbit, simply add the spring-rabbit dependency
Gradle.
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${releaseTrainVersion}"
@@ -230,8 +230,8 @@ the Spring BOM"org.springframework.cloud:spring-cloud-starter-zipkin2"
+ compile "org.springframework.cloud:spring-cloud-starter-zipkin"
compile "org.springframework.amqp:spring-rabbit"
}