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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyramid_crow-0.4.2-py2.py3-none-any.whl (7.2 kB) Copy SHA256 hash SHA256 Wheel 2.7 Oct 10, 2017
pyramid_crow-0.4.2.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None Oct 10, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page