Merge pull request #9163 from demarches-simplifiees/sentry_proxy

Technique: fait passer explicitement sentry par le proxy s'il existe
This commit is contained in:
LeSim 2023-06-09 09:13:28 +00:00 committed by GitHub
commit ded0a41975
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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