Skip to main content

OpenCensus httplib Integration

pypi

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)

Source distribution for opencensus-ext-httplib 0.7.5
File Size Uploaded
opencensus-ext-httplib-0.7.5.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opencensus-ext-httplib 0.7.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.7.5 This release

2 release files

0.7.4

2 release files

0.7.3

1 release file

0.7.2

1 release file

0.7.1

2 release files

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page