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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.52b1.tar.gz
Algorithm Hash digest
SHA256 711a2ef90e32a0ffd4650b21376b8e102473845ba9121efca0d94314d529b501
MD5 5f09c90c7de63c73fdd4267248c5d483
BLAKE2b-256 56d727588187a7092dc64129bc4c8808277460d353fc52299f3e0b9d9d09ce79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.52b1-py3-none-any.whl
Algorithm Hash digest
SHA256 58ae3c415543d8ba2b0091b81ac13b65f2993adef0a4b9a5d3d7ebbe0023986a
MD5 dcb1236cb1a78bf48b77979840c94449
BLAKE2b-256 3fc5a1d78cb4beb9e7889799bf6d1c759d7b08f800cc068c94e94386678a7fe0

See more details on using hashes here.

Supported by

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