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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.60b1.tar.gz
Algorithm Hash digest
SHA256 9a1063c16c44a3ba6e81870c4fa42a0fac3ecef5a4d60a11d0976eec9046f3d4
MD5 da805523e7668c91037910446eccc463
BLAKE2b-256 9d4abb9d47d7424fc33aeba75275256ae6e6031f44b6a9a3f778d611c0c3ac27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.60b1-py3-none-any.whl
Algorithm Hash digest
SHA256 eec9fac3fab84737f663a2e08b12cb095b4bd67643b24587a8ecfa3cf4d0ca4c
MD5 d89dc5ed0aef4625628b408e13076949
BLAKE2b-256 f27f969b59a5acccb4c35317421843d63d7853ad7a18078ca3a9b80c248be448

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