Sentry extension for Emmett framework
Project description
Emmett-Sentry
Emmett-Sentry is an Emmett framework extension integrating Sentry monitoring platform.
Installation
You can install Emmett-Sentry using pip:
pip install emmett-sentry
And add it to your Emmett application:
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 |
Usage
The extension exposes two methods to manually track events:
- exception
- message
You call these methods directly within your code:
# 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Emmett-Sentry-0.2.0.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for Emmett_Sentry-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 679e9f274e9496ce1006d2155b42f9ca8baf492cdb6e290aeae4c0794ddd9ffe |
|
MD5 | a0d8c35cf3f52b3c3745fd3dfef0fa08 |
|
BLAKE2b-256 | 48d4bf05aec5657bf815ff6ffebd0fae6519d243b2c33b143d5ac470efeb5faa |