A RequestHandler mixin for sending exceptions to Sentry
Go to file
dave-shawley 727b66f3ea
Merge pull request #20 from cknave/use-github-actions
Use GitHub actions
2021-10-04 14:24:40 -04:00
.github/workflows Pipeline improvements 2021-10-04 14:14:26 -04:00
docs Replace travis-ci.org build with GitHub actions 2021-09-30 21:59:24 -04:00
requires Replace travis-ci.org build with GitHub actions 2021-09-30 21:59:24 -04:00
sprockets/mixins/sentry Use setuptools_scm 2018-12-05 10:22:16 -05:00
.editorconfig Replace travis-ci.org build with GitHub actions 2021-09-30 21:59:24 -04:00
.gitignore Update .gitignore 2018-12-05 10:22:19 -05:00
.readthedocs.yml Add RTD conf 2018-12-05 13:57:26 -05:00
LICENSE Update date in LICENSE 2018-09-18 11:01:01 -04:00
MANIFEST.in Initial commit 2015-05-13 13:40:38 -04:00
README.rst Replace travis badge with run-tests workflow badge 2021-10-04 14:15:01 -04:00
setup.cfg Replace travis-ci.org build with GitHub actions 2021-09-30 21:59:24 -04:00
setup.py Replace travis-ci.org build with GitHub actions 2021-09-30 21:59:24 -04:00
tests.py Remove unnecessary 2018-12-05 10:23:55 -05:00

README.rst

sprockets.mixins.sentry
=======================
A RequestHandler mixin for sending exceptions to Sentry

|Version| |Status| |License|

Installation
------------
``sprockets.mixins.sentry`` is available on the
`Python Package Index <https://pypi.python.org/pypi/sprockets.mixins.sentry>`_
and can be installed via ``pip`` or ``easy_install``:

.. code-block:: bash

   pip install sprockets.mixins.sentry

Documentation
-------------
https://sprocketsmixinssentry.readthedocs.org

Requirements
------------

- `raven <https://raven.readthedocs.org/>`_
- `tornado <https://tornadoweb.org/>`_

Example
-------
This examples demonstrates how to use ``sprockets.mixins.sentry``.

.. code-block:: python

   from sprockets.mixins import sentry
   from tornado import web

   class RequestHandler(sentry.SentryMixin, web.RequestHandler):
       """Requires a ``SENTRY_DSN`` environment variable is set with the
       DSN value provided by sentry.

       The Mixin should catch unhandled exceptions and report them to Sentry.

       """
       def get(self, *args, **kwargs):
           raise ValueError("This should send an error to sentry")


.. |Version| image:: https://img.shields.io/pypi/v/sprockets.mixins.sentry.svg?
   :target: http://badge.fury.io/py/sprockets.mixins.sentry

.. |Status| image:: https://github.com/sprockets/sprockets.mixins.sentry/actions/workflows/run-tests.yml/badge.svg
   :target: https://github.com/sprockets/sprockets.mixins.sentry/actions/workflows/run-tests.yml

.. |License| image:: https://img.shields.io/pypi/l/sprockets.mixins.sentry.svg?
   :target: https://sprocketsmixinssentry.readthedocs.org