getsentry / getsentry/sentry-react-native

Implement exception groups (AggregateError)

Đang mở
#3,579 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Blocked Errors Feature React-Native
Ngôn ngữ chính
TypeScript
Star
1.8k
Fork
367
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
94

Mô tả

### Description

React Native SDK currently supports linked exceptions using [`cause`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) but doesn't support [AggregateError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError).

```[tasklist]
### Blocked by
- [ ] https://github.com/getsentry/sentry/issues/59679#issuecomment-1920193704
```

### Related information

- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError
- https://github.com/getsentry/rfcs/blob/main/text/0079-exception-groups.md#example-event
- https://github.com/getsentry/sentry-javascript/pull/8463

### Notes

- Implementing this might likely change grouping so it should be done in a major version.

### Works
```json
{
"message": "Third",
"cause": {
"message": "Second",
"cause": {
"message": "First",
}
}
}
```

### Not implemented at the moment
```json
{
"message": "Third",
"errors": [
{
"message": "First",
},
{
"message": "Second",
},
]
}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Không có tệp triển khai, bài kiểm thử hoặc điểm bắt đầu nào được nêu tên. Hãy bắt đầu bằng cách đọc RFC exception-groups được liên kết, các tài liệu tham khảo về AggregateError và pull request liên quan của sentry-javascript, đồng thời kiểm tra issue Sentry đang chặn. Hoàn tất khi các sự kiện React Native biểu diễn AggregateError's errors array nhất quán với ví dụ được ghi trong tài liệu và các tác động đến việc nhóm đã được xử lý.

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

Đánh giá

Công nghệ
react-native, typescript
Lĩnh vực
mobile, observability
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
30/100

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.