Align standalone app-start vitals attributes with Sentry Conventions

Đang mở Phù hợp với người mới
#7,055 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
80/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ệ
react-native, typescript
Lĩnh vực
mobile

Hướng nghiên cứu

Bắt đầu tại src/js/tracing/integrations/appStart.ts, khoảng dòng 803–812, và kiểm tra các hằng số liên quan trong src/js/tracing/semanticAttributes.ts. So sánh đường đi standalone với hành vi của Mobile SDK hiện có được mô tả trong issue, sau đó chạy các bài kiểm tra khởi động ứng dụng. Hoàn thành khi các transaction app.start standalone ở cả lần khởi động lạnh và nóng đều có các giá trị thống nhất và giá trị lạnh/nóng tương ứng, cùng với TTID và TTFD, đồng thời các bài kiểm tra bao phủ cả hai kiểu khởi động.

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

Mô tả

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.
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.