Skip to content

Commit

Permalink
Merge pull request #65 from MozillaSocial/sentry-update-dsn
Browse files Browse the repository at this point in the history
update Sentry DSN
  • Loading branch information
toufali committed Feb 26, 2024
2 parents 50bc576 + 1457200 commit 35630ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/initializers/sentry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
# RAILS_ENV is set to 'production' for both stage and prod servers.
# We use LOCAL_DOMAIN to differentiate for better Sentry logging.
local_domain = ENV.fetch('LOCAL_DOMAIN', '')
sentry_dsn = ENV.fetch('SENTRY_DSN', '')

Sentry.init do |config|
sentry_dsn.present? && Sentry.init do |config|
config.dsn = sentry_dsn
config.environment = if local_domain['mozilla.social']
'production'
elsif local_domain['stage']
Expand All @@ -13,7 +15,6 @@
'development'
end

config.dsn = 'https://def412573e2b44d39e73a130b09bb25a@o1069899.ingest.sentry.io/4506591637471232'
config.breadcrumbs_logger = [:active_support_logger, :http_logger]

# Set traces_sample_rate to 1.0 to capture 100%
Expand Down

0 comments on commit 35630ba

Please sign in to comment.