lib/generators/templates/sentry.rb.erb in dockerfile-rails-1.5.2 vs lib/generators/templates/sentry.rb.erb in dockerfile-rails-1.5.3
- old
+ new
@@ -1,5 +1,7 @@
+if ENV["SENTRY_DSN"]
+
Sentry.init do |config|
config.dsn = ENV["SENTRY_DSN"]
config.breadcrumbs_logger = [:active_support_logger, :http_logger]
# Set traces_sample_rate to 1.0 to capture 100%
@@ -8,6 +10,8 @@
config.traces_sample_rate = 1.0
# or
config.traces_sampler = lambda do |context|
true
end
-end
\ No newline at end of file
+end
+
+end