We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 354ed18 commit b95fe4fCopy full SHA for b95fe4f
config/initializers/sentry.rb
@@ -1,7 +1,9 @@
1
# frozen_string_literal: true
2
3
-Sentry.init do |config|
4
- config.breadcrumbs_logger = [ :active_support_logger ]
5
- config.dsn = ENV["SENTRY_DSN"]
6
- config.traces_sample_rate = 1.0
+if Rails.env.production?
+ Sentry.init do |config|
+ config.breadcrumbs_logger = [ :active_support_logger ]
+ config.dsn = ENV["SENTRY_DSN"]
7
+ config.traces_sample_rate = 1.0
8
+ end
9
end
0 commit comments