【发布时间】:2021-07-10 01:19:57
【问题描述】:
我在 IIS 上使用 Application Insight Codeless Attach 和 Status Monitor v2。
一切都很好,唯一的问题是我无法通过洞察力看到 SQL CommandText。
除了上述平台特定步骤外,您还必须 通过修改显式选择启用 SQL 命令收集 applicationInsights.config 文件包含以下内容:
应用程序文件夹没有任何 applicationInsights.config 文件,因此无法添加以下内容:
<EnableSqlCommandTextInstrumentation>true</EnableSqlCommandTextInstrumentation>
我还尝试更改“ApplicationMonitor\version\content\runtime”下的 ApplicationInsights-default.config 和 ApplicationInsights-recommended.config 文件,但没有成功。
有人知道如何在没有代码实现的情况下添加此属性吗?
【问题讨论】:
-
看起来只有在启用状态监视器时使用-connectionstring才有效。
标签: c# iis asp.net-mvc-5 dependencies azure-application-insights