mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 07:39:39 +02:00
Sentry
This commit is contained in:
parent
671247f19c
commit
21e2d05d0c
4 changed files with 36 additions and 0 deletions
17
config/initializers/sentry.rb
Normal file
17
config/initializers/sentry.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
if ENV["SENTRY_DSN"].present?
|
||||
Sentry.init do |config|
|
||||
config.dsn = ENV["SENTRY_DSN"]
|
||||
config.breadcrumbs_logger = [ :active_support_logger, :http_logger ]
|
||||
config.enabled_environments = %w[production]
|
||||
|
||||
# Set traces_sample_rate to 1.0 to capture 100%
|
||||
# of transactions for performance monitoring.
|
||||
# We recommend adjusting this value in production.
|
||||
config.traces_sample_rate = 1.0
|
||||
|
||||
# Set profiles_sample_rate to profile 100%
|
||||
# of sampled transactions.
|
||||
# We recommend adjusting this value in production.
|
||||
config.profiles_sample_rate = 1.0
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue