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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.46b0.tar.gz
Algorithm Hash digest
SHA256 ef0ad63bfd0d52631daaf7d687e763dbd89b465f5cb052f12a4e67e5e3d181e4
MD5 1f75a5a4a1b2c518dd547b43f199d3a2
BLAKE2b-256 f6285b5e9fb74639e47f026a3fd6550bba965ca18b316a8178907540e711855c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.46b0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8c2472800d8686f3f286cd524b8746b386154092e85a791ba14110d1acc9b81
MD5 569bf5ae90201736b3c360ef21677c73
BLAKE2b-256 20425eee8720eccd4b94dd3d4908364785db8b22c9ae512ee47caff29064ca4c

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