Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Sentry Introduction

Ash Wu
November 07, 2012

Sentry Introduction

Introduction to Sentry - realtime event logging and aggregation platform.

Ash Wu

November 07, 2012
Tweet

More Decks by Ash Wu

Other Decks in Programming

Transcript

  1. Sentry Exceptional error aggregation Developed by DISQUS in 2010 Open

    source Cloud service: http://getsentry.com 12年11月7⽇日星期三
  2. Sentry is... A web service with RESTful API Provides real-time

    web interface 12年11月7⽇日星期三
  3. Extensibility Easy to write a client for any language/platform Parse

    DSN, build JSON, post with authentication headers Write plugins in Python Unified Interface ex: message, exception, stacktrace... 12年11月7⽇日星期三
  4. Scale? Queue and workers mode (db, redis) Redis backend update

    buffers UDP server avoiding single point of failure Just like how you scale any web services... BTW you shouldn’t have such a high concurrency of errors 12年11月7⽇日星期三
  5. Server Usage sentry start http #start http server sentry start

    udp #start udp server Again, we could use supervisord to run sentry as a daemon. 12年11月7⽇日星期三
  6. Client Usage Setup client with DSN Override the origin error

    handler Capture a message/exception Add tags you want 12年11月7⽇日星期三
  7. Capture message Capture a message or exception Try/catch block Special

    case ex: third-party service unavailable 12年11月7⽇日星期三
  8. Event Id You’ll get a unique “event_id” whenever you capture

    a msg/exception You could display a error page with this id to user They’ll come up with this id and we could find it’s error very easily. Or not. 12年11月7⽇日星期三
  9. Tags Add tags when... Client init Capture a message/exception For

    instance... Env? production or develop? App version? 1.1.4? 1.1.5? 12年11月7⽇日星期三