Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ gem 'twitter_cldr', require: false
gem 'tzinfo-data'

gem 'airbrake'
gem 'newrelic_rpm'
gem 'newrelic_rpm', '~> 9.24.0'

group :development, :test do
gem 'better_html'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ GEM
timeout
net-smtp (0.5.0)
net-protocol
newrelic_rpm (9.17.0)
newrelic_rpm (9.24.0)
nio4r (2.7.4)
nokogiri (1.18.8)
mini_portile2 (~> 2.8.2)
Expand Down Expand Up @@ -629,7 +629,7 @@ DEPENDENCIES
jwt
letter_opener_web
lograge
newrelic_rpm
newrelic_rpm (~> 9.24.0)
oj
pagy
pg
Expand Down
18 changes: 17 additions & 1 deletion config/initializers/airbrake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@
config.project_id = ENV['AIRBRAKE_ID'] # rubocop:disable Style/FetchEnvVar
config.environment = Rails.env
config.ignore_environments = %w[development test]
config.root_directory = '/var/cpd/app'
config.root_directory = Rails.root.to_s
config.blocklist_keys = Rails.application.config.filter_parameters
end

AIRBRAKE_IGNORE = [
'AbstractController::ActionNotFound',
'ActionController::InvalidAuthenticityToken',
'ActionController::RoutingError',
'ActionController::UnknownAction',
'ActionController::UnknownFormat',
'ActiveRecord::RecordNotFound',
'SignalException',
'Sidekiq::Shutdown'
].freeze

Airbrake.add_filter do |notice|
notice.ignore! if notice[:errors].any? { |error| AIRBRAKE_IGNORE.include?(error[:type]) }
end
end
4 changes: 2 additions & 2 deletions config/newrelic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,6 @@ staging:

production:
<<: *default_settings
app_name: <%= ENV['NEWRELIC_APP_NAME'] %> Production
app_name: Docuseal Production - <%= ENV['ENV_NAME'] %>
monitor_mode: <%= ENV['NEWRELIC_MONITOR_MODE'].presence || true %>
distributed_tracing.enabled: false
distributed_tracing.enabled: true
Loading