Support runtime environment changes via scope (sync to native Scope.setEnvironment)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- android, ios, javascript, react-native, typescript
- Bereich
- backend-api-design, mobile
Rechercherichtung
This work is parked until @sentry/core gains a scope-level setEnvironment API. First check the linked sentry-javascript proposal and implementation status; if the API exists, trace the scope-sync path on Android and iOS for both architectures, including the bridge spec and its older-binary fallback. Done means runtime environment changes reach native events, logs, and profiles on both platforms.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Context
sentry-java 8.63.0 added Scope.setEnvironment/getEnvironment (sentry-java#5772, proposal sentry-java#5769). It is applied to events, the DSC, logs, metrics and profiles. sentry-cocoa already has -[SentryScope setEnvironment:], and sentry-native has sentry_set_environment.
Problem
In RN, environment can only be set at init (options.environment). That value goes to native once, in RNSentryStart and on iOS. If an app changes environment at runtime, native-captured events (native crashes, ANRs, app-exit/NDK events, native logs and profiles) keep the init-time value.
Blocker
JS @sentry/core's Scope has no environment API, so there's nothing on the JS side to sync over the bridge.
Proposal
- Upstream: ask sentry-javascript for a scope-level
setEnvironment(or find out whether they plan one). - Once that exists: sync it to native through the scope-sync path on both platforms (Android
Scope.setEnvironment, iOSSentryScope setEnvironment:), on both architectures. This adds a bridge spec method, so it needs a fallback for older native binaries.
Until then, this is parked.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.8k
- Forks
- 371
- Ø Merge
- 22 Std. 3 Min.
- Gemergte PRs (30 T.)
- 106
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/sentry-react-native
-
React-Native
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
getsentry/sentry-react-native#7073 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Improvement React-Native
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
getsentry/sentry-react-native#7055 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
React-Native Replays Task
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
getsentry/sentry-react-native#6680 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Improvement React-Native
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
getsentry/sentry-react-native#6143 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
React-Native Task User Feedbacks
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
getsentry/sentry-react-native#5932 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in getsentry/sentry-react-native
Ähnliche Issues
-
area:config bug priority:medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Doezer/Questarr#1451 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
sidebandstudio/clawtrate#1156 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
WenyuChiou/agent-board#1993 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug design
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Colorado-Startups/coloradostartups.org#151 ·
Maintainer antworten meist innerhalb von 1 Tag
-
question
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
jarrodwatts/claude-hud#883 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag