Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (37 sloc) 1.25 KB
title sidebar_order

{% version_added: 0.6.3 %}

The Tornado integration adds support for the Tornado Web Framework. A Tornado version of 5 or greater and Python 3.6 or greater is required.

  1. Install sentry-sdk from PyPI:

    $ pip install --upgrade sentry-sdk=={% sdk_version sentry.python %}
  2. If you're on Python 3.6, you also need the aiocontextvars package:

    $ pip install --upgrade aiocontextvars
  3. Initialize the SDK before starting the server:

    import sentry_sdk
    from sentry_sdk.integrations.tornado import TornadoIntegration
    # Your app code here, without changes
    class MyHandler(...):


  • The Tornado integration will be installed for all of your apps and handlers.

  • All exceptions leading to a Internal Server Error are reported.

  • {% include platforms/python/ %}

  • Logging with any logger will create breadcrumbs when the [Logging]({% link _documentation/platforms/python/ %}) integration is enabled (done by default).

You can’t perform that action at this time.