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()