Next major: migrate deprecated frame attributes, vitals measurements and span ops

Offen
#7,057 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
react-native, typescript
Bereich
mobile

Rechercherichtung

Start with the listed entry points: src/js/tracing/timetodisplay.tsx, src/js/tracing/integrations/nativeFrames.ts, src/js/tracing/integrations/appStart.ts, src/js/measurements.ts, src/js/tracing/utils.ts, src/js/tracing/integrations/stalltracking.ts, and src/js/touchevents.tsx. Coordinate the frames.* changes with sentry-cocoa and sentry-java, and confirm Mobile Vitals reads the replacement names before removing old keys. Done when deprecated keys are no longer sent and the breaking changes appear in the migration guide.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Improvement Next Major React-Native

These keys are deprecated in Sentry Conventions. Relay backfills them, so queries on the new names already work, and Mobile Vitals still reads the old measurements from transactions. Renaming them in the SDK is breaking, so it belongs in the next major.

Changes

Today Replacement
span data frames.total, frames.slow, frames.frozen app.vitals.frames.total.count, .slow.count, .frozen.count
span data frames.delay app.vitals.frames.delay.value
measurements app_start_cold, app_start_warm app.vitals.start.cold.value, .warm.value (or the unified value if sentry-conventions#576 lands)
measurements time_to_initial_display, time_to_full_display app.vitals.ttid.value, app.vitals.ttfd.value
measurement stall_total_time app.vitals.stall.duration
op ui.action.touch (only if we decide to move it) ui.interaction.press

Coordination

sentry-cocoa and sentry-java send the same frames.* keys on native spans, so coordinate the switch to keep data consistent across layers. Confirm that the Mobile Vitals product reads the new names before dropping the old ones.

Acceptance criteria

  • None of the deprecated keys above are sent.
  • The breaking changes are listed in the migration guide.
Agent notes
  • frames.*:
    • src/js/tracing/timetodisplay.tsx (lines 604–606 and 690).
    • src/js/tracing/integrations/nativeFrames.ts (lines 191–203).
    • src/js/tracing/integrations/appStart.ts (lines 339–341 and 849).
  • Measurements:
    • src/js/measurements.ts.
    • src/js/tracing/utils.ts (line 68, TTID/TTFD).
    • src/js/tracing/integrations/stalltracking.ts.
  • Op: src/js/touchevents.tsx (line 285).
Vorherrschende Sprache
TypeScript
Sterne
1.8k
Forks
371
Ø Merge
22 Std. 3 Min.
Gemergte PRs (30 T.)
106

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getsentry/sentry-react-native

Alle Issues in getsentry/sentry-react-native

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.