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.42b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc25ca78cfd41e0484970892ba15836a52e36c40da5442f75cf42791e20f96ca |
|
MD5 | 2675ba8cb096a3a9a13771bef827a306 |
|
BLAKE2b-256 | b9af293cbd8e2d362cb34c4aa2039e52136dcd4853a69987900c6fc3990044ae |
Close
Hashes for opentelemetry_instrumentation_requests-0.42b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927549572af1d8f5d8ad89431b2cfde1f290ac2b6244f6a3c6134226e2e948b9 |
|
MD5 | bed6dec9b96b31ffdbca36acfc95f56d |
|
BLAKE2b-256 | 003f936089a1e42db00c153b2fe773c1ea951ed30f6b87fc2824370895a74ec2 |