Configuration¶
ddtrace can be configured using environment variables. They are listed below:
Variable Name |
Type |
Default value |
Description |
---|---|---|---|
|
String |
Set an application’s environment e.g. |
|
|
String |
(autodetected) |
Set the service name to be used for this application. A default is
provided for these integrations: Bottle, Flask, Grpc,
Pyramid, Pylons, Tornado, Celery, Django and
Falcon. Added in |
|
String |
Define service name mappings to allow renaming services in traces, e.g. |
|
|
String |
Set global tags to be attached to every span. Value must be either comma or space separated. e.g. |
|
|
String |
Set an application’s version in traces and logs e.g. |
|
|
String |
datadoghq.com |
Specify which site to use for uploading profiles. Set to
|
|
Boolean |
True |
Enable sending of spans to the Agent. Note that instrumentation will still be installed and spans will be
generated. Added in |
|
Boolean |
False |
Enables debug logging in the tracer. Setting this flag will cause the library to create a root logging handler if
one does not already exist. Added in |
|
Boolean |
True |
Enables <INTEGRATION> to be patched. For example, |
|
String |
Override the modules patched for this execution of the program. Must be
a list in the |
|
|
Boolean |
True |
Enables Logs Injection. |
|
URL |
|
The URL to use to connect the Datadog agent. The url can starts with
|
|
Boolean |
False |
Enable or disable start up diagnostic logging. |
|
Float |
1.0 |
A float, f, 0.0 <= f <= 1.0. f*100% of traces will be sampled. |
|
Boolean |
False |
Enable Datadog profiling when using |
|
Float |
10 |
The timeout in seconds before dropping events if the HTTP API does not reply. |
|
Float |
1 |
The percentage of maximum time the stack profiler can use when computing statistics. Must be greater than 0 and lesser or equal to 100. |
|
Integer |
64 |
The maximum number of frames to capture in stack execution tracing. |
|
Float |
2 |
The percentage of events that should be captured (e.g. memory allocation). Greater values reduce the program execution speed. Must be greater than 0 lesser or equal to 100. |
|
Float |
60 |
The interval in seconds to wait before flushing out recorded events. |
|
Boolean |
True |
Whether to ignore the profiler in the generated data. |
|
String |
The tags to apply to uploaded profile. Must be a list in the
|