fix: sentry use http_proxy if available

This commit is contained in:
simon lehericey 2023-06-09 11:03:04 +02:00
parent f6811e6ef6
commit f85fa08415

View file

@ -13,6 +13,10 @@ end
Sentry.init do |config| Sentry.init do |config|
secrets = Rails.application.secrets.sentry secrets = Rails.application.secrets.sentry
if ENV['http_proxy'].present?
config.transport.proxy = ENV['http_proxy']
end
config.dsn = secrets[:enabled] ? secrets[:rails_client_key] : nil config.dsn = secrets[:enabled] ? secrets[:rails_client_key] : nil
config.send_default_pii = false config.send_default_pii = false
config.release = SentryRelease.current config.release = SentryRelease.current