Skip to main content

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

Usage

# Hook into Pyramid
config.add_settings({
    # 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
})

config.include("h_pyramid_sentry")

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

Release files for h-pyramid-sentry 1.0.20191014.105005

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for h-pyramid-sentry 1.0.20191014.105005
File Size Uploaded
h_pyramid_sentry-1.0.20191014.105005.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for h-pyramid-sentry 1.0.20191014.105005
File Interpreter ABI Platform
h_pyramid_sentry-1.0.20191014.105005-py3-none-any.whl Python 3 none any Details

Total release size: 17.2 kB

Release files / h_pyramid_sentry-1.0.20191014.105005.tar.gz

Download URL h_pyramid_sentry-1.0.20191014.105005.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4269d8c5ed929432c514572df91ec6856e212ba9ee334e605ce89fb849236b7d
BLAKE2b-256 checksum
How to use checksums
def778357995c681af400a2a3b9eeeb92ddcaa87415ddffc5c840504b15df948
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

Release files / h_pyramid_sentry-1.0.20191014.105005-py3-none-any.whl

Download URL h_pyramid_sentry-1.0.20191014.105005-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4733a8411993a0b021e7bb5f3c976e6f4ae3a98a239f91f1b1b22d645ce9a7e
BLAKE2b-256 checksum
How to use checksums
291cdabcbb679a530a2854de148a57f21abd8dbb2950a9b95a5197603791d5ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
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