Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!


Project description



.. code:: bash

pip install falcon-sentry

How to use

When creating your Falcon application/API instance.
Wrap it with falcon-sentry and pass in your Sentry DSN.

.. code:: python

application = falcon.API()
application.add_route('/items', MyResource())
dsn = ''
application = falcon_sentry(dsn=dsn, app=application)
return application

You can also use an environment variable to specify the DSN.

.. code:: python

os.environ['SENTRY_DSN'] = ''
application = falcon_sentry(app=application)
return application

You can specify the Sentry environment

.. code:: python
application = falcon_sentry(dsn=dsn, app=application, environment='prod')
return application

If both the ``dsn`` parameter and the environment variable are missing then falcon-sentry will do nothing and return the application instance.

.. :changelog:

Release History

0.2.2 (2018-12-06)

- Adds logging.

0.2.1 (2018-12-05)

- Fixes packaging missing wheel.

0.2.0 (2018-12-05)

- Adds the ability to pass in extra arguments to sentry_sdk.init.

0.1.0 (2018-12-05)

- Initial release.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for falcon-sentry, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size falcon_sentry-0.2.2-py2.py3-none-any.whl (6.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size falcon-sentry-0.2.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page