Add device and OS attributes to metrics on mobile, as the native SDKs do
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
- 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
- backend-api-design, observability
Hướng nghiên cứu
Read the metrics spec linked in the issue and compare its default attribute guidance with the native SDK behavior described for sentry-java and sentry-cocoa. If the SDK and ingest teams decide .NET should match the native SDKs, inspect SentryOptions.DeviceLogAttributes and SentryMetric.Factory.cs, where SetDefaultAttributes is called. Done means the decision is reflected consistently in the metrics attributes and, if needed, the spec.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem Statement
#6028 adds device and OS attributes (os.name, os.version, device.brand, device.model, device.family) to structured logs on Android, iOS and Mac Catalyst, as the logs spec asks of mobile SDKs. Metrics don't get them.
The native SDKs we wrap do add them to metrics:
- sentry-java (8.66.0):
DefaultAndroidEventProcessor.process(SentryMetricsEvent, Hint)sets the same five attributes it sets on logs. - sentry-cocoa (9.35.0):
TelemetryScopeApplieradds the OS and device attributes to every telemetry item, metrics included.
So a metric emitted from .NET on Android or iOS carries fewer attributes than one emitted from the native SDK in the same app.
Why this needs a decision first
The metrics spec doesn't list device or OS attributes. It also says SDKs SHOULD minimize default attributes because of cardinality, and that new defaults SHOULD only be added after discussion with the SDK and ingest teams. The native SDKs go beyond that.
The question is whether .NET should match the native SDKs or follow the spec as written, and whether the spec should be updated.
Solution Brainstorm
If we match the native SDKs, the work is small. #6028 adds an internal SentryOptions.DeviceLogAttributes hook, filled by the Android and Cocoa integrations and applied in SentryLog.SetDefaultAttributes. Metrics would apply the same hook in SentryMetric.Factory.cs, where SetDefaultAttributes is already called. The hook would then want a name that isn't specific to logs.
- 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
- 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-dotnet
-
chore: remove stale IL3050/IL3053 workaround from the iOS sampleCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởState: Needs Discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-dotnet#6071 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"Có thể đã có người làm @pcbeingused33 đã nhận hôm nay. Đang mởState: Needs Discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-dotnet#6039 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
.NET Platform: Android Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
getsentry/sentry-dotnet#6020 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Move the Blazor WebAssembly sample off the deprecated DevServerCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở.NET Framework: Blazor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
getsentry/sentry-dotnet#5906 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs MSBuild Needs Docs Update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-dotnet#5691 · 1 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-dotnet
Issue tương tự
-
Audit by ear: boss warnings, other not-enough messages, ailments and barriers in a chapter 1 battleĐang mởenhancement needs-game ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Sour-Dev-Home/metaphor-accessibility#1273 ·
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 68/100
joinrpg/joinrpg-net#6336 ·
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 76/100
muxinc/mux-csharp#88 ·
-
In-car displays show 0 km/h and P while the AV drivesCó thể đã có người làm @bazilinskyy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
bazilinskyy/coupled-sim#366 ·
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 76/100
Maintainer thường phản hồi trong vòng 3 ngày