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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.54b0.tar.gz
Algorithm Hash digest
SHA256 abc604d58a0da9cbfad2e9439df2b85437ec00bf550753cf64bf6d61e2b98bdd
MD5 a5ebefc29e73f559e8b28931e9981f7b
BLAKE2b-256 e0202ef61cc45a44f1d865d0a57c84c65649799d1d22fcb69f78c3133dd8fcba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.54b0-py3-none-any.whl
Algorithm Hash digest
SHA256 c05324b3a5a047b28cd7bccf1f506d7ebadbfd8faefc2661fe7d40c3218d9a8c
MD5 d46c61c877fedb05fe0960abc0077eb0
BLAKE2b-256 e1460507f3f64683f8cf4aef9483c1b760418f9f17a2480fa970db6225ea42da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page