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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.64b0.tar.gz
Algorithm Hash digest
SHA256 8213a20b6578c41aa05cc5b48419aea75e1584924a4904dfcf36524597e7cc96
MD5 199c2fb88a5481d77b580132827abfd9
BLAKE2b-256 a197d5fb7b3f329c24ff2f6478f1a0c0c516ba942d3df2acbb197d276af31816

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.64b0-py3-none-any.whl
Algorithm Hash digest
SHA256 dcad4324ad97d785a5a3b9500acf3af3965b4c1d1b95776fa5e275b173d9541c
MD5 98b6052ee2ddfdda108fa6510507c49a
BLAKE2b-256 a3b2f0f32ec327bdd76d245d28975dfb446d62eea2d267c06b6cb6c1a9b7e7d4

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