Skip to main content

OpenTelemetry niquests instrumentation

Project description

pypi

This library allows tracing HTTP requests made by the niquests library.

Niquests is a drop-in replacement for the requests library with native async support, HTTP/2, and HTTP/3 capabilities. Both synchronous and asynchronous interfaces are instrumented.

Lazy responses (e.g. Session(multiplexed=True)) receive a span and connection-level attributes (IP, TLS) but status code and response headers are not captured because they are not yet available.

Installation

pip install opentelemetry-instrumentation-niquests

Configuration

Exclude lists

To exclude certain URLs from being tracked, set the environment variable OTEL_PYTHON_NIQUESTS_EXCLUDED_URLS (or OTEL_PYTHON_EXCLUDED_URLS as fallback) with comma delimited regexes representing which URLs to exclude.

For example,

export OTEL_PYTHON_NIQUESTS_EXCLUDED_URLS="client/.*/info,healthcheck"

will exclude requests such as https://site/client/123/info and https://site/xyz/healthcheck.

References

Project details


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_niquests-0.1.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_niquests-0.1.0.tar.gz
Algorithm Hash digest
SHA256 17134e35d95a3dbb9ee1479ec3bac3f0443f77aa45e3f3ff27529ef1f69784a7
MD5 8c76a7cf8e479883d78cbd2ecdddb770
BLAKE2b-256 7786b6ad0e21bf75426726d17cdf6cc94ddc9a78d5ef969c8718c78a37d62dcb

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_niquests-0.1.0.tar.gz:

Publisher: publish.yml on abonur/opentelemetry-instrumentation-niquests

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentelemetry_instrumentation_niquests-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_niquests-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f40322fb88ac1d20cf03cee92567527f762341c74fb7971b4a29eb0cdc773330
MD5 f13d61e095190b73776b52ade9c06696
BLAKE2b-256 a5f19480fb8c98292bde4d9259c29db7e864f2f4d77bda360ebe7f5f77930d13

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_niquests-0.1.0-py3-none-any.whl:

Publisher: publish.yml on abonur/opentelemetry-instrumentation-niquests

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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