Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(android): Add masking options to AndroidManifest #11863

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions docs/platforms/android/session-replay/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ SentryAndroid.init(context) { options ->
```

```XML {filename:AndroidManifest.xml}
<meta-data android:name="io.sentry.session-replay.on-error-sample-rate" android:value="1.0" />
<meta-data android:name="io.sentry.session-replay.session-sample-rate" android:value="1.0" />
<meta-data android:name="io.sentry.session-replay.on-error-sample-rate" android:value="1.0" />
<meta-data android:name="io.sentry.session-replay.session-sample-rate" android:value="1.0" />
```

## Verify
Expand Down Expand Up @@ -113,6 +113,11 @@ options.experimental.sessionReplay.maskAllImages = false
// options.experimental.sessionReplay.redactAllImages = false
```

```XML {filename:AndroidManifest.xml}
<meta-data android:name="io.sentry.session-replay.mask-all-text" android:value="false" />
<meta-data android:name="io.sentry.session-replay.mask-all-images" android:value="false" />
```

## Error Linking

Errors that happen while a replay is running will be linked to the replay, making it possible to jump between related issues and replays. However, it's **possible** that in some cases the error count reported on the **Replays Details** page won't match the actual errors that have been captured. That's because errors can be lost, and while this is uncommon, there are a few reasons why it could happen:
Expand Down
5 changes: 5 additions & 0 deletions docs/platforms/android/session-replay/privacy/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ options.experimental.sessionReplay.maskAllImages = false
// options.experimental.sessionReplay.redactAllImages = false
```

```XML {filename:AndroidManifest.xml}
<meta-data android:name="io.sentry.session-replay.mask-all-text" android:value="false" />
<meta-data android:name="io.sentry.session-replay.mask-all-images" android:value="false" />
```

|Session Replay Unmasked | Session Replay Masked |
|:-----------------------------:|:---------------------------------------: |
|![session replay unmasked](./img/session-replay.jpg) |![session replay masked](./img/session-replay-redacted.jpg) |
Expand Down
Loading