-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract scope synchronization from configure scope include
The android specific scope synchronization block was right after the code block that demonstrated setting a user, and before the code block that unsets a user. This made reading the documentation confusing, so I extracted a new included page and added a new platform section that only supports android to hold it.
- Loading branch information
1 parent
5e5279b
commit 44654b2
Showing
3 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
src/includes/enriching-events/scopes/configure-scope/android.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1 @@ | ||
<PlatformContent includePath="enriching-events/scopes/configure-scope/java.mdx" /> | ||
|
||
### Scope Synchronization | ||
|
||
If you want to set context data in the Java layer, then receive that context data when a native (C/C++) crash happens, you need to synchronize the Java `Scope` with the native `Scope`. This feature was introduced in version `3.0.0` of the Android SDK and requires an opt-in: | ||
|
||
```xml {filename:AndroidManifest.xml} | ||
<application> | ||
<meta-data android:name="io.sentry.ndk.scope-sync.enable" android:value="true" /> | ||
</application> | ||
``` |
9 changes: 9 additions & 0 deletions
9
src/includes/enriching-events/scopes/scope-synchronization/android.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### Scope Synchronization | ||
|
||
If you want to set context data in the Java layer, then receive that context data when a native (C/C++) crash happens, you need to synchronize the Java `Scope` with the native `Scope`. This feature was introduced in version `3.0.0` of the Android SDK and requires an opt-in: | ||
|
||
```xml {filename:AndroidManifest.xml} | ||
<application> | ||
<meta-data android:name="io.sentry.ndk.scope-sync.enable" android:value="true" /> | ||
</application> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters