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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.36b0.tar.gz
Algorithm Hash digest
SHA256 c40a075597325644e782e79e12065dfd8e363beac5259b89acda54c1d79a250c
MD5 66050a596576edb753d9bec1abd53e3e
BLAKE2b-256 e1bcfde37758e1914255fc2eafc1c3111e0b2cce830f0fbee860256d29be40c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.36b0-py3-none-any.whl
Algorithm Hash digest
SHA256 39c65951a6bab3d41ec45a4ef42d8c1cdfeb618aa69da7177ad8958be12aee02
MD5 d85e3cafabe41143c1d5631e2763434a
BLAKE2b-256 f1ecb1ea55ab9a73b0dfd6d906f05dbdc4a890f703594b45e61a898483fd2251

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