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 |
As per the Sentry docs, the
environment variable SENTRY_DSN will be automatically read if set, although this can
also be passed along with any other Sentry SDK options via h_pyramid_sentry.init.
Metadata
Release files for h-pyramid-sentry 1.0.20191018.134404
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| h_pyramid_sentry-1.0.20191018.134404.tar.gz | 7.9 kB | Without provenance | Details for h_pyramid_sentry-1.0.20191018.134404.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| h_pyramid_sentry-1.0.20191018.134404-py3-none-any.whl | Python 3 | none | any | Details for h_pyramid_sentry-1.0.20191018.134404-py3-none-any.whl |
Total release size: 17.7 kB
Release files / h_pyramid_sentry-1.0.20191018.134404.tar.gz
| Download URL | h_pyramid_sentry-1.0.20191018.134404.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db6668aebb31ae9cb01d3cbba8076cbfac4a9bd77c5c65d54e1eb9631d5e8cb4
|
|
BLAKE2b-256 checksum How to use checksums |
83ecd9aa144aca5d81d15a098d4446379243eba1e59b8fcc2841620d81390e5d
|
| 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.20191018.134404-py3-none-any.whl
| Download URL | h_pyramid_sentry-1.0.20191018.134404-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f2c44994aa85339d8d0c57e51423dc9b3e35e5c24c5fc07dfbee7494e67f9d4
|
|
BLAKE2b-256 checksum How to use checksums |
afb97e2e7aba4c959233024f2b4f6c9e2239ce64fe5bee02365999da04b7b2f5
|
| 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
|
Security for h-pyramid-sentry 1.0.20191018.134404
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.