Skip to content

Commit 3ca973b

Browse files
committed
Add documentation for Tornado distributed tracing
1 parent 0b519fb commit 3ca973b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ddtrace/contrib/tornado/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def notify(self):
5454
'datadog_trace': {
5555
'default_service': 'my-tornado-app',
5656
'tags': {'env': 'production'},
57+
'distributed_tracing': True,
5758
},
5859
}
5960
@@ -66,8 +67,11 @@ def notify(self):
6667
* ``default_service`` (default: `tornado-web`): set the service name used by the tracer. Usually
6768
this configuration must be updated with a meaningful name.
6869
* ``tags`` (default: `{}`): set global tags that should be applied to all spans.
69-
* ``enabled`` (default: `true`): define if the tracer is enabled or not. If set to `false`, the
70+
* ``enabled`` (default: `True`): define if the tracer is enabled or not. If set to `false`, the
7071
code is still instrumented but no spans are sent to the APM agent.
72+
* ``distributed_tracing`` (default: `False`): enable distributed tracing if this is called
73+
remotely from an instrumented application.
74+
We suggest to enable it only for internal services where headers are under your control.
7175
* ``agent_hostname`` (default: `localhost`): define the hostname of the APM agent.
7276
* ``agent_port`` (default: `8126`): define the port of the APM agent.
7377
"""

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Supported web frameworks:
286286

287287
- Django
288288
- Flask
289-
289+
- Tornado
290290

291291
HTTP client/server
292292
~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)