Skip to content

Commit

Permalink
chore(android): Add masking options to AndroidManifest (#11863)
Browse files Browse the repository at this point in the history
* Add masking options to AndroidManifest

* Update index.mdx
  • Loading branch information
romtsn authored Nov 26, 2024
1 parent eb7f9eb commit 9438d64
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
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

0 comments on commit 9438d64

Please sign in to comment.