Skip to content

Commit

Permalink
SRCH-2249 Remove airbrake (#766)
Browse files Browse the repository at this point in the history
* SRCH-2249 Remove airbrake

Ripped out all traces of airbrake and ran `bundle update`.
  • Loading branch information
jmax-fearless authored Aug 23, 2021
1 parent 2a36c39 commit 64ae817
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 57 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ gem 'authlogic', '~> 3.8.0'
gem 'omniauth_login_dot_gov', git: 'https://github.com/18f/omniauth_login_dot_gov',
ref: '08ce9b5322efb2d82b2df3f6d774308c4028ee6c'
gem 'omniauth-rails_csrf_protection', '~> 0.1.2'
# Airbrake is deprecated: https://cm-jira.usa.gov/browse/SRCH-2249
gem 'airbrake', '~> 7.1.1'
gem 'redis', '~> 4.0.1'
gem 'redis-namespace', '~> 1.6.0'
gem 'redis-rails', '~> 5.0.2'
Expand Down
28 changes: 12 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ GEM
after_commit_action (1.1.0)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)
airbrake (7.1.1)
airbrake-ruby (~> 2.5)
airbrake-ruby (2.12.0)
american_date (1.1.1)
arel (9.0.0)
ast (2.4.2)
Expand Down Expand Up @@ -355,14 +352,14 @@ GEM
flickraw (0.9.10)
font-awesome-rails (4.7.0.7)
railties (>= 3.2, < 7)
fugit (1.5.0)
fugit (1.5.1)
et-orbi (~> 1.1, >= 1.1.8)
raabro (~> 1.4)
geoip (1.6.4)
gherkin (5.1.0)
github-markdown (0.6.9)
globalid (0.4.2)
activesupport (>= 4.2.0)
globalid (0.5.2)
activesupport (>= 5.0)
google-api-client (0.19.8)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.5, < 0.7.0)
Expand Down Expand Up @@ -474,7 +471,7 @@ GEM
mimemagic (0.3.10)
nokogiri (~> 1)
rake
mini_mime (1.1.0)
mini_mime (1.1.1)
mini_portile2 (2.5.3)
minitest (5.14.4)
moneta (1.4.2)
Expand All @@ -491,7 +488,7 @@ GEM
naught (1.1.0)
net-http-persistent (2.9.4)
newrelic_rpm (5.0.0.342)
nio4r (2.5.7)
nio4r (2.5.8)
nokogiri (1.11.7)
mini_portile2 (~> 2.5.0)
racc (~> 1.4)
Expand Down Expand Up @@ -525,7 +522,7 @@ GEM
pry-rails (0.3.9)
pry (>= 0.10.4)
public_suffix (4.0.6)
puma (5.3.2)
puma (5.4.0)
nio4r (~> 2.0)
raabro (1.4.0)
racc (1.5.2)
Expand Down Expand Up @@ -560,7 +557,7 @@ GEM
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0)
rails-html-sanitizer (1.4.1)
loofah (~> 2.3)
rails-i18n (5.1.3)
i18n (>= 0.7, < 2)
Expand Down Expand Up @@ -669,9 +666,9 @@ GEM
rubocop-ast (>= 1.2.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.8.0)
rubocop-ast (1.10.0)
parser (>= 3.0.1.1)
rubocop-performance (1.11.4)
rubocop-performance (1.11.5)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.11.3)
Expand Down Expand Up @@ -699,7 +696,7 @@ GEM
saxerator (0.9.9)
scrypt (3.0.7)
ffi-compiler (>= 1.0, < 2.0)
searchgov_style (0.1.9)
searchgov_style (0.1.10)
rubocop (= 1.8.1)
rubocop-performance (~> 1.9)
rubocop-rails (~> 2.9)
Expand Down Expand Up @@ -783,7 +780,7 @@ GEM
coercible (~> 1.0)
descendants_tracker (~> 0.0, >= 0.0.3)
equalizer (~> 0.0, >= 0.0.9)
webdrivers (4.6.0)
webdrivers (4.6.1)
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (>= 3.0, < 4.0)
Expand All @@ -795,7 +792,7 @@ GEM
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
will_paginate (3.3.0)
will_paginate (3.3.1)
will_paginate-bootstrap (1.0.2)
will_paginate (>= 3.0.3)
xpath (3.2.0)
Expand All @@ -812,7 +809,6 @@ DEPENDENCIES
active_scheduler (~> 0.5.0)
activerecord-validate_unique_child_attribute
addressable (~> 2.8.0)
airbrake (~> 7.1.1)
american_date (~> 1.1.1)
authlogic (~> 3.8.0)
awesome_print
Expand Down
3 changes: 1 addition & 2 deletions app/controllers/sayt_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'airbrake/rails/action_controller'
# frozen_string_literal: true

class SaytController < ActionController::Metal
include Airbrake::Rails::ActionController
include NewRelic::Agent::Instrumentation::ControllerInstrumentation

SAYT_SUGGESTION_SIZE = 5
Expand Down
20 changes: 0 additions & 20 deletions config/initializers/airbrake.rb

This file was deleted.

3 changes: 1 addition & 2 deletions config/initializers/load_resque.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
require 'airbrake/resque'
require 'resque/failure/multiple'
require 'resque/failure/redis'
require 'resque-timeout'

config = Rails.application.secrets.system_redis
Resque.redis = [config[:host], config[:port]].join(':')

Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Airbrake]
Resque::Failure::Multiple.classes = [Resque::Failure::Redis]
Resque::Failure.backend = Resque::Failure::Multiple

Resque::Plugins::Timeout.timeout = 1.hour
15 changes: 0 additions & 15 deletions config/secrets.yml.dev
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
airbrake_secrets: &AIRBRAKE_SECRETS
project_id: 12345
project_key: PUT_YOUR_PROJECT_KEY_HERE

# Refer to https://github.com/GSA/search-gov/wiki/Obtaining-and-adding-USAJOBS-API-key
jobs_secrets: &JOBS_SECRETS
user_agent: your_email
Expand All @@ -13,8 +9,6 @@ newrelic_secrets: &NEWRELIC_SECRETS
# Only put keys in here that are truly secret, i.e. they should
# be masked during the VCR cassette recording process
secret_keys: &SECRET_KEYS
airbrake:
<<: *AIRBRAKE_SECRETS
aws_image_bucket:
access_key_id: your-aws-s3-access-key-id-here
secret_access_key: your-aws-s3-secret-access-key-here
Expand Down Expand Up @@ -59,15 +53,6 @@ secret_keys: &SECRET_KEYS

dev_settings: &DEV_SETTINGS
<<: *SECRET_KEYS
airbrake:
<<: *AIRBRAKE_SECRETS
ignore:
- "ActionController::MethodNotAllowed"
- "ActionController::UnknownHttpMethod"
- "REXML::ParseException"
- "EOFError"
secure: true
enabled: false
analytics:
elasticsearch:
reader:
Expand Down

0 comments on commit 64ae817

Please sign in to comment.