From 3c53b309ec3e40fb5e7cd912d8baf8bc89075a75 Mon Sep 17 00:00:00 2001 From: Amri Toufali Date: Thu, 22 Feb 2024 12:11:55 -0800 Subject: [PATCH] update Sentry DSN --- config/initializers/sentry.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index 2b7673329c8b7a..055f877b8741fc 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -1,7 +1,9 @@ # frozen_string_literal: true -Sentry.init do |config| - config.dsn = 'https://def412573e2b44d39e73a130b09bb25a@o1069899.ingest.sentry.io/4506591637471232' +sentry_dsn = ENV.fetch('SENTRY_DSN', nil) + +sentry_dsn && Sentry.init do |config| + config.dsn = sentry_dsn config.breadcrumbs_logger = [:active_support_logger, :http_logger] # Set traces_sample_rate to 1.0 to capture 100%