fix: sentry use http_proxy if available
This commit is contained in:
parent
f6811e6ef6
commit
f85fa08415
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue