Try to make MEL and Serilog integrations behave more consistently

Đang mở
#5,635 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/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ệ
csharp
Lĩnh vực
observability

Hướng nghiên cứu

Start by comparing SentryOptions.cs, SerilogScopeEventProcessor.cs, and SentryScopeManager.cs, focusing on the four differences listed in the issue. Review the linked MEL and Serilog entry points and determine the desired consistent behavior before making changes. Done means the integrations agree on value handling, read timing, opt-out support, and global-mode behavior.

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

Mô tả

Logs State: Needs Discussion
  • Which values: MEL keeps only string values (UserId = 42 is dropped). Serilog converts every property with ToString().
  • When they're read: MEL copies the values into the Sentry scope when BeginScope is called. Serilog reads LogContext each time an event is captured.
  • Opt-out: MEL can be customised or switched off through the public SentryOptions.SentryScopeStateProcessor. The Serilog processor is internal, so it can't be removed or replaced.
  • Global mode (MAUI, desktop): MEL's PushScope does nothing there. The Serilog processor still runs.

Originally posted by @ric-oliv in https://github.com/getsentry/sentry-dotnet/issues/5573#issuecomment-5874074940

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.