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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.49b0.tar.gz
Algorithm Hash digest
SHA256 b75a282b3641547272dc7d2fdc0dd68269d0c1e685e4d17579b7fbd34c19b6bb
MD5 0562e30a772bf4fe6cfd6e4614055922
BLAKE2b-256 c116c71196d8f4cac30b6936c77567ae769f44ac97227255627f5277d825277d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.49b0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb39803359e226b8eb0d4c8aaba6fd8a883a7f869fc331ff861743173b33d26d
MD5 7529176d319d3f769d5ba8c313b21be2
BLAKE2b-256 79334b8a4a839401290c44c65a8ca926a60a86c5ee3ecdcf54de4575c288b5ac

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