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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.52b0.tar.gz
Algorithm Hash digest
SHA256 8a36ac5bc92ca17454f208720de8a147518cdaf0a5b82ed1615b5367e1dbbf2a
MD5 68aafe70d45cd4ea6cfb1f2508f5f100
BLAKE2b-256 d52de84c8fc0c47b5eba42f7061e343139e93f5e3b9e43d85e4266a65fa81131

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.52b0-py3-none-any.whl
Algorithm Hash digest
SHA256 2806a8f522a27fab150761d69e768aa479b076cf2b0e3ca1ddf6c4ff1bda4683
MD5 40eb9b5c40ef6d7b87cc21ed4b4b08e3
BLAKE2b-256 985745732fd6944c45ea0dece627fb45551aa20a45af4d3c151f71df14f96948

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