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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_requests-0.59b0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.59b0.tar.gz
Algorithm Hash digest
SHA256 9af2ffe3317f03074d7f865919139e89170b6763a0251b68c25e8e64e04b3400
MD5 e1574c7a0bb46f04fdcf4aef4edd70b9
BLAKE2b-256 490131282a46b09684dfc636bc066deb090bae6973e71e85e253a8c74e727b1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.59b0-py3-none-any.whl
Algorithm Hash digest
SHA256 d43121532877e31a46c48649279cec2504ee1e0ceb3c87b80fe5ccd7eafc14c1
MD5 51586e7f6303b0abcb1ed90d67e59ece
BLAKE2b-256 e5eac282ba418b2669e4f730cb3f68b02a0ca65f4baf801e971169a4cc449ffb

See more details on using hashes here.

Supported by

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