Skip to main content

OpenCensus httplib Integration

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opencensus_ext_httplib-0.7.3-py2.py3-none-any.whl (4.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file opencensus_ext_httplib-0.7.3-py2.py3-none-any.whl.

File metadata

  • Download URL: opencensus_ext_httplib-0.7.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.0

File hashes

Hashes for opencensus_ext_httplib-0.7.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ede1deaa2b13f3dcec6f89e621c7a185a77bfadd7120a2f884c7afb734b84ed0
MD5 3c50dd72123df58805f251327ce9116b
BLAKE2b-256 aa14d399d675fc4a77c498267489af282cfb6c0264b2530d9e177ce9370dfb78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page