We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d135f20 commit bed13f5Copy full SHA for bed13f5
instrumentation/opentelemetry-instrumentation-urllib/README.rst
@@ -29,6 +29,8 @@ The hooks can be configured as follows:
29
30
.. code:: python
31
32
+ from opentelemetry.instrumentation.urllib import URLLibInstrumentor
33
+
34
# `request_obj` is an instance of urllib.request.Request
35
def request_hook(span, request_obj):
36
pass
@@ -38,8 +40,8 @@ The hooks can be configured as follows:
38
40
def response_hook(span, request_obj, response)
39
41
42
- URLLibInstrumentor.instrument(
- request_hook=request_hook, response_hook=response_hook)
43
+ URLLibInstrumentor().instrument(
44
+ request_hook=request_hook, response_hook=response_hook
45
)
46
47
Exclude lists
0 commit comments