Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Correlation/concurrency issues with `UseAzureMonitor` & `WebApplicationFactory<T>`.

未关闭
#208 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
azure

调研方向

从链接的 dotnet/runtime issue 98854 和固定仓库提交中的 ActivityTesting 复现开始。启用 UseAzureMonitor 后运行集成测试,比较并行执行和顺序执行,并查看已记录的部分变通方案。当并发和关联失败得到复现、理解并解决,且不依赖该变通方案时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

I was directed by @tarekgh here to create an issue in this repository, so here I am 👋

There are more details in the issue linked (https://github.com/dotnet/runtime/issues/98854), but the gist of it is this: Adding UseAzureMonitor causes my integration tests to "blow up"; It's causing some immense concurrency and/or correlation issues.

Without UseAzureMonitor I have no concurrency and/or correlation issues (Only some inconsistencies in the name of the activity, which is a different issue entirely I reckon, not related to Azure).

With UseAzureMonitor however there is something happening (be that concurrency or correlation - I don't know) that's causing my integration tests to fail when running them in parallel, but work fine when I'm running them sequentially.

Later in the thread I did find a partial workaround (With its own set of problems), but the general issue stands; Something fishy is going on with UseAzureMonitor.

In case the issue over on dotnet drops or I do a lot of changes to the repro during research, here's a direct link to the GitHub repo before adding the partial workaround: https://github.com/KennethHoff/Repros/tree/b25106f575ee5c782f99dfcfe89b5fc6eb53a900/ActivityTesting

主要语言
PowerShell
星标
1.2k
派生
493
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/AzureMonitorCommunity 的其他 Issue

查看 microsoft/AzureMonitorCommunity 的全部 Issue

相似的 Issue

更多 Observability & SRE Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。