From e77535c172fd3dc4152fdc679dc45f1be1ec080f Mon Sep 17 00:00:00 2001 From: Bram Wiepjes Date: Mon, 2 Sep 2024 20:00:22 +0200 Subject: [PATCH] Added force full trace docs --- docs/development/metrics-and-logs.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/development/metrics-and-logs.md b/docs/development/metrics-and-logs.md index c40e0ef58b..924a9e573a 100644 --- a/docs/development/metrics-and-logs.md +++ b/docs/development/metrics-and-logs.md @@ -229,4 +229,18 @@ def create_row(table): 1 ) -``` \ No newline at end of file +``` + +## traceidratio and force full trace + +If you've set a tracer sampler using the `traceidratio`, then not every request will +have a full trace. + +``` +OTEL_TRACES_SAMPLER_ARG: "0.1" +OTEL_TRACES_SAMPLER: "traceidratio" +``` + +It can hold you back if you want to debug a specific request. We've therefore +implemented a query parameter that allows you to force a full trace. You can add +`?force_full_otel_trace=true` to any backend request to get a full trace back.