diff --git a/docs/platforms/javascript/common/configuration/options.mdx b/docs/platforms/javascript/common/configuration/options.mdx index 5c8c1f6de3f91..a433b8964b72c 100644 --- a/docs/platforms/javascript/common/configuration/options.mdx +++ b/docs/platforms/javascript/common/configuration/options.mdx @@ -385,10 +385,10 @@ This function is called with a transaction event object, and can return a modifi - + This function is called with a serialized span object, and can return a modified span object. This might be useful for manually stripping PII from spans. -This function is only called for root spans and all children. +This function is called for root spans as well as for all child spans. If you want to drop the root span, including all of its child spans, use [`beforeSendTransaction`](#beforeSendTransaction) instead. Please note that the `span` you receive as an argument is a serialized object, not a `Span` class instance.