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.