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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.48b0.tar.gz
Algorithm Hash digest
SHA256 67ab9bd877a0352ee0db4616c8b4ae59736ddd700c598ed907482d44f4c9a2b3
MD5 4f3c6648cd403f849a677fe9d96d607d
BLAKE2b-256 52ac5eb78efde21ff21d0ad5dc8c6cc6a0f8ae482ce8a46293c2f45a628b6166

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.48b0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4f01852121d0bd4c22f14f429654a735611d4f7bf3cf93f244bdf1489b2233d
MD5 122aba91e3c8358e5893aa4b11a36571
BLAKE2b-256 43df0df9226d1b14f29d23c07e6194b9fd5ad50e7d987b7fd13df7dcf718aeb1

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