Skip to content

Commit

Permalink
Setup tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrztoph committed Jan 16, 2024
1 parent 39cce7c commit 7d3c43b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/initializers/sentry.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
if ENV['SENTRY_DSN_BACKEND'].present? && Rails.env.production?
Sentry.init { |config| config.dsn = ENV['SENTRY_DSN_BACKEND'] }
Sentry.init do |config|
config.dsn = ENV['SENTRY_DSN_BACKEND']
config.traces_sample_rate = 1.0
end
end

0 comments on commit 7d3c43b

Please sign in to comment.