falcon-sentry-0.2.2
توضیحات
TODO
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | falcon-sentry-0.2.2 |
| نام | falcon-sentry |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Richard O'Dwyer |
| ایمیل نویسنده | richard@richard.do |
| آدرس صفحه اصلی | https://code.richard.do/richardARPANET/falcon-sentry/ |
| آدرس اینترنتی | https://pypi.org/project/falcon-sentry/ |
| مجوز | Apache 2.0 |
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.
نحوه نصب
نصب پکیج whl falcon-sentry-0.2.2:
pip install falcon-sentry-0.2.2.whl
نصب پکیج tar.gz falcon-sentry-0.2.2:
pip install falcon-sentry-0.2.2.tar.gz