From f85fa08415e0e572b13fd900aabbcf57f422aa20 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 9 Jun 2023 11:03:04 +0200 Subject: [PATCH] fix: sentry use http_proxy if available --- config/initializers/sentry.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index 084cb805e..473efa285 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -13,6 +13,10 @@ end Sentry.init do |config| 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.send_default_pii = false config.release = SentryRelease.current