Socket
Socket
Sign inDemoInstall

opencensus-ext-httplib

Package Overview
Dependencies
1
Maintainers
4
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    opencensus-ext-httplib

OpenCensus httplib Integration


Maintainers
4

Readme

OpenCensus httplib Integration

|pypi|

.. |pypi| image:: https://badge.fury.io/py/opencensus-ext-httplib.svg :target: https://pypi.org/project/opencensus-ext-httplib/

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

.. code:: python

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

  • OpenCensus Project <https://opencensus.io/>_

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc