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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.55b1.tar.gz
Algorithm Hash digest
SHA256 3a04ae7bc90af08acef074b369275cf77c60533b319fa91cad76a380fd035c83
MD5 fd8492f6cdb2458eecf59cc77195527b
BLAKE2b-256 290c8300ceffd0a41e69590f20ff4854f5c0b2ed5e9453c21c1d710746377cd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.55b1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9ba0a67850b49aa965e760e87e4b68e52530e5373a0b3c15d290a8997136619
MD5 d3b9af15a0925e3ac6538a7d0c2268f8
BLAKE2b-256 fc319643d13bb78e07038c96e264a9e75cde93ecde50ff2b0cac7597613074d7

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