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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_requests-0.65b0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.65b0.tar.gz
Algorithm Hash digest
SHA256 1d601548f89236d5ab373c7208a2e1e162a8d6462b5b972f9ad8fb0ed82d7438
MD5 6fc885d08b66d7556be76298d691c1a7
BLAKE2b-256 c884f46bf7976a81827419b085c9ed14562410c7599e07509786e9f6eb3c5438

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.65b0-py3-none-any.whl
Algorithm Hash digest
SHA256 91688ec0d4d1fed75ea8d026ef2c66274ed9868c22b6be211ef85d832d16f957
MD5 2470163e6ac272ddaf8f21ac92e2e3ff
BLAKE2b-256 42456201afe846263d775cd4fc8d6a87dc8c15eb7921cdade4dca1e1227b04b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page