public function notifyOnException(\Exception $exception, $metadata = null, $severity = 'error')
    {
        if ($this->enabled) {
            $this->bugsnagClient->notifyException($exception, $metadata, $severity);
        }
    }