public function captureMessage($message, $params = [], $data = [], $stack = false, $vars = null)
    {
        if (!Configure::read('CakeMonitor.Sentry.enabled') || error_reporting() === 0) {
            return false;
        }

        if (is_callable(Configure::read('CakeMonitor.Sentry.extraDataCallback'))) {
            $data['extra']['extraDataCallback'] = call_user_func(Configure::read('CakeMonitor.Sentry.extraDataCallback'));
        }

        return $this->_ravenClient->captureMessage($message, $params, $data, $stack, $vars);
    }