Skip to content

Commit 7f00fb8

Browse files
authored
Fix doc error in file-level code block (#710)
1 parent 19e748f commit 7f00fb8

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-requests/src/opentelemetry/instrumentation/requests

1 file changed

+2
-2
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-requests/src/opentelemetry/instrumentation/requests/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import requests
2525
from opentelemetry.instrumentation.requests import RequestsInstrumentor
2626
27-
# You can optionally pass a custom TracerProvider to
28-
RequestsInstrumentor.instrument()
27+
# You can optionally pass a custom TracerProvider to instrument().
28+
RequestsInstrumentor().instrument()
2929
response = requests.get(url="https://www.example.org/")
3030
3131
API

0 commit comments

Comments
 (0)