mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 21:05:15 +00:00
16 lines
457 B
Ruby
16 lines
457 B
Ruby
# frozen_string_literal: true
|
|
|
|
if Rails.env.production?
|
|
Sentry.init do |config|
|
|
config.dsn = ENV["SENTRY_DSN"]
|
|
config.breadcrumbs_logger = [ :active_support_logger, :http_logger ]
|
|
config.send_default_pii = true
|
|
config.traces_sample_rate = 1.0
|
|
config.profiles_sample_rate = 1.0
|
|
|
|
# Enable sending logs to Sentry
|
|
config.enable_logs = true
|
|
# Patch Ruby logger to forward logs
|
|
config.enabled_patches = [ :logger ]
|
|
end
|
|
end
|