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.62b1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.62b1.tar.gz
Algorithm Hash digest
SHA256 67a79c4b67e2192445c1cf03d62126fa623065688d8bd1a9f87f858b0e5f0286
MD5 2cce59c3ab8d4c3383652ecfd4c72f87
BLAKE2b-256 8503eb26e1c65fd776206b759955d33151ee39ee0e7ac8dd80c97385c321a8d0

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_requests-0.62b1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.62b1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca348f2f51b715c21e86d82106d784f7069ae849c3e636ab37e34dc0ba510b8c
MD5 a01c8437bd60567d2d559533af4ab437
BLAKE2b-256 d85acddb1f93bd17d6cfc99038a0aaa9af3d6bf455dedfe24d0ba4e13c1d83f7

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