Datadog.Trace
NuGet package to your application.Datadog.Trace.Tracer.Instance
property to create new spans.app.config
/web.config
file (.NET Framework only)TracerSettings
from the default configuration sources. Set properties on this TracerSettings
instance before passing it to a Tracer
constructor. For example:TracerSettings
before creating the Tracer
. Changes made to TracerSettings
properies after the Tracer
is created are ignored.HKLM\System\CurrentControlSet\Services\{service name}\Environment
in the Windows Registry.app.config
or web.config
file, use the <appSettings>
section. For example:DD_TRACE_AGENT_URL
) when setting environment variables or configuration files. The second name, if present (e.g. AgentUri
), indicates the name the TracerSettings
property to use when changing settings in the code.DD_TRACE_AGENT_URL
, AgentUri
DD_AGENT_HOST
and DD_TRACE_AGENT_PORT
if set. Default value is http://<DD_AGENT_HOST>:<DD_TRACE_AGENT_PORT>
.DD_AGENT_HOST
DD_TRACE_AGENT_URL
is set. Default is value localhost
.DD_TRACE_AGENT_PORT
DD_TRACE_AGENT_URL
is set. Default value is 8126
.DD_ENV
Environment
env
tag with the specified value to all generated spans.DD_SERVICE_NAME
ServiceName
DD_TRACE_GLOBAL_FLAGS
GlobalTags
HKLM\System\CurrentControlSet\Services\{service name}\Environment
in the Windows Registry.DD_TRACE_ENABLED
TraceEnabled
false
completely disables the CLR profiler. For other configuration methods, the CLR profiler is still loaded, but traces will not be generated. Valid values are: true
(default) or false
.DD_TRACE_DEBUG
true
or false
(default). Setting this as an environment variable also enabled debug logs in the CLR Profiler.DD_TRACE_LOG_PATH
%ProgramData%\Datadog .NET Tracer\logs\dotnet-profiler.log
DD_DISABLED_INTEGRATIONS
DisabledIntegrationNames
AspNet
Microsoft.AspNet.Mvc
4.0+AspNetMvc
Microsoft.AspNet.WebApi
5.1+AspNetWebApi2
Wcf
AdoNet
HttpMessageHandler
WebRequest
StackExchange.Redis
1.0.187+StackExchangeRedis
ServiceStack.Redis
4.0.48+ServiceStackRedis
Elasticsearch.Net
5.3.0+ElasticsearchNet
MongoDB.Driver.Core
2.1.0+MongoDb