From 15ea5a228f153f72dc733b3d322d91f960290c6e Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Mon, 28 Apr 2025 14:02:57 +0200 Subject: [PATCH 1/2] Add an FAQ to trace propagation cheat sheer --- .../sdk/telemetry/traces/trace-propagation-cheat-sheet.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/develop-docs/sdk/telemetry/traces/trace-propagation-cheat-sheet.mdx b/develop-docs/sdk/telemetry/traces/trace-propagation-cheat-sheet.mdx index 614cb426a1f43..0ceef9fda0f2a 100644 --- a/develop-docs/sdk/telemetry/traces/trace-propagation-cheat-sheet.mdx +++ b/develop-docs/sdk/telemetry/traces/trace-propagation-cheat-sheet.mdx @@ -37,3 +37,9 @@ This is a cheat sheet where you can see how the trace propagation work in SDKs i | present | 0 | no | null | no | no | - | | present | 0 | no | 0 | no | no | - | | present | 0 | no | 1 | no | no | - | + +## FAQ + +**Why are we sometimes sampling even if `traces_sample_rate` is 0?** + +A `traces_sample_rate` between 0 and 1 is only taken into account if there is no incoming trace and the SDK has to make its own sampling decision. If there is an incoming trace, the parent sampling decision always takes precedence over `traces_sample_rate`. From 44ccf8d8d82b1fca5e9b962c882d30339a6339e9 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Mon, 28 Apr 2025 14:08:12 +0200 Subject: [PATCH 2/2] Update trace-propagation-cheat-sheet.mdx --- .../sdk/telemetry/traces/trace-propagation-cheat-sheet.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/develop-docs/sdk/telemetry/traces/trace-propagation-cheat-sheet.mdx b/develop-docs/sdk/telemetry/traces/trace-propagation-cheat-sheet.mdx index 0ceef9fda0f2a..f5a1a7756493b 100644 --- a/develop-docs/sdk/telemetry/traces/trace-propagation-cheat-sheet.mdx +++ b/develop-docs/sdk/telemetry/traces/trace-propagation-cheat-sheet.mdx @@ -40,6 +40,6 @@ This is a cheat sheet where you can see how the trace propagation work in SDKs i ## FAQ -**Why are we sometimes sampling even if `traces_sample_rate` is 0?** +**Why are we sometimes sampling even if `traces_sample_rate` is 0? Why are we sometimes unsampling if `traces_sample_rate` is 1?** A `traces_sample_rate` between 0 and 1 is only taken into account if there is no incoming trace and the SDK has to make its own sampling decision. If there is an incoming trace, the parent sampling decision always takes precedence over `traces_sample_rate`.