2016-08-18 20:06:33 -04:00
|
|
|
module SentryHelper
|
|
|
|
def sentry_enabled?
|
2016-08-24 23:06:16 -04:00
|
|
|
Gitlab::Sentry.enabled?
|
2016-08-18 20:06:33 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def sentry_context
|
2016-08-24 23:06:16 -04:00
|
|
|
Gitlab::Sentry.context(current_user)
|
2016-08-18 20:06:33 -04:00
|
|
|
end
|
|
|
|
end
|