从 IIS 上的 Datadog 自动跟踪检测中排除站点 [英] Exclude site from Datadog automatic trace instrumentation on IIS
本文介绍了从 IIS 上的 Datadog 自动跟踪检测中排除站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否有办法从 IIS 上的 Datadog 自动跟踪中排除站点.我已经阅读了文档,但没有找到任何相关内容.
I was wondering to know if there is a way to exclude a site from Datadog automatic tracing on IIS. I've read the docs but didn't find anything about.
推荐答案
如果您使用的是 Datadog 的 .NET Tracer,您可以在 appSettings
部分设置 DD_TRACE_ENABLED=false
web.config
文件(文档).例如:
If you are using Datadog's .NET Tracer, you can set DD_TRACE_ENABLED=false
in the appSettings
section of the web.config
file (docs). For example:
<configuration>
<appSettings>
<add key="DD_TRACE_ENABLED" value="false"/>
</appSettings>
</configuration>
另一种选择是部署 datadog.json
文件(docs) 在您的应用程序的根目录中,其中包含:
Another option is to deploy a datadog.json
file (docs) in the root of your app that contains:
{
"DD_TRACE_ENABLED": "false"
}
(免责声明:我在 Datadog 工作)
(Disclaimer: I work at Datadog)
这篇关于从 IIS 上的 Datadog 自动跟踪检测中排除站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文