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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.49b2.tar.gz
Algorithm Hash digest
SHA256 ea7216f13f42d3220ccd60cefd104fae656c9206bf5e3030d59fa367a9452e99
MD5 97cb779fb2c124248d7602f0c1f99977
BLAKE2b-256 b23923f0c2497fc3f452f0dd978e4b9c0aaa9e3cf206ea84c3fed1ad8872a397

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.49b2-py3-none-any.whl
Algorithm Hash digest
SHA256 d49b0022b29fb7f07a38b8e68750304c29a6d6114b94b56e3e811eff59efd318
MD5 5f0140bd56b0e5771cb15aa907755b1f
BLAKE2b-256 f906269cf4fcbd7be50a718f3d462207028bed1ec577d132fabe63ec63e4b100

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