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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.61b0.tar.gz
Algorithm Hash digest
SHA256 15f879ce8fb206bd7e6fdc61663ea63481040a845218c0cf42902ce70bd7e9d9
MD5 e40d91c28ac19b9585497af41cfcf1a4
BLAKE2b-256 5ac77a47cb85c7aa93a9c820552e414889185bcf91245271d12e5d443e5f834d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.61b0-py3-none-any.whl
Algorithm Hash digest
SHA256 cce19b379949fe637eb73ba39b02c57d2d0805447ca6d86534aa33fcb141f683
MD5 10c0ac6e106da10ca3ac7ac5b6fa180f
BLAKE2b-256 5ea1a7a133b273d1f53950f16a370fc94367eff472c9c2576e8e9e28c62dcc9f

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