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 |
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.1.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for Emmett_Sentry-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a71cd7f190ef6f9b53b099f5bda308f784ce2347d2b9ee8cd3e1ff7a5859f7 |
|
MD5 | d8f7b7296355a347b00a7fd6515d5bdf |
|
BLAKE2b-256 | 34a8557293710e74a5fc1451ab1e30b46ff3db212b729a46bd5444931417e343 |