Skip to main content

A Pyramid plugin for integrating Sentry logging

Project description

Hypothesis Pyramid Sentry Extension

A library which integrates Sentry logging into Pyramid with the ability to filter out unwanted messages.

What should I use this for?

At the moment the library is mostly being used as an experimental testing ground and therefore is not recommended for general use.

How it works

In your Pyramid configuration you need to provide a list of filter functions in the parameter h_pyramid_sentry.filters.

These functions are passed Event objects which they can inspect. If the function returns True, then the event is logged locally, but not sent to Sentry


# Hook into Pyramid
    # Any options supported by sentry_sdk.init
    "h_pyramid_sentry.init": {
        "environment": "<my_sentry_env>"
    "h_pyramid_sentry.filters": [
        lambda event: instanceof(event.exception, ValueError)
    "h_pyramid_sentry.retry_support": True


Sentry configuration

The Sentry integration will listen to the following Pyramid deployment settings:

Pyramid setting Effect
h_pyramid_sentry.init A dict of any options understood by sentry_sdk.init()
h_pyramid_sentry.filters A list of functions to apply as filters
h_pyramid_sentry.retry_support Enable retry detection and filtering

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

h_pyramid_sentry-1.0.20191014.105005.tar.gz (7.7 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page