OpenTelemetry niquests instrumentation
Project description
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_instrumentation_niquests-0.1.0.tar.gz.
File metadata
- Download URL: opentelemetry_instrumentation_niquests-0.1.0.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17134e35d95a3dbb9ee1479ec3bac3f0443f77aa45e3f3ff27529ef1f69784a7
|
|
| MD5 |
8c76a7cf8e479883d78cbd2ecdddb770
|
|
| BLAKE2b-256 |
7786b6ad0e21bf75426726d17cdf6cc94ddc9a78d5ef969c8718c78a37d62dcb
|
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_niquests-0.1.0.tar.gz:
Publisher:
publish.yml on abonur/opentelemetry-instrumentation-niquests
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentelemetry_instrumentation_niquests-0.1.0.tar.gz -
Subject digest:
17134e35d95a3dbb9ee1479ec3bac3f0443f77aa45e3f3ff27529ef1f69784a7 - Sigstore transparency entry: 1755625882
- Sigstore integration time:
-
Permalink:
abonur/opentelemetry-instrumentation-niquests@9365354b52bb4bf4af4e6380f9a9e03fa1c921fd -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/abonur
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9365354b52bb4bf4af4e6380f9a9e03fa1c921fd -
Trigger Event:
release
-
Statement type:
File details
Details for the file opentelemetry_instrumentation_niquests-0.1.0-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_instrumentation_niquests-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f40322fb88ac1d20cf03cee92567527f762341c74fb7971b4a29eb0cdc773330
|
|
| MD5 |
f13d61e095190b73776b52ade9c06696
|
|
| BLAKE2b-256 |
a5f19480fb8c98292bde4d9259c29db7e864f2f4d77bda360ebe7f5f77930d13
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentelemetry_instrumentation_niquests-0.1.0-py3-none-any.whl -
Subject digest:
f40322fb88ac1d20cf03cee92567527f762341c74fb7971b4a29eb0cdc773330 - Sigstore transparency entry: 1755625897
- Sigstore integration time:
-
Permalink:
abonur/opentelemetry-instrumentation-niquests@9365354b52bb4bf4af4e6380f9a9e03fa1c921fd -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/abonur
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9365354b52bb4bf4af4e6380f9a9e03fa1c921fd -
Trigger Event:
release
-
Statement type: