Skip to content

Commit 6e3feff

Browse files
fix(apple): Scrubbing Data Code Samples (#12024)
Add the correct code samples for scrubbing data on Apple and clarify that transactions go through beforeSend. Co-authored-by: Alex Krawiec <[email protected]>
1 parent 40f4bda commit 6e3feff

File tree

1 file changed

+12
-2
lines changed
  • docs/platforms/apple/common/data-management/sensitive-data

1 file changed

+12
-2
lines changed

docs/platforms/apple/common/data-management/sensitive-data/index.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,22 @@ If you _do not_ wish to use the default PII behavior, you can also choose to ide
3535

3636
## Scrubbing Data
3737

38-
### <PlatformIdentifier name="before-send" /> & <PlatformIdentifier name="before-send-transaction" />
38+
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.
3939

40-
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.
40+
### <PlatformIdentifier name="before-send" />
4141

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

44+
### <PlatformIdentifier name="before-breadcrumb" />
45+
46+
<PlatformContent includePath="enriching-events/breadcrumbs/before-breadcrumb/" />
47+
48+
### <PlatformIdentifier name="before-send-span" />
49+
50+
<PlatformContent includePath="configuration/before-send-span/" />
51+
52+
### Sensitive Data
53+
4454
Sensitive data may appear in the following areas:
4555

4656
- 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.

0 commit comments

Comments
 (0)