OpenCensus httplib Integration
OpenCensus can trace HTTP requests made with the httplib library.
You can enable requests integration by specifying 'httplib' to trace_integrations.
It’s possible to configure a list of URL you don’t want traced. See requests integration for more information. The only difference is that you need to specify hostname and port every time.
Installation
pip install opencensus-ext-httplib
Usage
import requests
from opencensus.trace import config_integration
from opencensus.trace.tracer import Tracer
config_integration.trace_integrations(['httplib'])
tracer = Tracer()
with tracer.span(name='parent'):
response = requests.get('https://www.wikipedia.org/wiki/Rabbit')
References
Release files for opencensus-ext-httplib 0.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| opencensus-ext-httplib-0.7.5.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opencensus_ext_httplib-0.7.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 8.8 kB
Release files / opencensus-ext-httplib-0.7.5.tar.gz
| Download URL | opencensus-ext-httplib-0.7.5.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
640c7a38088ac333c6f47f78b1dc32455742b73b0683744c82a8711e16a23a70
|
|
BLAKE2b-256 checksum How to use checksums |
97185042fe9b7883f610a45deae72a9efaa1190e31033f5b9c4008d5852637ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.2
|
Release files / opencensus_ext_httplib-0.7.5-py2.py3-none-any.whl
| Download URL | opencensus_ext_httplib-0.7.5-py2.py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c8256363b1e747e17a1c8e62ff47b981df0180a9686bbbaf4c012bdcabffa44b
|
|
BLAKE2b-256 checksum How to use checksums |
74386325deab922648bd89d9debb11694c7f0d0866ff718b6f5b4ba504c519b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.2
|