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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.54b1.tar.gz
Algorithm Hash digest
SHA256 3eca5d697c5564af04c6a1dd23b6a3ffbaf11e64887c6051655cee03998f4654
MD5 bac34e8f37e2e72ae7db98795eded40b
BLAKE2b-256 e745116da84930d3dc2f5cdd876283ca96e9b96547bccee7eaa0bd01ce6bf046

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.54b1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0c4cd5d946224f336d6bd73cdabdecc6f80d5c39208f84eb96eb15f16cd41a0
MD5 a0e41e392465841b1ed03e1228fd4c5c
BLAKE2b-256 2bb16e33d2c3d3cc9e3ae20a9a77625ec81a509a0e5d7fa87e09e7f879468990

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