code: def setup_raven():
      '''we setup sentry to get all stuff from our logs'''
      pcfg = AppBuilder.get_pcfg()
      from raven.handlers.logging import SentryHandler
      from raven import Client
      from raven.conf import setup_logging
      client = Client(pcfg['raven_dsn'])
      handler = SentryHandler(client)
      # TODO VERIFY THIS -> This is the way to do it if you have a paid account, each log call is an event so this isn't going to work for free accounts...
      handler.setLevel(pcfg["raven_loglevel"])
      setup_logging(handler)
      return clienf setup_raven():
      '''we setup sentry to get all stuff from our logs'''
      pcfg = AppBuilder.get_pcfg()
      from raven.handlers.logging import SentryHandler
      from raven import Client
      from raven.conf import setup_logging
      client = Client(pcfg['raven_dsn'])
      handler = SentryHandler(client)
      # TODO VERIFY THIS -> This is the way to do it if you have a paid account, each log call is an event so this isn't going to work for free accounts...
      handler.setLevel(pcfg["raven_loglevel"])
      setup_logging(handler)
      return client
docs: we setup sentry to get all stuff from our logs