mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 05:32:30 +08:00
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:
@ -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()
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user