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.53b1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.53b1.tar.gz
Algorithm Hash digest
SHA256 7684555346fbdb4e4bc2859b17167ffacdbf2764c6210703b1b5a201ff355c54
MD5 0673c4b2a0ebd59ee96c25816f7d94b9
BLAKE2b-256 b16ab51d15bc72d337cb743a83e91a24b3c9290ac5cf0ebc3c9774ed567995dd

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_requests-0.53b1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.53b1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7e82ea8095062c471ae8329af30175b75e771ed5f8bf429a41176d9a763287f
MD5 844cae35d36a8548b7851f91b5249fb9
BLAKE2b-256 1a9cfc1c86e07b69611d33940f1030b89f885ea6368a5ff2404c75ca9ef84eed

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