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.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

opencensus_ext_httplib-0.7.4-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.4.tar.gz.

File metadata

  • Download URL: opencensus-ext-httplib-0.7.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.7

File hashes

Hashes for opencensus-ext-httplib-0.7.4.tar.gz
Algorithm Hash digest
SHA256 255ddddb26a05a0f522cf2787c38aeac1b2c1f9eb132b975f80515ed3e46d17b
MD5 e6e65ab57ab08916f5c2b55da01ab761
BLAKE2b-256 4889e39c9bfa7a9c3eda1039c69928c367ba45db1694cae5a79dcb7ba35fc681

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opencensus_ext_httplib-0.7.4-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.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.7

File hashes

Hashes for opencensus_ext_httplib-0.7.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 06c632cc52d9bccfdc8b9a4d24332383ca525120b4dd812b059f58d7fc5c7653
MD5 3d93f8596cee32b38520e277f4766aba
BLAKE2b-256 e4a1feb170eda71e83f63a59b571cb1e29280a2f8fef2f118d0e254e55235af7

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