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.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.
--------------
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.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.
Metadata
Release files for falcon-sentry 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| falcon-sentry-0.2.2.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| falcon_sentry-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 9.7 kB
Release files / falcon-sentry-0.2.2.tar.gz
| Download URL | falcon-sentry-0.2.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdd8454f4cf876b2e9c5421f5570327d246d1a7da3ebccc4482504a0a4e6158a
|
|
BLAKE2b-256 checksum How to use checksums |
29fcb1f943eebb799bfa947e3dc05504a4f8a9922f9930c3d593a78a625c658e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / falcon_sentry-0.2.2-py2.py3-none-any.whl
| Download URL | falcon_sentry-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
467ae77e566fbcc916ac1af5674941b7df65ce01b6b53dd66c38b9fd345bc585
|
|
BLAKE2b-256 checksum How to use checksums |
d08092cbbdfcd39987a5db82311c6176ad32ef11a09b48452d829194dabbd314
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|