Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,22 @@ If you _do not_ wish to use the default PII behavior, you can also choose to ide

## Scrubbing Data

### <PlatformIdentifier name="before-send" /> & <PlatformIdentifier name="before-send-transaction" />
SDKs provide a <PlatformIdentifier name="before-send" /> hook, which is invoked before an error or message event is sent and can be used to modify event data to remove sensitive information. On the Apple SDK, transactions also go through <PlatformIdentifier name="before-send" />. We recommend using <PlatformIdentifier name="before-send" />, <PlatformIdentifier name="before-breadcrumb" />, and <PlatformIdentifier name="before-send-span" /> in the SDKs to **scrub any data before it is sent**, to ensure that sensitive data never leaves your local environment.

SDKs provide a <PlatformIdentifier name="before-send" /> hook, which is invoked before an error or message event is sent and can be used to modify event data to remove sensitive information. Some SDKs also provide a <PlatformIdentifier name="before-send-transaction" /> hook which does the same thing for transactions. We recommend using <PlatformIdentifier name="before-send" /> and <PlatformIdentifier name="before-send-transaction" /> in the SDKs to **scrub any data before it is sent**, to ensure that sensitive data never leaves the local environment.
### <PlatformIdentifier name="before-send" />

<PlatformContent includePath="configuration/before-send/" />

### <PlatformIdentifier name="before-breadcrumb" />

<PlatformContent includePath="enriching-events/breadcrumbs/before-breadcrumb/" />

### <PlatformIdentifier name="before-send-span" />

<PlatformContent includePath="configuration/before-send-span/" />

### Sensitive Data

Sensitive data may appear in the following areas:

- Stack-locals → Some SDKs (Python, PHP and Node) will pick up variable values within the stack trace. These can be scrubbed, or this behavior can be disabled altogether if necessary.
Expand Down
Loading