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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.53b0.tar.gz
Algorithm Hash digest
SHA256 e6e1d2e9d2e98ce6993f0f4224e5f5cd42cb8843cf594aaa6ff436682c0a200a
MD5 c0fa9f5778933a075a2325e0960e80fe
BLAKE2b-256 bcbb39983a82eef85dc26779797dc61b423b46c2c10c7fd10bdb86ab98667129

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.53b0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3fe68fee86e281223d5590f1c37f69b86db7dacd6d69e4a879a32c2281cc2c7
MD5 8da39168eca344812299260051240f97
BLAKE2b-256 d63fdf98d052613e11e643ed2aeaa660a91d2adbd334b346c5f9a5e8b7c82ab1

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