Sentry extension for Emmett framework
Project description
Emmett-Sentry
Emmett-Sentry is an Emmett framework extension integrating Sentry monitoring platform.
Emmett-Sentry is compatible both with Emmett and Emmett55.
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 |
sample_rate | 1 | Error sampling rate |
integrations | List of integrations to pass to the SDK | |
enable_tracing | False |
Enable tracing on routes |
tracing_sample_rate | Traces sampling rate | |
tracing_exclude_routes | List of specific routes to exclude from tracing | |
trace_websockets | False |
Enable tracing on websocket routes |
trace_orm | True |
Enable tracing on ORM queries |
trace_templates | True |
Enable tracing on templates rendering |
trace_sessions | True |
Enable tracing on sessions load/store |
trace_cache | True |
Enable tracing on cache get/set |
trace_pipes | False |
Enable tracing on pipes |
sdk_opts | {} |
Additional configuration for the Sentry SDK |
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
Built Distribution
File details
Details for the file emmett_sentry-0.8.2.tar.gz
.
File metadata
- Download URL: emmett_sentry-0.8.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8886a683923623b600d2567aafcaaa3de84de00f9d250c972094f232f3ca01dc
|
|
MD5 |
ae981f9e3c812eb834fc6b45aff2eef9
|
|
BLAKE2b-256 |
ced5f1df3d68c087f3c1917b016747449b1d04cb8d36eef2cdf45a4b329972ac
|
Provenance
The following attestation bundles were made for emmett_sentry-0.8.2.tar.gz
:
Publisher:
publish.yml
on emmett-framework/sentry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
emmett_sentry-0.8.2.tar.gz
-
Subject digest:
8886a683923623b600d2567aafcaaa3de84de00f9d250c972094f232f3ca01dc
- Sigstore transparency entry: 189934999
- Sigstore integration time:
-
Permalink:
emmett-framework/sentry@90660ca68bebd51e401a1579098ae2877c6dd7c7
-
Branch / Tag:
refs/tags/v0.8.2
- Owner: https://github.com/emmett-framework
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yml@90660ca68bebd51e401a1579098ae2877c6dd7c7
-
Trigger Event:
release
-
Statement type:
File details
Details for the file emmett_sentry-0.8.2-py3-none-any.whl
.
File metadata
- Download URL: emmett_sentry-0.8.2-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4986feb00d30b9da1fd2c33263ea0d7ff1037c93d7ebdd3f2b91ce2909517100
|
|
MD5 |
b0af5529efdd7ec504081933b0357137
|
|
BLAKE2b-256 |
27a94cd855065522ff178c22b92a971d321ca9063a1ddb360d8dd15adb919d3b
|
Provenance
The following attestation bundles were made for emmett_sentry-0.8.2-py3-none-any.whl
:
Publisher:
publish.yml
on emmett-framework/sentry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
emmett_sentry-0.8.2-py3-none-any.whl
-
Subject digest:
4986feb00d30b9da1fd2c33263ea0d7ff1037c93d7ebdd3f2b91ce2909517100
- Sigstore transparency entry: 189935000
- Sigstore integration time:
-
Permalink:
emmett-framework/sentry@90660ca68bebd51e401a1579098ae2877c6dd7c7
-
Branch / Tag:
refs/tags/v0.8.2
- Owner: https://github.com/emmett-framework
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yml@90660ca68bebd51e401a1579098ae2877c6dd7c7
-
Trigger Event:
release
-
Statement type: