Skip to content

Commit 2fb1d88

Browse files
authored
Merge pull request #125 from yan12125/reenable-aiobotocore
Bring aiobotocore support back
2 parents a9c866e + f28120f commit 2fb1d88

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

aws_xray_sdk/core/patcher.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
log = logging.getLogger(__name__)
1313

1414
SUPPORTED_MODULES = (
15+
'aiobotocore',
1516
'botocore',
1617
'pynamodb',
1718
'requests',
@@ -24,6 +25,7 @@
2425
)
2526

2627
NO_DOUBLE_PATCH = (
28+
'aiobotocore',
2729
'botocore',
2830
'pynamodb',
2931
'requests',
@@ -66,8 +68,8 @@ def patch(modules_to_patch, raise_errors=True, ignore_module_patterns=None):
6668
if module_to_patch == 'boto3':
6769
modules.add('botocore')
6870
# aioboto3 depends on aiobotocore and patching aiobotocore is sufficient
69-
# elif module_to_patch == 'aioboto3':
70-
# modules.add('aiobotocore')
71+
elif module_to_patch == 'aioboto3':
72+
modules.add('aiobotocore')
7173
# pynamodb requires botocore to be patched as well
7274
elif module_to_patch == 'pynamodb':
7375
modules.add('botocore')

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ deps =
3030
# Python3.5+ only deps
3131
py{35,36}: aiohttp >= 3.0.0
3232
py{35,36}: pytest-aiohttp
33-
py{35,36}: aiobotocore
33+
py{35,36}: aiobotocore >= 0.10.0
3434

3535
commands =
3636
py{27,34}: coverage run --source aws_xray_sdk -m py.test tests --ignore tests/ext/aiohttp --ignore tests/ext/aiobotocore --ignore tests/test_async_local_storage.py --ignore tests/test_async_recorder.py
37-
py{35,36}: coverage run --source aws_xray_sdk -m py.test tests --ignore tests/ext/aiobotocore
37+
py{35,36}: coverage run --source aws_xray_sdk -m py.test tests
3838

3939
setenv =
4040
DJANGO_SETTINGS_MODULE = tests.ext.django.app.settings

0 commit comments

Comments
 (0)