Sync managed scope data to events captured by the native SDKs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
Start with IScopeObserver and its AndroidScopeObserver, CocoaScopeObserver, and NativeScopeObserver implementations; the issue names missing context, user data, tags, environment, and attachment sync. Read the linked issues and existing scope tests to identify a focused gap and how each observer handles it. Done means syncing the selected scope data to native captured events, with an integration test verifying the result on a device.
Written by the indexing model from the issue text.
Description
Events that the native SDKs capture themselves (native crashes, ANRs, app hangs) don't go through the .NET SDK's event pipeline. They only carry the scope data the .NET SDK has synced to the native SDK through IScopeObserver (AndroidScopeObserver, CocoaScopeObserver, NativeScopeObserver). Parts of that sync are missing, so these events lack data that managed events have.
Gaps
| Data | Issue | Status |
|---|---|---|
| Contexts (OS, runtime, device boot time) at init | #2923 | Not synced until the first managed event. The plan from 2026-10-06 builds on ScopeDefaults (#5671), which now computes them at init. |
User.Other |
#3340 | Android and Cocoa map it to the native user's data. Only NativeScopeObserver.SetUserImpl (sentry-native) leaves it out. |
| Tags on Android native crashes | #4324 | DefaultTags reach the native layer since #5214. Tags set later with ConfigureScope are unverified, and it isn't known whether sentry-java forwards them to sentry-native. |
| Environment on Android | #5387 | Unblocked by the Java SDK bump in #5886 (8.63.0). AndroidScopeObserver.SetEnvironment is still a TODO. sentry-native and Cocoa were done in #5365. |
| Attachments | #5052 (Android: #3545) | AddAttachment is a no-op on all three observers. logcat.log on Android native crashes needs a separate fix (#3545). For sentry-native in server apps, AsyncLocal scopes need care so that one request's attachments don't land on another request's events. |
Across all of these
- No integration test checks what scope data reaches native crash events on a device. One would cover most of the table.
- Which scope fields sync to the native SDKs isn't documented (raised in #3340).
- Dominant language
- C#
- Stars
- 775
- Forks
- 262
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 118
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-dotnet
-
chore: remove stale IL3050/IL3053 workaround from the iOS samplePossibly taken A pull request linked to this issue is open or already merged. OpenState: Needs Discussion
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
getsentry/sentry-dotnet#6071 · 1 comment ·
Maintainers usually reply within 1 day
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"Possibly taken @pcbeingused33 claimed this today. OpenState: Needs Discussion
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
getsentry/sentry-dotnet#6039 · 3 comments ·
Maintainers usually reply within 1 day
-
.NET Platform: Android Task
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
getsentry/sentry-dotnet#6020 · 3 comments ·
Maintainers usually reply within 1 day
-
Move the Blazor WebAssembly sample off the deprecated DevServerPossibly taken A pull request linked to this issue is open or already merged. Open.NET Framework: Blazor
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
getsentry/sentry-dotnet#5906 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Docs MSBuild Needs Docs Update
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-dotnet#5691 · 1 comment ·
Maintainers usually reply within 1 day
All issues in getsentry/sentry-dotnet
Similar issues
-
In-car displays show 0 km/h and P while the AV drivesPossibly taken @bazilinskyy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bazilinskyy/coupled-sim#366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BaryoDev/umbraco-pwa#196 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
microsoft/fluentui-blazor#5688 ·
Maintainers usually reply within 1 day
-
bug flaky lsp-transport small
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day