summaryrefslogtreecommitdiff
path: root/app/helpers/sentry_helper.rb
blob: 8e80f83ae61479969a5235e5ce9aaa2b27b7e74e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module SentryHelper
  def sentry_enabled?
    Gitlab::Sentry.enabled?
  end

  def sentry_context
    Gitlab::Sentry.context(current_user)
  end

  def clientside_sentry_enabled?
    current_application_settings.clientside_sentry_enabled
  end

  delegate :clientside_sentry_dsn, to: :current_application_settings
end