Sentry (Crash Reporting)¶
Changed in version 2.0: The underlying library for communicating with sentry was changed from Raven to sentry-sdk.
Make sure your service calls
configure_observers() during application startup
and then add the following to your configuration file to enable and configure
the Sentry observer.
[app:main] ... # required to enable the observer # the DSN provided by Sentry for your project sentry.dsn = https://decaf:firstname.lastname@example.org/123 # optional: the environment this application is running in sentry.environment = staging # optional: percent chance that a given error will be reported # (defaults to 100%) sentry.sample_rate = 37% # optional: comma-delimited list of fully qualified names of exception # classes to not report. sentry.ignore_errors = my_service.UninterestingException ...
Any unexpected exceptions that cause the request to crash (including outside request context) will be reported to Sentry. The Trace ID of the current request will be included in the context reported to Sentry.