Skip to main content

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


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.9.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emmett_sentry-0.9.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file emmett_sentry-0.9.0.tar.gz.

File metadata

  • Download URL: emmett_sentry-0.9.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for emmett_sentry-0.9.0.tar.gz
Algorithm Hash digest
SHA256 9956f4bb83231d88da27a18756bbecd5102745b94103a9f1e6ec615b768f0148
MD5 fec2f6b8d4883f7bb8a53506726563ea
BLAKE2b-256 e24c5d3050e53fce56c92ffe0a0cd646ea1018f7b5811750d85de75801df6f26

See more details on using hashes here.

Provenance

The following attestation bundles were made for emmett_sentry-0.9.0.tar.gz:

Publisher: publish.yml on emmett-framework/sentry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file emmett_sentry-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: emmett_sentry-0.9.0-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.13.7

File hashes

Hashes for emmett_sentry-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ba063faa8cff652ccaba642464d98c07cb62425902f96d2592f1fd5891e4e9d
MD5 7726da6f56f7346922c3c6c111ad76ca
BLAKE2b-256 8305e57032248be1304cc55a3e3920b3a4f2c875c447ad6f539a3168d1885ada

See more details on using hashes here.

Provenance

The following attestation bundles were made for emmett_sentry-0.9.0-py3-none-any.whl:

Publisher: publish.yml on emmett-framework/sentry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page