Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

13 linhas
450 B

  1. # -*- coding: utf-8 -*-
  2. from __future__ import (absolute_import, division, print_function,
  3. unicode_literals)
  4. def register_sentry(sentry_dsn):
  5. """Given a Raven client and an RQ worker, registers exception handlers
  6. with the worker so exceptions are logged to Sentry.
  7. """
  8. import sentry_sdk
  9. from sentry_sdk.integrations.rq import RqIntegration
  10. sentry_sdk.init(sentry_dsn, integrations=[RqIntegration()])