Rename TurboModule attributes and span op to match Sentry Conventions
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
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- react-native, typescript
- Bereich
- mobile, observability
Rechercherichtung
Read src/js/integrations/turboModuleContext.ts and src/js/integrations/turboModuleContextFlush.ts, then inspect the tests and public docs that cover TurboModule spans and attributes. First write the requested design sketch covering child-span count, payload size, and maxTopModulesPerSpan, then determine the release approach for the breaking changes. Done means the acceptance criteria pass and a Changelog entry and docs updates are included.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
getsentry/sentry-conventions#564 registered the TurboModule (native module) attributes under react_native.* and deprecated the names the SDK sends today. The SDK still sends the old names. The integration is on by default whenever enableNative is true.
Changes
| Today | Target | Old queries still work? |
|---|---|---|
Span attributes turbo_module.total_call_count, .total_error_count, .total_duration_ms, .unique_methods, .arch, .top_module, .top_module_duration_ms |
react_native.module.call.count, .error.count, .duration.total, .call.distinct_count, react_native.architecture, react_native.module.top.name, .top.duration |
Yes, via Relay backfill |
Aggregate span attributes turbo_modules.total_*, .unique_methods |
same targets | Yes |
Aggregate span op turbo_modules.aggregate |
turbo_module (registered) |
No, ops have no aliases |
Per-method keys turbo_module.<module>.<method>.* and turbo_modules.<module>.<method>.<kind>.* |
one child span per (module, method) carrying react_native.module.name, .method, .kind plus the counters |
No, these keys can't be registered |
Measurements turbo_modules.call_count, .error_count, .total_ms, .top_module_ms |
remove (they duplicate the span attributes) | No |
Tag event.kind: turbo_modules.aggregate |
remove | No |
Error-event tags (turbo_module.name, turbo_module.method) and contexts.turbo_module stay as they are. Sentry Conventions doesn't model event tags or contexts.
Before implementation
- Write a short design sketch for the child spans: the number of spans added, payload size, and how it interacts with
maxTopModulesPerSpan. - Decide how to ship. The aliased renames are safe in a minor. The op change, the per-method keys and the removed measurements are breaking, but the feature is
@experimental, so a minor with a Changelog note is the proposal.
Acceptance criteria
- No
turbo_module.*orturbo_modules.*span attributes, measurements orevent.kindtag are sent. Tests assert this. - The aggregate span uses op
turbo_module. - Per-method data arrives as child spans with the static
react_native.module.*attributes. - Changelog entry added.
- Public docs updated wherever they list the old attribute names.
Agent notes
- Files:
src/js/integrations/turboModuleContext.ts:attachWindowToSpan(around lines 386–440), with the per-method prefix at around line 426.src/js/integrations/turboModuleContextFlush.ts:TURBO_MODULES_AGGREGATE_OPat line 13, attributes at lines 51–54, measurements at lines 63–69,event.kindat line 96, per-method prefix at line 127.src/js/turbomodule/turboModuleTracker.ts: tags and context. Leave these unchanged.
- Defaults:
enableAggregateStatsandenableSpanAttributionboth default to true (turboModuleContext.ts:129-130). The integration is added inintegrations/default.tswhenenableNativeis true. - The previous tracking issue (sentry-react-native#6168) is closed, but the rename was never done.
- Use the
design-firstskill before coding.
- 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
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
MetaMask/eth-phishing-detect#317371 ·
Maintainer antworten meist innerhalb von 1 Tag
-
android:player ios:player
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
free_port can hand one port to two callers, so the fixed-port http tests fail in parallel runsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 92/100
erkamyaman/rust-anything#963 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ZdruzenieSTROM/webstrom-frontend#934 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug(worker): detector run is marked failed and never retried when span download failsEvtl. vergeben @jagrutgarg hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
traceroot-ai/traceroot#3434 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag