Skip to content

Instantly share code, notes, and snippets.

@pondpaun7z
Created April 24, 2019 03:02
Show Gist options
  • Save pondpaun7z/bb5aebfa99cb152a5e483ef9db55ee82 to your computer and use it in GitHub Desktop.
Save pondpaun7z/bb5aebfa99cb152a5e483ef9db55ee82 to your computer and use it in GitHub Desktop.
config/initializers/sentry.rb
if Rails.env.production?
Raven.configure do |config|
config.dsn = Figaro.env.sentry_dsn
config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)
config.release = File.open("VERSION").read.chomp
config.environments = %w[staging production]
config.current_environment = Figaro.env.sentry_current_env
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment