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-requests/src/opentelemetry/instrumentation/requests/__init__.py
+5-3
Original file line number
Diff line number
Diff line change
@@ -41,20 +41,22 @@
41
41
42
42
.. code:: python
43
43
44
+
import requests
45
+
from opentelemetry.instrumentation.requests import RequestsInstrumentor
46
+
44
47
# `request_obj` is an instance of requests.PreparedRequest
45
48
def request_hook(span, request_obj):
46
49
pass
47
50
48
51
# `request_obj` is an instance of requests.PreparedRequest
0 commit comments