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

File metadata

  • Download URL: opentelemetry-instrumentation-requests-0.29b0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for opentelemetry-instrumentation-requests-0.29b0.tar.gz
Algorithm Hash digest
SHA256 b4903787bb0759ae7b27ae76e3b744a51aa804ec2336760c8422d710ae8cd62c
MD5 4b6d182083bf1b42573d529246573487
BLAKE2b-256 0d42832c8c026305922552ef77279514fa4eacfbbe5aa157f42bf2b607e04bb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opentelemetry_instrumentation_requests-0.29b0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for opentelemetry_instrumentation_requests-0.29b0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd5614396f739d6675911daed8999cd0a156decbbf7bf145da2e62b17ddf213e
MD5 87df2103868fc397ec95c092f1ca82b9
BLAKE2b-256 37288d2bce18a2c030b5267983a640e8b3c2a73a8e6d5b7c92962500c0f4159d

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