Skip to main content

OpenCensus Pyramid Integration

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

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)

Source distribution for opencensus-ext-pyramid 0.7.3
File Size Uploaded
opencensus-ext-pyramid-0.7.3.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opencensus-ext-pyramid 0.7.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.7.3 This release

2 release files

0.7.2

2 release files

0.7.1

1 release file

0.7.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page