Skip to content

Commit a3a0b24

Browse files
yashaswi2000shalevrocelotl
authored
Fixed urllib3 instrumentation example in instrumentation documentation (#1793)
* corrected instrumentation example in urllib3 * Remove changelog entry --------- Co-authored-by: Shalev Roda <[email protected]> Co-authored-by: Diego Hurtado <[email protected]>
1 parent 7292bee commit a3a0b24

File tree

2 files changed

+4
-4
lines changed
  • instrumentation/opentelemetry-instrumentation-urllib3

2 files changed

+4
-4
lines changed

instrumentation/opentelemetry-instrumentation-urllib3/README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ The hooks can be configured as follows:
3838
def response_hook(span, request, response):
3939
pass
4040
41-
URLLib3Instrumentor.instrument(
42-
request_hook=request_hook, response_hook=response_hook)
41+
URLLib3Instrumentor().instrument(
42+
request_hook=request_hook, response_hook=response_hook
4343
)
4444
4545
Exclude lists

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def request_hook(span, request):
5656
def response_hook(span, request, response):
5757
pass
5858
59-
URLLib3Instrumentor.instrument(
60-
request_hook=request_hook, response_hook=response_hook)
59+
URLLib3Instrumentor().instrument(
60+
request_hook=request_hook, response_hook=response_hook
6161
)
6262
6363
Exclude lists

0 commit comments

Comments
 (0)