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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.51b0.tar.gz
Algorithm Hash digest
SHA256 e7f4bd3ffcab6ebcce8a1c652af218e050354c8e7cac2c34814292d4de75167a
MD5 75d695f37a15059c02d4e30b3dfb779e
BLAKE2b-256 bede6b176a7d235861cbe8eccbe18555ae60e3ef32fd1ab7c54225895fbfaf7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.51b0-py3-none-any.whl
Algorithm Hash digest
SHA256 0723aaafaeb2a825723f31c0bf644f9642377046063d1a52fc86571ced87feac
MD5 e1a816183d1ff9689600f03b0da0f788
BLAKE2b-256 e5263fcab37e1c4a9f11ac2b3384567783252808f02c8379e0fc563fb5700a1c

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