Skip to content

Commit 40a7bed

Browse files
committed
add beforeSendTransaction to options list
1 parent 59105de commit 40a7bed

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/platforms/common/configuration/options.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,18 @@ This function is called with an SDK-specific message or error event object, and
563563

564564
</ConfigKey>
565565

566+
<ConfigKey name="before-send-transaction" supported={["javascript", "node"]}>
567+
568+
This function is called with an SDK-specific transaction event object, and can return a modified transaction event object, or `null` to skip reporting the event. This can be used, for instance, for manual PII stripping before sending.
569+
570+
<PlatformSection supported={["javascript", "node"]}>
571+
572+
_(New in version 7.18.0)_
573+
574+
</PlatformSection>
575+
576+
</ConfigKey>
577+
566578
<ConfigKey name="on-crash" supported={["native"]}>
567579

568580
This function is called with a backend-specific event object, and can return a modified event object or nothing to skip reporting the event. In contrast to `before_send`, it is only called when a crash occured. You can find detailed information concerning its usage in [Filtering](/platforms/native/configuration/filtering/#using-on_crash).

0 commit comments

Comments
 (0)