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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.56b0.tar.gz
Algorithm Hash digest
SHA256 bd1ed4f49d377108541ec26beb7050c31548073d43796f5d92bb91a3125fb566
MD5 88ea016431a80f546e93f1c5a583a5ce
BLAKE2b-256 e2e9e824a8ae2b022dc9c62559c803e5cc489ece7489ef38b6ff7efa74cd5cd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.56b0-py3-none-any.whl
Algorithm Hash digest
SHA256 07531147237c8592a1ac1d4d5515e18970ef39c940ebee5cdf96644ac037f793
MD5 4d3027ae27ba470c26afd3a1c0a96d66
BLAKE2b-256 3e363a50b898041174b9dc66fb1ede1d605b89e632296f98857887ea8c4df789

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