Register mobile app-start and `ui.load` span ops in Sentry Conventions

Offen
#7,054 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
36/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
typescript

Rechercherichtung

Start with the existing draft getsentry/sentry-conventions#507 and coordinate with the other mobile SDKs before changing the conventions. The issue identifies the RN constants in src/js/tracing/ops.ts and literal ops in src/js/tracing/timetodisplay.tsx, src/js/tracing/onSpanEndUtils.ts, and src/js/tracing/integrations/appStart.ts; inspect those alongside model/op/mobile.json in Sentry Conventions. Done means the ops are registered there and the RN SDK uses the @sentry/conventions constants.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

React-Native Task

The app-start and screen-load span ops that all mobile SDKs send aren't in Sentry Conventions. Today model/op/mobile.json only lists generic ops (app, ui, navigation, http, file, serialize, turbo_module, app.update.*).

Ops

  • app.start, app.start.cold, app.start.warm, app.start.extended
  • ui.load, ui.load.initial_display, ui.load.full_display

sentry-cocoa, sentry-java and sentry-dart send these ops too, so this is a cross-mobile change, not an RN-only one. Coordinate with the other mobile SDKs and with the existing draft getsentry/sentry-conventions#507 (mobile span descriptions) rather than opening a competing PR.

Acceptance criteria

  • The ops are registered in Sentry Conventions.
  • The RN SDK uses the @sentry/conventions op constants for them.
Agent notes
  • RN constants: src/js/tracing/ops.ts (APP_START*, UI_LOAD*).
  • Literal ops in:
    • src/js/tracing/timetodisplay.tsx (lines 236 and 300).
    • src/js/tracing/onSpanEndUtils.ts (line 107).
    • src/js/tracing/integrations/appStart.ts.
  • Op file shape: model/op/<category>.json with {name, description, fields:[{name, description}]}.
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.