Register navigation, route and deep-link attributes in Sentry Conventions
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
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react-native, typescript
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
Start with the Sentry Conventions PR and the dependency issue for @sentry/conventions; the issue says that PR needs code-owner approval and a three-business-day wait. Then inspect src/js/tracing/semanticAttributes.ts and the listed instrumentation files for the attribute literals. Done when the conventions are merged with backfill aliases for renamed keys and the SDK uses the registered constants.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The React Navigation, Expo Router and React Native Navigation instrumentations send attributes that aren't in Sentry Conventions. Register them (or map them to existing keys), then switch the SDK to the constants.
Keys
route.name,route.key,route.component_id,route.component_type,route.has_been_seen,route.path,route.url,route.href,route.initial_display_fallbackprevious_route.name,previous_route.key,previous_route.component_id,previous_route.component_typerouting.instrumentationnavigation.method,navigation.trigger,navigation.action_typedeeplink.url,deeplink.dispatch_delay_ms
Open questions for the Sentry Conventions PR
- Namespace: top-level
routeis deprecated in favour ofhttp.route, andprevious_routeis a single leaf attribute. The proposal isnavigation.route.*(navigation.route.idalready exists) andnavigation.previous_route.*, with the SDK renaming to them under backfill aliases. - Units: Sentry Conventions keeps units out of key names, so
deeplink.dispatch_delay_mslikely becomesdeeplink.dispatch_delaywith the unit in its definition. - Scrubbing: set
apply_scrubbingonroute.url,route.hrefanddeeplink.url. The SDK already gates them onsendDefaultPiior sanitizes them. - Don't use
navigation.type: it's deprecated in favour ofrouter.navigation.type.
Acceptance criteria
- The Sentry Conventions PR is merged (it needs one code-owner approval, then a 3-business-day wait).
- The SDK uses the registered keys through
@sentry/conventionsconstants. - Any renamed keys are covered by backfill aliases in Sentry Conventions.
Agent notes
- Local constants:
src/js/tracing/semanticAttributes.ts. - Literal keys in:
src/js/tracing/reactnavigation.ts:route.path/route.urlat lines 825–826, deep-link attributes at lines 958–963.src/js/tracing/expoRouter.ts:route.href,navigation.method.src/js/tracing/expoRouterErrorBoundary.tsx:route.path.src/js/tracing/reactnativenavigation.ts.src/js/tracing/onSpanEndUtils.ts.
- Depends on the
@sentry/conventionsdependency issue in this project for the constant swap.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-react-native
-
React-Native
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/sentry-react-native#7073 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improvement React-Native
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
getsentry/sentry-react-native#7055 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
React-Native Replays Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
getsentry/sentry-react-native#6680 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improvement React-Native
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-react-native#6143 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
React-Native Task User Feedbacks
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
getsentry/sentry-react-native#5932 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-react-native
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
danielmiessler/LifeOS#3028 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
iOS: last line of a long UITextView text is sometimes not drawn (frame a fraction of a point short)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Koenkk/zigbee2mqtt#33855 ·
Maintainer thường phản hồi trong vòng 1 ngày