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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.47b0.tar.gz
Algorithm Hash digest
SHA256 f85ed52cbca21bff226e0e7f1888e5b9bc386657ecf4b0440f328e5b3aba8436
MD5 7766ed332d22a3aa95fd89756503b37a
BLAKE2b-256 8f0c15a8527aa9002b61c57ea993428e320d72a246501ea4a6e477a8ebeaa91d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.47b0-py3-none-any.whl
Algorithm Hash digest
SHA256 77fdd13f64fef2cb44665fe6975eadb993d78f96612e55a502e79b34ef7fee47
MD5 ca470a419574ace13e4522c096fa2e2b
BLAKE2b-256 bea71e38c7ff326b0e91a51e14698e749cf9c945195b23739805970e84ae160d

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