OpenCensus Pyramid Integration
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
Release files for opencensus-ext-pyramid 0.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| opencensus-ext-pyramid-0.7.3.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opencensus_ext_pyramid-0.7.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 10.2 kB
Release files / opencensus-ext-pyramid-0.7.3.tar.gz
| Download URL | opencensus-ext-pyramid-0.7.3.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fb5c40aa0ffffba986a3b18552af1479ee401a630b88d430d72fd7b571bc9e5
|
|
BLAKE2b-256 checksum How to use checksums |
af8099756ae58b53eecd44f0e041157c5cc6ebd4733ace4efbaa7250dd190360
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / opencensus_ext_pyramid-0.7.3-py2.py3-none-any.whl
| Download URL | opencensus_ext_pyramid-0.7.3-py2.py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a7b031621e72855b83d1e67c65a1bae8e6e4101dd727c72533e506a9e5e9fd4b
|
|
BLAKE2b-256 checksum How to use checksums |
e0711ecd9fda60bf92aab859fea6f09303aaf386de230616c7e9678f2c541b42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|