Skip to main content

OpenTelemetry requests instrumentation

Project description

pypi

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.49b1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.49b1.tar.gz
Algorithm Hash digest
SHA256 329726afd607e1078e80bc2fb43741bd73e77c2d36804d9250d965858df8bd36
MD5 65ed07ffbe6d7c76ca18b353df6704e6
BLAKE2b-256 5e662f869ab1840a8226b485987cfa369228e6d4dc7e413f03ed795c9f7adc8a

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_requests-0.49b1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.49b1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a7f8321f9cca5b4da3a96b63dde0c7a41775302f4e9e0267a775f9800efac59
MD5 ba03c84e96871cc8020975c78d35e14b
BLAKE2b-256 23b414ed3a0aec0ef84cb4b68179fa748109be7420693facb93cb68e6ab4be36

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page