Update .instrument() call signature response_hook argument name in the header comments (#1015)

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
This commit is contained in:
rahulgupta92
2022-03-28 23:06:42 +05:30
committed by GitHub
parent db478789e4
commit f8b877eebc
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ for example:
# response hook logic
# Instrument Botocore with hooks
BotocoreInstrumentor().instrument(request_hook=request_hook, response_hooks=response_hook)
BotocoreInstrumentor().instrument(request_hook=request_hook, response_hook=response_hook)
# This will create a span with Botocore-specific attributes, including custom attributes added from the hooks
session = botocore.session.get_session()

View File

@ -64,7 +64,7 @@ for example:
# failed hook logic
# Instrument pymongo with hooks
PymongoInstrumentor().instrument(request_hook=request_hook, response_hooks=response_hook, failed_hook=failed_hook)
PymongoInstrumentor().instrument(request_hook=request_hook, response_hook=response_hook, failed_hook=failed_hook)
# This will create a span with pymongo specific attributes, including custom attributes added from the hooks
client = MongoClient()