Align standalone app-start vitals attributes with Sentry Conventions

Offen Anfängerfreundlich
#7,055 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
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
80/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
react-native, typescript
Bereich
mobile

Rechercherichtung

Beginne in src/js/tracing/integrations/appStart.ts etwa bei den Zeilen 803–812 und prüfe die relevanten Konstanten in src/js/tracing/semanticAttributes.ts. Vergleiche den eigenständigen Pfad mit dem im Issue beschriebenen Verhalten des bestehenden Mobile SDK und führe anschließend die App-Start-Tests aus. Fertig ist die Aufgabe, wenn eigenständige app.start-Transaktionen bei Kalt- und Warmstarts die vereinheitlichten sowie passenden Kalt- und Warmstartwerte und außerdem TTID und TTFD enthalten und Tests beide Starttypen abdecken.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Improvement React-Native

The experimental standalone app-start transaction sends app.vitals.start.value, which isn't registered yet. Draft getsentry/sentry-conventions#576 proposes registering that unified value and deprecating the registered app.vitals.start.cold.value / app.vitals.start.warm.value pair. sentry-dart and sentry-cocoa send both forms today; RN sends only the unified one.

Tasks

  • Support #576 landing, since RN already sends the unified value.
  • Until #576 lands, also send app.vitals.start.cold.value or app.vitals.start.warm.value (depending on the start type), matching the other mobile SDKs.
  • Send app.vitals.ttid.value and app.vitals.ttfd.value on the standalone path, as sentry-dart does.

Acceptance criteria

  • The standalone app.start transaction carries the unified value plus the cold/warm value, all from @sentry/conventions constants once registered.
  • Tests cover cold and warm starts.
Agent notes
  • Code: src/js/tracing/integrations/appStart.ts (around lines 803–812). Constants in src/js/tracing/semanticAttributes.ts.
  • The option is @experimental (options.ts, around line 684), so adding attributes is cheap.
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.