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 Distribution

opencensus-ext-httplib-0.7.5.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file opencensus-ext-httplib-0.7.5.tar.gz.

File metadata

  • Download URL: opencensus-ext-httplib-0.7.5.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for opencensus-ext-httplib-0.7.5.tar.gz
Algorithm Hash digest
SHA256 640c7a38088ac333c6f47f78b1dc32455742b73b0683744c82a8711e16a23a70
MD5 af0773c249351ad327a0a4e1f4617367
BLAKE2b-256 97185042fe9b7883f610a45deae72a9efaa1190e31033f5b9c4008d5852637ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opencensus_ext_httplib-0.7.5-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.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

File hashes

Hashes for opencensus_ext_httplib-0.7.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c8256363b1e747e17a1c8e62ff47b981df0180a9686bbbaf4c012bdcabffa44b
MD5 bba9e838c84ea260b2c628732afeec59
BLAKE2b-256 74386325deab922648bd89d9debb11694c7f0d0866ff718b6f5b4ba504c519b8

See more details on using hashes here.

Supported by

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