You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/__init__.py
+17-39
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,10 @@
48
48
The `instrument` method accepts the following keyword args:
49
49
50
50
tracer_provider (TracerProvider) - an optional tracer provider
51
-
request_hooks (dict) - a mapping between service names their respective callable request hooks
52
-
* a request hook signature is: def request_hook(span: Span, operation_name: str, api_params: dict) -> None
53
-
response_hooks (dict) - a mapping between service names their respective callable response hooks
54
-
* a response hook signature is: def response_hook(span: Span, operation_name: str, result: dict) -> None
51
+
request_hook (Callable) - a function with extra user-defined logic to be performed before performing the request
52
+
this function signature is: def request_hook(span: Span, service_name: str, operation_name: str, api_params: dict) -> None
53
+
response_hook (Callable) - a function with extra user-defined logic to be performed after performing the request
54
+
this function signature is: def request_hook(span: Span, service_name: str, operation_name: str, result: dict) -> None
55
55
56
56
for example:
57
57
@@ -60,16 +60,14 @@
60
60
from opentelemetry.instrumentation.botocore import BotocoreInstrumentor
0 commit comments