Skip to main content

http context compliant automatic raven integration for pyramid

Project description

https://api.travis-ci.org/npilon/pyramid_crow.png?branch=master

pyramid_crow provides a pyramid package for integrating with raven that is both automatic and complies with raven’s http_context standard.

Usage

  1. Include pyramid_crow using either the pyramid.includes configuration file setting or config.include('pyramid_crow')

  2. Include a DSN in your config file as raven.dsn

No special handling or explicit invocation is required, even if using an exception view. pyramid_crow automatically employs raven’s password sanitization to strip sensitive values from submitted data. The raven client is accessible as request.raven. Any configuration file values starting with raven. will be provided as keyword arguments when creating the client. No automatic type conversion is performed; if any of the values you want to provide should be anything other than a string, you should convert them appropriately.

Ignoring Exceptions

Not every exception needs to be captured by raven. Some – like pyramid.httpexceptions – indicate exceptional but expected conditions. pyramid_crow always ignores pyramid.httpexceptions. You can ignore other exceptions as well by providing a list of importable dotted names as pyramid_crow.ignore in your configuration.

For example:

pyramid_crow.ignore =
  yourpackage.YourException
  yourpackage.YourOtherException

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

pyramid_crow-0.4.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

pyramid_crow-0.4.2-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyramid_crow-0.4.2.tar.gz.

File metadata

File hashes

Hashes for pyramid_crow-0.4.2.tar.gz
Algorithm Hash digest
SHA256 5ffb5ec08bfa300b51f4b5f5be0c809dddce2ee9ec4bb06a2eeecf4cbeed0eaa
MD5 58b4f97565ebd0ddd4135d2371d347cd
BLAKE2b-256 cc9181a4b1618a48fc1cf539f3733eb7ba7e27bc118dcd4203e2a6fccd108821

See more details on using hashes here.

File details

Details for the file pyramid_crow-0.4.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_crow-0.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 51b2f39b3f5196299e0452a50ed1a6243a031c091762640b36414b5b25b2d314
MD5 2e8619cbb056a239ea9e321f20d46b2e
BLAKE2b-256 e8312ece320ec3e87255b154d928669e6b0de8502caeff327ad1b644e4dc7ff8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page