From f8b877eebc754311cfca6a3ec031c378036e47bc Mon Sep 17 00:00:00 2001 From: rahulgupta92 Date: Mon, 28 Mar 2022 23:06:42 +0530 Subject: [PATCH] Update .instrument() call signature response_hook argument name in the header comments (#1015) Co-authored-by: Srikanth Chekuri --- .../src/opentelemetry/instrumentation/botocore/__init__.py | 2 +- .../src/opentelemetry/instrumentation/pymongo/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/__init__.py b/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/__init__.py index 007bc6473..cf64e65d8 100644 --- a/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/__init__.py @@ -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() diff --git a/instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py b/instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py index 053e09140..171979dbf 100644 --- a/instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py @@ -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()