def __init__(self, config=None):
        Handler.__init__(self, config)
        if not raven:
            return
        # init sentry/raven
        self.sentry_log_handler = raven.handlers.logging.SentryHandler(
            self.config['dsn'])
        self.raven_logger = logging.getLogger(self.__class__.__name__)
        self.raven_logger.addHandler(self.sentry_log_handler)
        self.configure_sentry_errors()
        self.rules = self.compile_rules()
        self.hostname = get_hostname(self.config)
        if not len(self.rules):
            self.log.warning("No rules, this graphite handler is unused")
@type config: configobj.ConfigObj
dataset/ETHPy150Open BrightcoveOS/Diamond/src/diamond/handler/sentry.py/SentryHandler.__init__