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

Aperta
#7,054 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
36/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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}]}.
Lingua principale
TypeScript
Stelle
1.8k
Fork
371
Merge medio
22h 3m
PR unite (30g)
106

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry-react-native

Tutte le issue di getsentry/sentry-react-native

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.