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
Metadata
Release files for opentelemetry-instrumentation-niquests 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| opentelemetry_instrumentation_niquests-0.1.0.tar.gz | 31.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opentelemetry_instrumentation_niquests-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.5 kB
Release files / opentelemetry_instrumentation_niquests-0.1.0.tar.gz
| Download URL | opentelemetry_instrumentation_niquests-0.1.0.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17134e35d95a3dbb9ee1479ec3bac3f0443f77aa45e3f3ff27529ef1f69784a7
|
|
BLAKE2b-256 checksum How to use checksums |
7786b6ad0e21bf75426726d17cdf6cc94ddc9a78d5ef969c8718c78a37d62dcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logRelease files / opentelemetry_instrumentation_niquests-0.1.0-py3-none-any.whl
| Download URL | opentelemetry_instrumentation_niquests-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f40322fb88ac1d20cf03cee92567527f762341c74fb7971b4a29eb0cdc773330
|
|
BLAKE2b-256 checksum How to use checksums |
a5f19480fb8c98292bde4d9259c29db7e864f2f4d77bda360ebe7f5f77930d13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency log