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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.45b0.tar.gz
Algorithm Hash digest
SHA256 6bf1359284105ab50fa7465ea6c60b4a62c699408cb0260af3ac8895e8a7451a
MD5 fedcce965233d93fca54a3516027ee1a
BLAKE2b-256 c5ae50f4ae7a795d9970b7b60af8370683608826d0134628d13e2ddd27bff914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.45b0-py3-none-any.whl
Algorithm Hash digest
SHA256 275851d04de518507b0411b98524602101b228b72e61f39dc627c0421ff2a81f
MD5 72edfba734145393fc57934cb266c87b
BLAKE2b-256 9ab10d996b4ababe70f5ed3c679741ffccabe2338dbc2fd3eb2a318c60437e63

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