Skip to content

Commit 4d0f3b5

Browse files
committed
Update .instrument() call signature response_hook argument name in the header comments
1 parent e861b93 commit 4d0f3b5

File tree

2 files changed

+2
-2
lines changed
  • instrumentation
    • opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore
    • opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo

2 files changed

+2
-2
lines changed

instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def response_hook(span, service_name, operation_name, result):
6767
# response hook logic
6868
6969
# Instrument Botocore with hooks
70-
BotocoreInstrumentor().instrument(request_hook=request_hook, response_hooks=response_hook)
70+
BotocoreInstrumentor().instrument(request_hook=request_hook, response_hook=response_hook)
7171
7272
# This will create a span with Botocore-specific attributes, including custom attributes added from the hooks
7373
session = botocore.session.get_session()

instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def failed_hook(span, event):
6464
# failed hook logic
6565
6666
# Instrument pymongo with hooks
67-
PymongoInstrumentor().instrument(request_hook=request_hook, response_hooks=response_hook, failed_hook=failed_hook)
67+
PymongoInstrumentor().instrument(request_hook=request_hook, response_hook=response_hook, failed_hook=failed_hook)
6868
6969
# This will create a span with pymongo specific attributes, including custom attributes added from the hooks
7070
client = MongoClient()

0 commit comments

Comments
 (0)