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

Đang mở
#7,054 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
36/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
developer-experience

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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}]}.
Ngôn ngữ chính
TypeScript
Star
1.8k
Fork
371
Merge trung bình
22 giờ 3 phút
Pull request đã merge (30 ngày)
106

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-react-native

Tất cả issue của getsentry/sentry-react-native

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.