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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.41b0.tar.gz
Algorithm Hash digest
SHA256 bdc5515ae7533e620b312fd989941b7c2c92d492a2d4418f6ef8db5d7422fa64
MD5 13cfce61c13082b02ff523f58775aeee
BLAKE2b-256 7120b5156c6ce3d5d874ec63c9eed02c40dc6d80c0330de4040cf28b38ee4e5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.41b0-py3-none-any.whl
Algorithm Hash digest
SHA256 687fde31111669e729054e64d246c96b0b9d4d8702bd0e3569b7660bdb528d71
MD5 dbacca94635a5c9385df53067dd2be94
BLAKE2b-256 bfddb0625e7289936190245876ffd79d3a064124e3bf01c4defde5a0cfed3cb8

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