Skip to content

Commit 1496d6b

Browse files
author
Emanuele Palazzetti
authored
Merge pull request #216 from palazzem/docs-fixes
[django] documentation for Django TAGS setting
2 parents 853081c + f873bf7 commit 1496d6b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ddtrace/contrib/django/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
2727
DATADOG_TRACE = {
2828
'DEFAULT_SERVICE': 'my-django-app',
29+
'TAGS': {'env': 'production'},
2930
}
3031
3132
If you need to access to the tracing settings, you should::
@@ -38,11 +39,13 @@
3839
3940
The available settings are:
4041
42+
* ``DEFAULT_SERVICE`` (default: ``django``): set the service name used by the
43+
tracer. Usually this configuration must be updated with a meaningful name.
44+
* ``TAGS`` (default: ``{}``): set global tags that should be applied to all
45+
spans.
4146
* ``TRACER`` (default: ``ddtrace.tracer``): set the default tracer
4247
instance that is used to trace Django internals. By default the ``ddtrace``
4348
tracer is used.
44-
* ``DEFAULT_SERVICE`` (default: ``django``): set the service name used by the
45-
tracer. Usually this configuration must be updated with a meaningful name.
4649
* ``ENABLED`` (default: ``not django_settings.DEBUG``): defines if the tracer is
4750
enabled or not. If set to false, the code is still instrumented but no spans
4851
are sent to the trace agent. This setting cannot be changed at runtime

0 commit comments

Comments
 (0)