Skip to main content

TODO

Project description

falcon-sentry
--------------

Installation
------------

.. 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 = 'https://00000000000000000000000000000000@sentry.io/0000000'
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'] = 'https://00000000000000000000000000000000@sentry.io/0000000'
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.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.

Source Distribution

falcon-sentry-0.2.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

falcon_sentry-0.2.1-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file falcon-sentry-0.2.1.tar.gz.

File metadata

  • Download URL: falcon-sentry-0.2.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for falcon-sentry-0.2.1.tar.gz
Algorithm Hash digest
SHA256 976de93bf3872a50f5e023b8b55272d6a78cb72db644f8cccab8799f2512489c
MD5 71f36cf6190d7338971054104246db07
BLAKE2b-256 1d9537b3497e7b9dbce5acfc4d90a87247830af044b2482b20347e6e26c29d13

See more details on using hashes here.

File details

Details for the file falcon_sentry-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: falcon_sentry-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for falcon_sentry-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d8ee07e866c2046e39e3d816a79886402e6d653dc7a0fa9f466d17c38ce12462
MD5 e06cacef638e496f50286d95a5edb591
BLAKE2b-256 e5285baec13d3ab833ea1e50450ed5dbf569f6d214877cbd3aba4f61542c8b48

See more details on using hashes here.

Supported by

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