Spans for HTTP requests - `UnityWebRequest` and `HttpMessageHandler`
维护者通常 3 天内回复
@bitsandfoxes 已经在做这个了。
开始于 2022年5月9日。
评估
这个 Issue 还没有评估数据。
描述
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?
- 主要语言
- C#
- 星标
- 295
- 派生
- 63
- 平均合并
- 3 天 17 小时
- 30 天内合并 PR
- 26
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-unity 的其他 Issue
-
Feature Unity
难度 2/5 1-3 小时 新手友好度 45/100
getsentry/sentry-unity#2923 · 1 条评论 ·
维护者通常 3 天内回复
-
Tests Unity
难度 4/5 3-5 天 新手友好度 55/100
getsentry/sentry-unity#2918 · 1 条评论 ·
维护者通常 3 天内回复
-
Drop `Release` and `Environment` from the editor config window可能已有人在做 @armadavalor 于 2 天前认领。 未关闭Breaking Change Editor Good First Issue Improvement Unity
难度 2/5 1-3 小时 新手友好度 58/100
getsentry/sentry-unity#2914 · 1 条评论 ·
维护者通常 3 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
getsentry/sentry-unity#2913 · 1 条评论 ·
维护者通常 3 天内回复
-
Feature Unity
难度 4/5 3-5 天 新手友好度 48/100
getsentry/sentry-unity#2796 · 4 条评论 ·
维护者通常 3 天内回复
查看 getsentry/sentry-unity 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 80/100
Unity-Technologies/unity-agent-plugin#118 ·
维护者通常 1 天内回复
-
The Recommended preset turns on Import Uno DSP, which only works with the Material theme可能已有人在做 @agneszitte 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
unoplatform/uno.templates#2388 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
eyalgolan/statecraft-israel#2732 ·
维护者通常 1 天内回复
-
要トリアージ
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
kind/chore status/draft
难度 2/5 1-3 小时 新手友好度 65/100
Altinn/altinn-events#1158 ·
维护者通常 1 天内回复