Spans for HTTP requests - `UnityWebRequest` and `HttpMessageHandler`
Maintainer thường phản hồi trong vòng 3 ngày
@bitsandfoxes đang làm issue này rồi.
Từ ngày 9/5/2022.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
When a user makes an HTTP request to their backend, we want to measure how long that took. And propagate the trace id so we can have end to end tracing.
This can be split in:
HttpMessageHandler
The .NET approach. Used in Sentry Defenses:
https://github.com/getsentry/sentry-defenses/blob/2989949f857f1cccb46814ce0a05d50f603f9222/game/Assets/Scripts/Manager/BugSpawner.cs#L37
We need to find a way add the handler automatically. At least on the one assembly created by Unity when compiling the scripts.
Steps:
- A PoC that gets a DLL that has
new HttpClient(...)and adds the middleware (as done in Sentry defenses) @SimonCropp - Find out which Unity hooks can we rely on to get the
GameAssembly.dll@bitsandfoxes - With the PoC we can discuss next steps such as: Is this a .NET Global Tool? Do we have the code in
Sentry.Unity.Editor?
UnityWebRequests (Unity Client)
Example HTTP client usage: https://github.com/getsentry/sentry-unity/blob/7774137c35ce4a3653b934e15ed15f0078a2ee36/src/Sentry.Unity/UnityWebRequestTransport.cs#L75-L81
We need a way to plug Sentry in there. First 'manually' with some C# code. Then automatically, possibly with IL weaving.
- We need a strategy to get spans/crumbs similar to SentryHttpMessageHandler @bitsandfoxes
- PoC with IL weaving a DLL using
UnityWebRequestand add the new interceptor @SimonCropp - With the PoC we can discuss next steps such as: Is this a .NET Global Tool? Do we have the code in
Sentry.Unity.Editor?
- Ngôn ngữ chính
- C#
- Star
- 294
- Fork
- 63
- Merge trung bình
- 3 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 26
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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-unity
-
Feature Unity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
getsentry/sentry-unity#2923 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Tests Unity
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
getsentry/sentry-unity#2918 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Drop `Release` and `Environment` from the editor config windowCó thể đã có người làm @armadavalor đã nhận 3 ngày trước. Đang mởBreaking Change Editor Good First Issue Improvement Unity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 58/100
getsentry/sentry-unity#2914 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Make CI stable and fasterĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
getsentry/sentry-unity#2913 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Feature Unity
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
getsentry/sentry-unity#2796 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của getsentry/sentry-unity
Issue tương tự
-
Incorrect loop bound in SizeOptIListSelectIterator.ToListCó thể đã có người làm @equmagg đã nhận hôm nay. Đang mởarea-System.Collections untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
dotnet/runtime#137126 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
Azure/azure-sdk-for-net#64658 · 1 bình luận · 1 reaction ·
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 78/100
dotnet/aspnetcore#70370 ·
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 82/100
NethermindEth/nethermind#15684 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ai-assistant squad/flyt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Altinn/altinn-studio#21798 ·
Maintainer thường phản hồi trong vòng 1 ngày