From 5cffabcccab951358d6cde5fb68f81d646f24774 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Mon, 7 Jan 2019 09:23:12 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- multi/multi__sampling.html | 2 +- single/spring-cloud-sleuth.html | 2 +- spring-cloud-sleuth.xml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/multi/multi__sampling.html b/multi/multi__sampling.html index 94f3a51bf..5eed9a2cf 100644 --- a/multi/multi__sampling.html +++ b/multi/multi__sampling.html @@ -50,4 +50,4 @@ The passed value needs to be a double from 0.0 to < public Sampler defaultSampler() { return Sampler.ALWAYS_SAMPLE; }
[Tip]Tip

You can set the HTTP header X-B3-Flags to 1, or, when doing messaging, you can set the spanFlags header to 1. -Doing so forces the current span to be exportable regardless of the sampling decision.

\ No newline at end of file +Doing so forces the current span to be exportable regardless of the sampling decision.

In order to use the rate-limited sampler set the spring.sleuth.sampler.rate property to choose an amount of traces to accept on a per-second interval. The minimum number is 0 and the max is 2,147,483,647 (max int).

\ No newline at end of file diff --git a/single/spring-cloud-sleuth.html b/single/spring-cloud-sleuth.html index a3eb4cb43..f28b78511 100644 --- a/single/spring-cloud-sleuth.html +++ b/single/spring-cloud-sleuth.html @@ -428,7 +428,7 @@ The passed value needs to be a double from 0.0 to < public Sampler defaultSampler() { return Sampler.ALWAYS_SAMPLE; }
[Tip]Tip

You can set the HTTP header X-B3-Flags to 1, or, when doing messaging, you can set the spanFlags header to 1. -Doing so forces the current span to be exportable regardless of the sampling decision.

5. Propagation

Propagation is needed to ensure activities originating from the same root are collected together in the same trace. +Doing so forces the current span to be exportable regardless of the sampling decision.

In order to use the rate-limited sampler set the spring.sleuth.sampler.rate property to choose an amount of traces to accept on a per-second interval. The minimum number is 0 and the max is 2,147,483,647 (max int).

5. Propagation

Propagation is needed to ensure activities originating from the same root are collected together in the same trace. The most common propagation approach is to copy a trace context from a client by sending an RPC request to a server receiving it.

For example, when a downstream HTTP call is made, its trace context is encoded as request headers and sent along with it, as shown in the following image:

   Client Span                                                Server Span
 ┌──────────────────┐                                       ┌──────────────────┐
 │                  │                                       │                  │
diff --git a/spring-cloud-sleuth.xml b/spring-cloud-sleuth.xml
index 37cbf775b..e96f2b1b9 100644
--- a/spring-cloud-sleuth.xml
+++ b/spring-cloud-sleuth.xml
@@ -970,6 +970,7 @@ public Sampler defaultSampler() {
 You can set the HTTP header X-B3-Flags to 1, or, when doing messaging, you can set the spanFlags header to 1.
 Doing so forces the current span to be exportable regardless of the sampling decision.
 
+In order to use the rate-limited sampler set the spring.sleuth.sampler.rate property to choose an amount of traces to accept on a per-second interval. The minimum number is 0 and the max is 2,147,483,647 (max int).