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

File metadata

  • Download URL: opentelemetry-instrumentation-requests-0.27b0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for opentelemetry-instrumentation-requests-0.27b0.tar.gz
Algorithm Hash digest
SHA256 d12fcd6e8be1fe66a209dbca4f44872ed752334445cce3c18eea646c8c46acb5
MD5 a368d2b7b46db02d7fd020dbba52f58d
BLAKE2b-256 c53b26bd0d1a319ae71bdf67b968752202fafe277cbb6e67cb91b407bdc25e87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_requests-0.27b0-py3-none-any.whl
Algorithm Hash digest
SHA256 133e1b4d30fe9dcaf11294086eee4901da336a8c666e4caadc7e8e4c91b134f8
MD5 7610412931a92741b845c88583b461f3
BLAKE2b-256 44d1ba22a3a3d917085cc3fc400bb61c3a8b423c480dcbe2a87891ba0d3eaeda

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page