Skip to content

Commit 996ba2f

Browse files
author
Emanuele Palazzetti
authored
Merge pull request #321 from gomlgs/master
[monkey] fix usage examples for patch_all, patch
2 parents 7ff9f23 + a7c1701 commit 996ba2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ddtrace/monkey.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def patch_all(**patch_modules):
5858
5959
:param dict \**patch_modules: Override whether particular modules are patched or not.
6060
61-
>>> patch_all({'redis': False, 'cassandra': False})
61+
>>> patch_all(redis=False, cassandra=False)
6262
"""
6363
modules = PATCH_MODULES.copy()
6464
modules.update(patch_modules)
@@ -71,7 +71,7 @@ def patch(raise_errors=True, **patch_modules):
7171
:param bool raise_errors: Raise error if one patch fail.
7272
:param dict \**patch_modules: List of modules to patch.
7373
74-
>>> patch({'psycopg': True, 'elasticsearch': True})
74+
>>> patch(psycopg=True, elasticsearch=True)
7575
"""
7676
modules = [m for (m, should_patch) in patch_modules.items() if should_patch]
7777
count = 0

0 commit comments

Comments
 (0)