Count `callback_error` for native iOS events when a managed callback throws

Đang mở
#5,683 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
22/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, swift
Lĩnh vực
devtools

Hướng nghiên cứu

Blocked on getsentry/sentry-cocoa#8993 — first confirm whether that ships and in which sentry-cocoa major, since the issue explicitly defers all work until then. Then trace where .NET forwards native iOS events through the Cocoa bindings (event processor / BeforeSend path) and check on a device how .NET for iOS marshals a managed exception thrown as an NSException instead of returning nil. Done when a managed throw on a native event is dropped and counted as callback_error by sentry-cocoa, not before_send.

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

Mô tả

.NET Blocked Bug Platform: iOS

Part of #5634. Blocked by getsentry/sentry-cocoa#8993.

Branch: main. No public API change. If getsentry/sentry-cocoa#8993 only ships in a new sentry-cocoa major, this moves to version7 with that bump.

When a managed event processor or BeforeSend throws on a native iOS event, sentry-cocoa counts the drop as before_send. sentry-cocoa 9.29.2 has no callback_error reason yet (SentryDiscardReason.swift). Once #5681 stops .NET recording its own count for native events, a throw only shows up as before_send until this is done.

getsentry/sentry-cocoa#8993 plans an @try/@catch boundary around SentryObjC callbacks, which is the layer the .NET bindings use, and client reports for failures that drop telemetry.

To investigate once it ships

Instead of returning nil, the Cocoa block could raise an NSException. sentry-cocoa would then drop the event and count callback_error itself. This depends on how .NET for iOS marshals managed exceptions across Objective-C, which needs checking on a device.

Ngôn ngữ chính
C#
Star
775
Fork
262
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
118

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

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

Issue tương tự

Thêm issue về C#

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.