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
Close
Hashes for opentelemetry_instrumentation_requests-0.43b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd92c278d463dbad39cdc42e4f5871de8f66560cf9b40191b554a293aa6faf49 |
|
MD5 | 068a588f41eacb73520f5e88f8285e1d |
|
BLAKE2b-256 | cc7e9d92bd0d6514ce12da21d80cddc2abe34b4629d8e3e7e6b467a9171cd666 |
Close
Hashes for opentelemetry_instrumentation_requests-0.43b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd9d0862ab8c8892a207dd828134f23c6a5014756f0f055120412aa00be7732d |
|
MD5 | f5af8b4cc9a16e5a5315616c5589c421 |
|
BLAKE2b-256 | 3ba998618c6383cad51313f448412cadd0bed43634f0287eaf67a3e71a536f9c |