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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.57b0.tar.gz
Algorithm Hash digest
SHA256 193bd3fd1f14737721876fb1952dffc7d43795586118df633a91ecd9057446ff
MD5 5230580983a92462128a990b7202f194
BLAKE2b-256 0de101f5c28a60ffbc4c04946ad35bc8bf16382d333e41afaa042b31c35364b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.57b0-py3-none-any.whl
Algorithm Hash digest
SHA256 66a576ac8080724ddc8a14c39d16bb5f430991bd504fdbea844c7a063f555971
MD5 1cb582a5e6f9474783541272d290adea
BLAKE2b-256 b57d40144701fa22521e3b3fce23e2f0a5684a9385c90b119b70e7598b3cb607

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