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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.63b0.tar.gz
Algorithm Hash digest
SHA256 b1b759945ba5f9d271d7815b41cd82f93905f0cb3f8a108c7b869277b85993bc
MD5 62dc40ea388726d508bf7d0bf379f237
BLAKE2b-256 8f572ae5fdb7e623e5ac9ee1cd1198b82df0f7d385f3a71b87363b315586b823

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.63b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b99a04b216dab01df676a4809bd5ad48fc051d08d8b60397d178ab0f2e67bedd
MD5 fefe68f08a787ff19e08cca7e0d5597b
BLAKE2b-256 7bd6384efb762683e3f4e350d39c68f5aa9c01c997b016ea15464a0050151db5

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