Sync managed scope data to events captured by the native SDKs

オープン
#6,022 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
backend, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

.NET Platform: Android Platform: iOS Platform: Native State: Needs Discussion Tracking Issue

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).
主要言語
C#
スター
775
フォーク
262
平均マージ
1日 16時間
マージ済み PR(30日)
118

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/sentry-dotnet のほかの issue

getsentry/sentry-dotnet の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。