mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
13 lines
391 B
Ruby
13 lines
391 B
Ruby
|
|
Sentry.init do |config|
|
||
|
|
config.dsn = ENV.fetch('OSEM_SENTRY_DSN', Rails.application.secrets.sentry_dsn)
|
||
|
|
config.breadcrumbs_logger = [:active_support_logger]
|
||
|
|
|
||
|
|
# To activate performance monitoring, set one of these options.
|
||
|
|
# We recommend adjusting the value in production:
|
||
|
|
config.traces_sample_rate = 0.5
|
||
|
|
# or
|
||
|
|
# config.traces_sampler = lambda do |context|
|
||
|
|
# true
|
||
|
|
# end
|
||
|
|
end
|