From 4717274a1a80b60452188432cc39681b4540ff39 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Tue, 3 Jun 2025 09:25:35 +0200 Subject: [PATCH] fix(js): Fix incorrect `beforeSendSpan` callback type --- docs/platforms/javascript/common/configuration/options.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.