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.38b0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.38b0.tar.gz
Algorithm Hash digest
SHA256 694bfaa14477e8721dee5aaf112147cf93a1824d606c5ae15dd5c66d84bdf1bc
MD5 dc03173a152ea02685be6536a9d67b6e
BLAKE2b-256 49ec27b4f9ada218ec7aa65b9d8a148f86b2a5ddc98ec8873178c3a14a8392ee

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_requests-0.38b0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.38b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5820d962dfd7e8c2f5d0bbfcda2feb14c982ae0ca080447cb9725aa3bb58ee6
MD5 a4ebee6b844b73539acd327e54ebe2f1
BLAKE2b-256 94da3907395427411a6015ac56e9413d8db333451eb265cf5f50fa00513ffc3f

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