OpenTelemetry requests instrumentation
Project description
This library allows tracing HTTP requests made by the requests library.
Installation
pip install opentelemetry-instrumentation-requests
Configuration
Exclude lists
To exclude certain URLs from being tracked, set the environment variable OTEL_PYTHON_REQUESTS_EXCLUDED_URLS (or OTEL_PYTHON_EXCLUDED_URLS as fallback) with comma delimited regexes representing which URLs to exclude.
For example,
export OTEL_PYTHON_REQUESTS_EXCLUDED_URLS="client/.*/info,healthcheck"
will exclude requests such as https://site/client/123/info and https://site/xyz/healthcheck.
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file opentelemetry_instrumentation_requests-0.49b2.tar.gz
.
File metadata
- Download URL: opentelemetry_instrumentation_requests-0.49b2.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea7216f13f42d3220ccd60cefd104fae656c9206bf5e3030d59fa367a9452e99 |
|
MD5 | 97cb779fb2c124248d7602f0c1f99977 |
|
BLAKE2b-256 | b23923f0c2497fc3f452f0dd978e4b9c0aaa9e3cf206ea84c3fed1ad8872a397 |
File details
Details for the file opentelemetry_instrumentation_requests-0.49b2-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_requests-0.49b2-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d49b0022b29fb7f07a38b8e68750304c29a6d6114b94b56e3e811eff59efd318 |
|
MD5 | 5f0140bd56b0e5771cb15aa907755b1f |
|
BLAKE2b-256 | f906269cf4fcbd7be50a718f3d462207028bed1ec577d132fabe63ec63e4b100 |