emmett-sentry-0.4.1
توضیحات
Sentry extension for Emmett framework
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | emmett-sentry-0.4.1 |
| نام | emmett-sentry |
| نسخه کتابخانه | 0.4.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Giovanni Barillari |
| ایمیل نویسنده | g@baro.dev |
| آدرس صفحه اصلی | https://github.com/emmett-framework/sentry |
| آدرس اینترنتی | https://pypi.org/project/emmett-sentry/ |
| مجوز | BSD-3-Clause |
# Emmett-Sentry
Emmett-Sentry is an [Emmett framework](https://emmett.sh) extension integrating [Sentry](https://sentry.io) monitoring platform.
[](https://pypi.python.org/pypi/emmett-sentry)
## Installation
You can install Emmett-Sentry using pip:
pip install emmett-sentry
And add it to your Emmett application:
```python
from emmett_sentry import Sentry
sentry = app.use_extension(Sentry)
```
## Configuration
Here is the complete list of parameters of the extension configuration:
| param | default | description |
| --- | --- | --- |
| dsn | | Sentry project's DSN |
| environment | development | Application environment |
| release | | Application release |
| auto\_load | `True` | Automatically inject extension on routes |
| enable\_tracing | `False` | Enable tracing on routes |
| sample\_rate | 1 | Error sampling rate |
| traces\_sample\_rate | | Traces sampling rate |
| trace\_websockets | `False` | Enable tracing on websocket routes |
| tracing\_exclude\_routes | | List of specific routes to exclude from tracing |
## Usage
The extension exposes two methods to manually track events:
- exception
- message
You call these methods directly within your code:
```python
# track an error
try:
1 / 0
except Exception:
sentry.exception()
# track a message
sentry.message("some event", level="info")
```
## License
Emmett-Sentry is released under BSD license.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.5.0,<3.0.0 | emmett |
| >=1.20.0,<2.0.0 | sentry-sdk |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl emmett-sentry-0.4.1:
pip install emmett-sentry-0.4.1.whl
نصب پکیج tar.gz emmett-sentry-0.4.1:
pip install emmett-sentry-0.4.1.tar.gz