Skip to main content

OpenCensus Pyramid Integration

Project description

pypi

Installation

pip install opencensus-ext-pyramid

Usage

In your application, add the pyramid tween and your requests will be traced.

def main(global_config, **settings):
    config = Configurator(settings=settings)

    config.add_tween('opencensus.ext.pyramid'
                     '.pyramid_middleware.OpenCensusTweenFactory')

Additional configuration can be provided, please read Customization for a complete reference.

from opencensus.trace import print_exporter
from opencensus.trace import samplers

settings = {
    'OPENCENSUS': {
        'TRACE': {
            'EXPORTER': print_exporter.PrintExporter(),
            'SAMPLER': samplers.ProbabilitySampler(rate=0.5),
        }
    }
}

config = Configurator(settings=settings)

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-pyramid-0.7.2.tar.gz (4.1 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_pyramid-0.7.2-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file opencensus-ext-pyramid-0.7.2.tar.gz.

File metadata

  • Download URL: opencensus-ext-pyramid-0.7.2.tar.gz
  • Upload date:
  • Size: 4.1 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-pyramid-0.7.2.tar.gz
Algorithm Hash digest
SHA256 bcfc1458067531154001a70750da4d23614663f1a1c6bc82b06005fd767319b9
MD5 d63e7444e12710c229d6071a6964e47f
BLAKE2b-256 f0a7715076944f68e52c6681f7779f1aaf5bf0e34b8685d46be5aa16e231395e

See more details on using hashes here.

File details

Details for the file opencensus_ext_pyramid-0.7.2-py2.py3-none-any.whl.

File metadata

  • Download URL: opencensus_ext_pyramid-0.7.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.6 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_pyramid-0.7.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8fe855c2ce80193c69ce210496dbb3f89d71dca04b8eb39d7b7485c5443f9a20
MD5 5b1d595ad16327b6e7a173252590d081
BLAKE2b-256 317ade4ff3b648416cbabeb9515ac9dce4cb5c54934d5fad537e60cf94cdc9c4

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