Skip to main content

OpenCensus httplib Integration

Project description


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.


pip install opencensus-ext-httplib


import requests
from opencensus.trace import config_integration
from opencensus.trace.tracer import Tracer

tracer = Tracer()

with tracer.span(name='parent'):
    response = requests.get('')


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

opencensus-ext-httplib-0.7.1.tar.gz (3.5 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page