Skip to content

Commit 6b34a97

Browse files
update docs for TwL (#1751)
Co-authored-by: Tahir H. Butt <[email protected]>
1 parent 1a26892 commit 6b34a97

File tree

13 files changed

+9
-217
lines changed

13 files changed

+9
-217
lines changed

ddtrace/contrib/aiohttp/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
* ``distributed_tracing_enabled`` (default: ``True``): enable distributed tracing during
3333
the middleware execution, so that a new span is created with the given ``trace_id`` and
3434
``parent_id`` injected via request headers.
35-
* ``analytics_enabled`` (default: ``None``): analyze spans for AioHTTP in App Analytics.
3635
3736
Third-party modules that are currently supported by the ``patch()`` method are:
3837

ddtrace/contrib/asgi/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ def custom_handle_exception_span(exc, span):
3939
4040
Default: ``True``
4141
42-
.. py:data:: ddtrace.config.asgi['analytics_enabled']
43-
44-
Whether to analyze spans for Asgi in App Analytics.
45-
46-
Can also be enabled with the ``DD_TRACE_ASGI_ANALYTICS_ENABLED`` environment variable.
47-
48-
Default: ``None``
49-
5042
.. py:data:: ddtrace.config.asgi['service_name']
5143
5244
The service name reported for your ASGI app.

ddtrace/contrib/django/__init__.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@
3535
3636
Default: ``True``
3737
38-
.. py:data:: ddtrace.config.django['analytics_enabled']
39-
40-
Whether to analyze spans for Django in App Analytics.
41-
42-
Can also be enabled with the ``DD_TRACE_DJANGO_ANALYTICS_ENABLED`` environment variable.
43-
44-
Default: ``None``
45-
4638
.. py:data:: ddtrace.config.django['service_name']
4739
4840
The service name reported for your Django app.
@@ -175,10 +167,6 @@
175167
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------+
176168
| ``DISTRIBUTED_TRACING`` | ``config.django['distributed_tracing_enabled']`` |
177169
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------+
178-
| ``ANALYTICS_ENABLED`` | ``config.django['analytics_enabled']`` |
179-
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------+
180-
| ``ANALYTICS_SAMPLE_RATE`` | ``config.django['analytics_sample_rate']`` |
181-
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------+
182170
| ``TRACE_QUERY_STRING`` | ``config.django['trace_query_string']`` |
183171
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------+
184172
| ``TAGS`` | ``DD_TAGS`` environment variable or ``tracer.set_tags()`` |
@@ -208,8 +196,6 @@
208196
'DEFAULT_DATABASE_PREFIX': 'my-',
209197
'ENABLED': True,
210198
'DISTRIBUTED_TRACING': True,
211-
'ANALYTICS_ENABLED': True,
212-
'ANALYTICS_SAMPLE_RATE': 0.5,
213199
'TRACE_QUERY_STRING': None,
214200
'TAGS': {'env': 'production'},
215201
'TRACER': 'my.custom.tracer',
@@ -230,8 +216,6 @@
230216
config.django['instrument_databases'] = True
231217
config.django['instrument_caches'] = True
232218
config.django['trace_query_string'] = True
233-
config.django['analytics_enabled'] = True
234-
config.django['analytics_sample_rate'] = 0.5
235219
tracer.set_tags({'env': 'production'})
236220
237221
import my.custom.tracer

ddtrace/contrib/falcon/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
To disable distributed tracing when using autopatching, set the
2121
``DATADOG_FALCON_DISTRIBUTED_TRACING`` environment variable to ``False``.
2222
23-
To enable analyzed spans for App Analytics, set the
24-
``DD_FALCON_ANALYTICS_ENABLED`` environment variable to ``True``.
25-
2623
**Supported span hooks**
2724
2825
The following is a list of available tracer hooks that can be used to intercept

ddtrace/contrib/flask/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ def index():
3737
3838
Default: ``True``
3939
40-
.. py:data:: ddtrace.config.flask['analytics_enabled']
41-
42-
Whether to analyze spans for Flask in App Analytics.
43-
44-
Can also be enabled with the ``DD_TRACE_FLASK_ANALYTICS_ENABLED`` environment variable.
45-
46-
Default: ``None``
47-
4840
.. py:data:: ddtrace.config.flask['service_name']
4941
5042
The service name reported for your Flask app.

ddtrace/contrib/molten/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ def hello(name: str, age: int) -> str:
2323
2424
Default: ``True``
2525
26-
.. py:data:: ddtrace.config.molten['analytics_enabled']
27-
28-
Whether to analyze spans for Molten in App Analytics.
29-
30-
Can also be enabled with the ``DD_TRACE_MOLTEN_ANALYTICS_ENABLED`` environment variable.
31-
32-
Default: ``None``
33-
3426
.. py:data:: ddtrace.config.molten['service_name']
3527
3628
The service name reported for your Molten app.

ddtrace/contrib/pyramid/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* ``datadog_trace_service``: change the `pyramid` service name
2121
* ``datadog_trace_enabled``: sets if the Tracer is enabled or not
2222
* ``datadog_distributed_tracing``: set it to ``False`` to disable Distributed Tracing
23-
* ``datadog_analytics_enabled``: set it to ``True`` to analyze spans for Pyramid in App Analytics
2423
2524
If you use the ``pyramid.tweens`` settings value to set the tweens for your
2625
application, you need to add ``ddtrace.contrib.pyramid:trace_tween_factory``

ddtrace/contrib/requests/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@
2424
# disable distributed tracing globally
2525
config.requests['distributed_tracing'] = False
2626
27-
# enable trace analytics globally
28-
config.requests['analytics_enabled'] = True
29-
3027
# change the service name/distributed tracing only for this session
3128
session = Session()
3229
cfg = config.get_from(session)
3330
cfg['service_name'] = 'auth-api'
34-
cfg['analytics_enabled'] = True
3531
3632
:ref:`Headers tracing <http-headers-tracing>` is supported for this integration.
3733
"""

ddtrace/contrib/sanic/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ def index(request):
4040
4141
Default: ``True``
4242
43-
.. py:data:: ddtrace.config.sanic['analytics_enabled']
44-
45-
Whether to analyze spans for Sanic in App Analytics.
46-
47-
Can also be enabled with the ``DD_TRACE_SANIC_ANALYTICS_ENABLED`` environment variable.
48-
49-
Default: ``None``
5043
5144
.. py:data:: ddtrace.config.sanic['service_name']
5245

ddtrace/contrib/tornado/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def log_exception(self, typ, value, tb):
7676
'default_service': 'my-tornado-app',
7777
'tags': {'env': 'production'},
7878
'distributed_tracing': False,
79-
'analytics_enabled': False,
8079
'settings': {
8180
'FILTERS': [
8281
FilterRequestsOnUrl(r'http://test\\.example\\.com'),
@@ -100,7 +99,6 @@ def log_exception(self, typ, value, tb):
10099
* ``distributed_tracing`` (default: `True`): enable distributed tracing if this is called
101100
remotely from an instrumented application.
102101
We suggest to enable it only for internal services where headers are under your control.
103-
* ``analytics_enabled`` (default: `None`): analyze spans for Tornado in App Analytics.
104102
* ``agent_hostname`` (default: `localhost`): define the hostname of the APM agent.
105103
* ``agent_port`` (default: `8126`): define the port of the APM agent.
106104
* ``settings`` (default: ``{}``): Tracer extra settings used to change, for instance, the filtering behavior.

0 commit comments

Comments
 (0)