Search code examples
pythondjangotornadosentry

Tornado Sentry Integration


Are there any solutions around, for sending error reports from tornado to sentry? Or any similar error logging systems for tornado?


Solution

  • The standard Sentry clientRaven does support Tornado.

    The Sentry DSN matches:
    {PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}/{PATH}{PROJECT_ID}

    Note: Protocol may also contain transporter type: gevent+http, gevent+https, twisted+http, tornado+http

    This basically means that it will use standard Sentry HTTP protocol, but using Tornado's AsyncHTTPClient to perform the request.

    Note however, that it does not (as of now) support HTTPS, only unencrypted HTTP.