Learn about SDK usage
The Sentry Python SDK provides Sentry support for Python 2.7 and 3.4 or later.
This documentation goes over some Python specific things such as integrations to frameworks.
Integrations extend the functionality of the SDK for some common frameworks and
libraries. They can be seen as plugins that extend the functionality of the Sentry
SDK. Integrations are configured by a call to
sentry_sdk.init. Any default
integration not in the list is automatically added unless
Framework integrations are opt-in integrations for large frameworks or libraries. Currently the following are supported:
In addition to framework integrations there are also a few other integrations:
The Python SDK provides some common hints for breadcrumbs
and events. These hints are passed as the
hint parameter to
(as well as event processors) as a dictionary. More than one hint can be supplied but this is rare.
If this hint is set then it’s an exc info tuple in the form
(exc_type, exc_value, tb). This can be used to extract additional information from the original error object.
This hint is passed to breadcrumbs and contains the log record that created it. It can be used to extract additional information from the original
logginglog record that is not extracted by default. Likewise it can be useful to discard uninteresting breadcrumbs.
httplibrequest object for breadcrumbs created from HTTP requests.