OpenCensus Pyramid Integration
Project description
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size opencensus_ext_pyramid-0.7.2-py2.py3-none-any.whl (5.6 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size opencensus-ext-pyramid-0.7.2.tar.gz (4.1 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for opencensus_ext_pyramid-0.7.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fe855c2ce80193c69ce210496dbb3f89d71dca04b8eb39d7b7485c5443f9a20 |
|
MD5 | 5b1d595ad16327b6e7a173252590d081 |
|
BLAKE2-256 | 317ade4ff3b648416cbabeb9515ac9dce4cb5c54934d5fad537e60cf94cdc9c4 |
Close
Hashes for opencensus-ext-pyramid-0.7.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcfc1458067531154001a70750da4d23614663f1a1c6bc82b06005fd767319b9 |
|
MD5 | d63e7444e12710c229d6071a6964e47f |
|
BLAKE2-256 | f0a7715076944f68e52c6681f7779f1aaf5bf0e34b8685d46be5aa16e231395e |