Coder Social home page Coder Social logo

sentry's Introduction

Emmett-Sentry

Emmett-Sentry is an Emmett framework extension integrating Sentry monitoring platform.

pip version

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

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.

sentry's People

Contributors

gi0baro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.