You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

升级至Application Insights v2.21后是否仍需Microsoft.AI.Agent.Intercept.dll?

Application Insights v2.21版本相关配置及组件依赖说明

1. Microsoft.AI.Agent.Intercept.dll的必要性

从v2.21版本开始,Application Insights Web SDK已不再依赖Microsoft.AI.Agent.Intercept.dll。该组件原本用于旧版本的自动检测与拦截逻辑,v2.21中相关功能已整合至SDK核心模块,无需再单独依赖此文件。

2. web.config中httpModules配置的处理

无需保留原web.config中的<httpModules>配置段。v2.21版本采用了更轻量化的初始化机制,不再依赖ApplicationInsightsHttpModule,官方文档未提及该配置也说明其已被废弃,可直接移除以下内容:

<httpModules>
        <add xdt:Transform="InsertIfMissing" name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
</httpModules>

3. .csproj中PackageReference的处理

不需要添加Microsoft.ApplicationInsights.Agent.Intercept的显式引用。由于v2.21已不再依赖该组件,即使之前项目中有相关引用,也可以直接移除。

内容的提问来源于stack exchange,提问作者Ciaran Gallagher

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.14 23:22:01