forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
41 lines (25 loc) · 1019 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""
Boto integration will trace all AWS calls made via boto2.
Enabling
~~~~~~~~
The boto integration is enabled automatically when using
:ref:`ddtrace-run<ddtracerun>` or :ref:`import ddtrace.auto<ddtraceauto>`.
Or use :func:`patch()<ddtrace.patch>` to manually enable the integration::
from ddtrace import patch
patch(boto=True)
Configuration
~~~~~~~~~~~~~
.. py:data:: ddtrace.config.boto['tag_no_params']
This opts out of the default behavior of collecting a narrow set of API
parameters as span tags.
To not collect any API parameters, ``ddtrace.config.boto.tag_no_params =
True`` or by setting the environment variable ``DD_AWS_TAG_NO_PARAMS=true``.
Default: ``False``
"""
from ...internal.utils.importlib import require_modules
required_modules = ["boto.connection"]
with require_modules(required_modules) as missing_modules:
if not missing_modules:
from .patch import get_version
from .patch import patch
__all__ = ["patch", "get_version"]