mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-02 02:52:18 +08:00
Update __init__.py (#223)
This commit is contained in:
@ -25,7 +25,7 @@ Usage
|
|||||||
import opentelemetry.instrumentation.requests
|
import opentelemetry.instrumentation.requests
|
||||||
|
|
||||||
# You can optionally pass a custom TracerProvider to
|
# You can optionally pass a custom TracerProvider to
|
||||||
# RequestInstrumentor.instrument()
|
# RequestsInstrumentor.instrument()
|
||||||
opentelemetry.instrumentation.requests.RequestsInstrumentor().instrument()
|
opentelemetry.instrumentation.requests.RequestsInstrumentor().instrument()
|
||||||
response = requests.get(url="https://www.example.org/")
|
response = requests.get(url="https://www.example.org/")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user