From 6dd4bd2b89a370ad73804fca83ca1858e6a6e475 Mon Sep 17 00:00:00 2001 From: Michi Hoffmann Date: Thu, 26 Feb 2026 10:51:21 +0100 Subject: [PATCH] Clarify beforeSendSpan callback behavior Clarify span fist filtering. --- develop-docs/sdk/telemetry/spans/scrubbing-data.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/develop-docs/sdk/telemetry/spans/scrubbing-data.mdx b/develop-docs/sdk/telemetry/spans/scrubbing-data.mdx index 0bd932eb9251f..d2d7cd9fd0d79 100644 --- a/develop-docs/sdk/telemetry/spans/scrubbing-data.mdx +++ b/develop-docs/sdk/telemetry/spans/scrubbing-data.mdx @@ -13,7 +13,7 @@ title: Scrubbing data ## Scrubbing data with `beforeSendSpan` This callback MUST NOT allow the removal of any spans from the span tree. -It receives a deep copy of all spans in the span tree and their attributes. +It receives a deep copy of a span. ``` [ @@ -28,4 +28,4 @@ It receives a deep copy of all spans in the span tree and their attributes. ``` Users MAY mutate any exposed properties to perform sanitation on sensitive data or PII. -The return value of `beforeSendSpan` MUST be merged with the original span tree prior to emission. +The return value of `beforeSendSpan` MUST be merged with the original span prior to emission.