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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.35b0.tar.gz
Algorithm Hash digest
SHA256 95e7b266e12b8d5745c48ed76877536d88d4eb1d2ad5ddb8f3ba0909c034ab5e
MD5 0dec6f8a3e267d7d8d1a759d7c3dff96
BLAKE2b-256 b548d1f6eebe271bc5b55af0dea20dfd704a126caa0f8614a0ce973e5d4ca079

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.35b0-py3-none-any.whl
Algorithm Hash digest
SHA256 3eafc6a1cbc00694bb245f1735b486c60b90ded1950bbbc2af4b56725007b041
MD5 924a223873e87e8d46c10ffff36e0832
BLAKE2b-256 a54e0249ba8e570359e4bf058aa71e3cd721c72bdbef98005c2d485d5ed9c6b3

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