Replace New Relic with Sentry
This commit is contained in:
parent
52ece6fa5e
commit
065e56ccf1
3
Gemfile
3
Gemfile
|
@ -40,7 +40,8 @@ gem 'ruby-progressbar'
|
||||||
|
|
||||||
gem 'rails_admin'
|
gem 'rails_admin'
|
||||||
gem 'pghero'
|
gem 'pghero'
|
||||||
gem 'newrelic_rpm'
|
gem "sentry-ruby"
|
||||||
|
gem "sentry-rails"
|
||||||
|
|
||||||
gem 'sidekiq', "< 6" # remove version constraint once we have redis 5
|
gem 'sidekiq', "< 6" # remove version constraint once we have redis 5
|
||||||
|
|
||||||
|
|
215
Gemfile.lock
215
Gemfile.lock
|
@ -52,7 +52,7 @@ GEM
|
||||||
erubi (~> 1.4)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
||||||
active_model_otp (2.1.1)
|
active_model_otp (2.3.1)
|
||||||
activemodel
|
activemodel
|
||||||
rotp (~> 6.2.0)
|
rotp (~> 6.2.0)
|
||||||
activejob (5.2.6)
|
activejob (5.2.6)
|
||||||
|
@ -81,8 +81,8 @@ GEM
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
arel (9.0.0)
|
arel (9.0.0)
|
||||||
ast (2.4.2)
|
ast (2.4.2)
|
||||||
autoprefixer-rails (10.2.4.0)
|
autoprefixer-rails (10.4.0.0)
|
||||||
execjs
|
execjs (~> 2)
|
||||||
bcrypt (3.1.16)
|
bcrypt (3.1.16)
|
||||||
better_errors (2.9.1)
|
better_errors (2.9.1)
|
||||||
coderay (>= 1.0.0)
|
coderay (>= 1.0.0)
|
||||||
|
@ -91,19 +91,20 @@ GEM
|
||||||
bindex (0.8.1)
|
bindex (0.8.1)
|
||||||
binding_of_caller (1.0.0)
|
binding_of_caller (1.0.0)
|
||||||
debug_inspector (>= 0.0.1)
|
debug_inspector (>= 0.0.1)
|
||||||
bootstrap (4.6.0)
|
bootstrap (4.6.1)
|
||||||
autoprefixer-rails (>= 9.1.0)
|
autoprefixer-rails (>= 9.1.0)
|
||||||
popper_js (>= 1.14.3, < 2)
|
popper_js (>= 1.14.3, < 2)
|
||||||
sassc-rails (>= 2.0.0)
|
sassc-rails (>= 2.0.0)
|
||||||
bootstrap_form (4.5.0)
|
bootstrap_form (5.0.0)
|
||||||
actionpack (>= 5.2)
|
actionpack (>= 5.2)
|
||||||
activemodel (>= 5.2)
|
activemodel (>= 5.2)
|
||||||
brakeman (5.0.0)
|
brakeman (5.2.0)
|
||||||
buftok (0.2.0)
|
buftok (0.2.0)
|
||||||
builder (3.2.4)
|
builder (3.2.4)
|
||||||
byebug (11.1.3)
|
byebug (11.1.3)
|
||||||
capybara (3.35.3)
|
capybara (3.36.0)
|
||||||
addressable
|
addressable
|
||||||
|
matrix
|
||||||
mini_mime (>= 0.1.3)
|
mini_mime (>= 0.1.3)
|
||||||
nokogiri (~> 1.8)
|
nokogiri (~> 1.8)
|
||||||
rack (>= 1.6.0)
|
rack (>= 1.6.0)
|
||||||
|
@ -129,16 +130,16 @@ GEM
|
||||||
coffee-script-source (1.12.2)
|
coffee-script-source (1.12.2)
|
||||||
colorize (0.8.1)
|
colorize (0.8.1)
|
||||||
concurrent-ruby (1.1.9)
|
concurrent-ruby (1.1.9)
|
||||||
connection_pool (2.2.3)
|
connection_pool (2.2.5)
|
||||||
crass (1.0.6)
|
crass (1.0.6)
|
||||||
database_cleaner (2.0.1)
|
database_cleaner (2.0.1)
|
||||||
database_cleaner-active_record (~> 2.0.0)
|
database_cleaner-active_record (~> 2.0.0)
|
||||||
database_cleaner-active_record (2.0.0)
|
database_cleaner-active_record (2.0.1)
|
||||||
activerecord (>= 5.a)
|
activerecord (>= 5.a)
|
||||||
database_cleaner-core (~> 2.0.0)
|
database_cleaner-core (~> 2.0.0)
|
||||||
database_cleaner-core (2.0.1)
|
database_cleaner-core (2.0.1)
|
||||||
debug_inspector (1.1.0)
|
debug_inspector (1.1.0)
|
||||||
devise (4.7.3)
|
devise (4.8.1)
|
||||||
bcrypt (~> 3.0)
|
bcrypt (~> 3.0)
|
||||||
orm_adapter (~> 0.1)
|
orm_adapter (~> 0.1)
|
||||||
railties (>= 4.1.0)
|
railties (>= 4.1.0)
|
||||||
|
@ -147,43 +148,57 @@ GEM
|
||||||
devise-async (1.0.0)
|
devise-async (1.0.0)
|
||||||
activejob (>= 5.0)
|
activejob (>= 5.0)
|
||||||
devise (>= 4.0)
|
devise (>= 4.0)
|
||||||
devise-i18n (1.9.3)
|
devise-i18n (1.10.1)
|
||||||
devise (>= 4.7.1)
|
devise (>= 4.8.0)
|
||||||
diff-lcs (1.4.4)
|
diff-lcs (1.5.0)
|
||||||
docile (1.3.5)
|
docile (1.4.0)
|
||||||
domain_name (0.5.20190701)
|
domain_name (0.5.20190701)
|
||||||
unf (>= 0.0.5, < 1.0.0)
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
equalizer (0.0.11)
|
equalizer (0.0.11)
|
||||||
erubi (1.10.0)
|
erubi (1.10.0)
|
||||||
excon (0.79.0)
|
excon (0.89.0)
|
||||||
execjs (2.7.0)
|
execjs (2.8.1)
|
||||||
factory_bot (6.1.0)
|
factory_bot (6.2.0)
|
||||||
activesupport (>= 5.0.0)
|
activesupport (>= 5.0.0)
|
||||||
factory_bot_rails (6.1.0)
|
factory_bot_rails (6.2.0)
|
||||||
factory_bot (~> 6.1.0)
|
factory_bot (~> 6.2.0)
|
||||||
railties (>= 5.0.0)
|
railties (>= 5.0.0)
|
||||||
fake_email_validator (1.0.11)
|
fake_email_validator (1.0.11)
|
||||||
activemodel
|
activemodel
|
||||||
mail
|
mail
|
||||||
faker (2.17.0)
|
faker (2.19.0)
|
||||||
i18n (>= 1.6, < 2)
|
i18n (>= 1.6, < 2)
|
||||||
faraday (1.3.0)
|
faraday (1.8.0)
|
||||||
|
faraday-em_http (~> 1.0)
|
||||||
|
faraday-em_synchrony (~> 1.0)
|
||||||
|
faraday-excon (~> 1.1)
|
||||||
|
faraday-httpclient (~> 1.0.1)
|
||||||
faraday-net_http (~> 1.0)
|
faraday-net_http (~> 1.0)
|
||||||
|
faraday-net_http_persistent (~> 1.1)
|
||||||
|
faraday-patron (~> 1.0)
|
||||||
|
faraday-rack (~> 1.0)
|
||||||
multipart-post (>= 1.2, < 3)
|
multipart-post (>= 1.2, < 3)
|
||||||
ruby2_keywords
|
ruby2_keywords (>= 0.0.4)
|
||||||
|
faraday-em_http (1.0.0)
|
||||||
|
faraday-em_synchrony (1.0.0)
|
||||||
|
faraday-excon (1.1.0)
|
||||||
|
faraday-httpclient (1.0.1)
|
||||||
faraday-net_http (1.0.1)
|
faraday-net_http (1.0.1)
|
||||||
faraday_middleware (1.0.0)
|
faraday-net_http_persistent (1.2.0)
|
||||||
|
faraday-patron (1.0.0)
|
||||||
|
faraday-rack (1.0.0)
|
||||||
|
faraday_middleware (1.2.0)
|
||||||
faraday (~> 1.0)
|
faraday (~> 1.0)
|
||||||
ffi (1.15.0)
|
ffi (1.15.4)
|
||||||
ffi-compiler (1.0.1)
|
ffi-compiler (1.0.1)
|
||||||
ffi (>= 1.0.0)
|
ffi (>= 1.0.0)
|
||||||
rake
|
rake
|
||||||
fog-aws (3.10.0)
|
fog-aws (3.12.0)
|
||||||
fog-core (~> 2.1)
|
fog-core (~> 2.1)
|
||||||
fog-json (~> 1.1)
|
fog-json (~> 1.1)
|
||||||
fog-xml (~> 0.1)
|
fog-xml (~> 0.1)
|
||||||
ipaddress (~> 0.8)
|
ipaddress (~> 0.8)
|
||||||
fog-core (2.2.3)
|
fog-core (2.2.4)
|
||||||
builder
|
builder
|
||||||
excon (~> 0.71)
|
excon (~> 0.71)
|
||||||
formatador (~> 0.2)
|
formatador (~> 0.2)
|
||||||
|
@ -191,25 +206,25 @@ GEM
|
||||||
fog-json (1.2.0)
|
fog-json (1.2.0)
|
||||||
fog-core
|
fog-core
|
||||||
multi_json (~> 1.10)
|
multi_json (~> 1.10)
|
||||||
fog-local (0.6.0)
|
fog-local (0.7.0)
|
||||||
fog-core (>= 1.27, < 3.0)
|
fog-core (>= 1.27, < 3.0)
|
||||||
fog-xml (0.1.3)
|
fog-xml (0.1.4)
|
||||||
fog-core
|
fog-core
|
||||||
nokogiri (>= 1.5.11, < 2.0.0)
|
nokogiri (>= 1.5.11, < 2.0.0)
|
||||||
font-awesome-rails (4.7.0.7)
|
font-awesome-rails (4.7.0.8)
|
||||||
railties (>= 3.2, < 7)
|
railties (>= 3.2, < 8.0)
|
||||||
font-kit-rails (1.2.0)
|
font-kit-rails (1.2.0)
|
||||||
rails
|
rails
|
||||||
formatador (0.2.5)
|
formatador (0.3.0)
|
||||||
globalid (0.5.2)
|
globalid (1.0.0)
|
||||||
activesupport (>= 5.0)
|
activesupport (>= 5.0)
|
||||||
guard (2.16.2)
|
guard (2.18.0)
|
||||||
formatador (>= 0.2.4)
|
formatador (>= 0.2.4)
|
||||||
listen (>= 2.7, < 4.0)
|
listen (>= 2.7, < 4.0)
|
||||||
lumberjack (>= 1.0.12, < 2.0)
|
lumberjack (>= 1.0.12, < 2.0)
|
||||||
nenv (~> 0.1)
|
nenv (~> 0.1)
|
||||||
notiffany (~> 0.0)
|
notiffany (~> 0.0)
|
||||||
pry (>= 0.9.12)
|
pry (>= 0.13.0)
|
||||||
shellany (~> 0.0)
|
shellany (~> 0.0)
|
||||||
thor (>= 0.18.1)
|
thor (>= 0.18.1)
|
||||||
guard-brakeman (0.8.6)
|
guard-brakeman (0.8.6)
|
||||||
|
@ -217,31 +232,31 @@ GEM
|
||||||
guard (>= 2.0.0)
|
guard (>= 2.0.0)
|
||||||
guard-compat (~> 1.0)
|
guard-compat (~> 1.0)
|
||||||
guard-compat (1.2.1)
|
guard-compat (1.2.1)
|
||||||
haml (5.2.1)
|
haml (5.2.2)
|
||||||
temple (>= 0.8.0)
|
temple (>= 0.8.0)
|
||||||
tilt
|
tilt
|
||||||
haml_lint (0.37.0)
|
haml_lint (0.37.1)
|
||||||
haml (>= 4.0, < 5.3)
|
haml (>= 4.0, < 5.3)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
rainbow
|
rainbow
|
||||||
rubocop (>= 0.50.0)
|
rubocop (>= 0.50.0)
|
||||||
sysexits (~> 1.1)
|
sysexits (~> 1.1)
|
||||||
hashie (4.1.0)
|
hashie (5.0.0)
|
||||||
http (4.4.1)
|
http (4.4.1)
|
||||||
addressable (~> 2.3)
|
addressable (~> 2.3)
|
||||||
http-cookie (~> 1.0)
|
http-cookie (~> 1.0)
|
||||||
http-form_data (~> 2.2)
|
http-form_data (~> 2.2)
|
||||||
http-parser (~> 1.2.0)
|
http-parser (~> 1.2.0)
|
||||||
http-cookie (1.0.3)
|
http-cookie (1.0.4)
|
||||||
domain_name (~> 0.5)
|
domain_name (~> 0.5)
|
||||||
http-form_data (2.3.0)
|
http-form_data (2.3.0)
|
||||||
http-parser (1.2.3)
|
http-parser (1.2.3)
|
||||||
ffi-compiler (>= 1.0, < 2.0)
|
ffi-compiler (>= 1.0, < 2.0)
|
||||||
http_parser.rb (0.6.0)
|
http_parser.rb (0.6.0)
|
||||||
httparty (0.18.1)
|
httparty (0.20.0)
|
||||||
mime-types (~> 3.0)
|
mime-types (~> 3.0)
|
||||||
multi_xml (>= 0.5.2)
|
multi_xml (>= 0.5.2)
|
||||||
i18n (1.8.10)
|
i18n (1.8.11)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
i18n-js (3.6.0)
|
i18n-js (3.6.0)
|
||||||
i18n (>= 0.6.6)
|
i18n (>= 0.6.6)
|
||||||
|
@ -250,7 +265,8 @@ GEM
|
||||||
mini_magick (>= 4.9.5, < 5)
|
mini_magick (>= 4.9.5, < 5)
|
||||||
ruby-vips (>= 2.0.17, < 3)
|
ruby-vips (>= 2.0.17, < 3)
|
||||||
ipaddress (0.8.3)
|
ipaddress (0.8.3)
|
||||||
jbuilder (2.11.2)
|
jbuilder (2.11.5)
|
||||||
|
actionview (>= 5.0.0)
|
||||||
activesupport (>= 5.0.0)
|
activesupport (>= 5.0.0)
|
||||||
jquery-rails (4.4.0)
|
jquery-rails (4.4.0)
|
||||||
rails-dom-testing (>= 1, < 3)
|
rails-dom-testing (>= 1, < 3)
|
||||||
|
@ -258,64 +274,62 @@ GEM
|
||||||
thor (>= 0.14, < 2.0)
|
thor (>= 0.14, < 2.0)
|
||||||
jquery-ui-rails (6.0.1)
|
jquery-ui-rails (6.0.1)
|
||||||
railties (>= 3.2.16)
|
railties (>= 3.2.16)
|
||||||
json (2.5.1)
|
json (2.6.1)
|
||||||
kaminari (1.2.1)
|
kaminari (1.2.2)
|
||||||
activesupport (>= 4.1.0)
|
activesupport (>= 4.1.0)
|
||||||
kaminari-actionview (= 1.2.1)
|
kaminari-actionview (= 1.2.2)
|
||||||
kaminari-activerecord (= 1.2.1)
|
kaminari-activerecord (= 1.2.2)
|
||||||
kaminari-core (= 1.2.1)
|
kaminari-core (= 1.2.2)
|
||||||
kaminari-actionview (1.2.1)
|
kaminari-actionview (1.2.2)
|
||||||
actionview
|
actionview
|
||||||
kaminari-core (= 1.2.1)
|
kaminari-core (= 1.2.2)
|
||||||
kaminari-activerecord (1.2.1)
|
kaminari-activerecord (1.2.2)
|
||||||
activerecord
|
activerecord
|
||||||
kaminari-core (= 1.2.1)
|
kaminari-core (= 1.2.2)
|
||||||
kaminari-core (1.2.1)
|
kaminari-core (1.2.2)
|
||||||
launchy (2.5.0)
|
launchy (2.5.0)
|
||||||
addressable (~> 2.7)
|
addressable (~> 2.7)
|
||||||
letter_opener (1.7.0)
|
letter_opener (1.7.0)
|
||||||
launchy (~> 2.2)
|
launchy (~> 2.2)
|
||||||
listen (3.5.1)
|
listen (3.7.0)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
loofah (2.12.0)
|
loofah (2.13.0)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
lumberjack (1.2.8)
|
lumberjack (1.2.8)
|
||||||
mail (2.7.1)
|
mail (2.7.1)
|
||||||
mini_mime (>= 0.1.1)
|
mini_mime (>= 0.1.1)
|
||||||
marcel (1.0.1)
|
marcel (1.0.2)
|
||||||
|
matrix (0.4.2)
|
||||||
memoizable (0.4.2)
|
memoizable (0.4.2)
|
||||||
thread_safe (~> 0.3, >= 0.3.1)
|
thread_safe (~> 0.3, >= 0.3.1)
|
||||||
method_source (1.0.0)
|
method_source (1.0.0)
|
||||||
mime-types (3.3.1)
|
mime-types (3.4.1)
|
||||||
mime-types-data (~> 3.2015)
|
mime-types-data (~> 3.2015)
|
||||||
mime-types-data (3.2021.0225)
|
mime-types-data (3.2021.1115)
|
||||||
mimemagic (0.4.3)
|
mimemagic (0.4.3)
|
||||||
nokogiri (~> 1)
|
nokogiri (~> 1)
|
||||||
rake
|
rake
|
||||||
mini_magick (4.11.0)
|
mini_magick (4.11.0)
|
||||||
mini_mime (1.1.1)
|
mini_mime (1.1.2)
|
||||||
mini_portile2 (2.6.1)
|
mini_portile2 (2.6.1)
|
||||||
minitest (5.14.4)
|
minitest (5.15.0)
|
||||||
multi_json (1.15.0)
|
multi_json (1.15.0)
|
||||||
multi_xml (0.6.0)
|
multi_xml (0.6.0)
|
||||||
multipart-post (2.1.1)
|
multipart-post (2.1.1)
|
||||||
naught (1.1.0)
|
naught (1.1.0)
|
||||||
nenv (0.3.0)
|
nenv (0.3.0)
|
||||||
nested_form (0.3.2)
|
nested_form (0.3.2)
|
||||||
newrelic_rpm (6.15.0)
|
|
||||||
nio4r (2.5.8)
|
nio4r (2.5.8)
|
||||||
nokogiri (1.12.5)
|
nokogiri (1.12.5)
|
||||||
mini_portile2 (~> 2.6.1)
|
mini_portile2 (~> 2.6.1)
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
nokogumbo (2.0.5)
|
|
||||||
nokogiri (~> 1.8, >= 1.8.4)
|
|
||||||
notiffany (0.1.3)
|
notiffany (0.1.3)
|
||||||
nenv (~> 0.1)
|
nenv (~> 0.1)
|
||||||
shellany (~> 0.0)
|
shellany (~> 0.0)
|
||||||
oauth (0.5.6)
|
oauth (0.5.8)
|
||||||
omniauth (2.0.3)
|
omniauth (2.0.4)
|
||||||
hashie (>= 3.4.6)
|
hashie (>= 3.4.6)
|
||||||
rack (>= 1.6.2, < 3)
|
rack (>= 1.6.2, < 3)
|
||||||
rack-protection
|
rack-protection
|
||||||
|
@ -332,32 +346,32 @@ GEM
|
||||||
omniauth-oauth (~> 1.1)
|
omniauth-oauth (~> 1.1)
|
||||||
rack
|
rack
|
||||||
orm_adapter (0.5.0)
|
orm_adapter (0.5.0)
|
||||||
parallel (1.20.1)
|
parallel (1.21.0)
|
||||||
parser (3.0.0.0)
|
parser (3.0.3.2)
|
||||||
ast (~> 2.4.1)
|
ast (~> 2.4.1)
|
||||||
pg (1.2.3)
|
pg (1.2.3)
|
||||||
pghero (2.8.1)
|
pghero (2.8.2)
|
||||||
activerecord (>= 5)
|
activerecord (>= 5)
|
||||||
poltergeist (1.18.1)
|
poltergeist (1.18.1)
|
||||||
capybara (>= 2.1, < 4)
|
capybara (>= 2.1, < 4)
|
||||||
cliver (~> 0.3.1)
|
cliver (~> 0.3.1)
|
||||||
websocket-driver (>= 0.2.0)
|
websocket-driver (>= 0.2.0)
|
||||||
popper_js (1.16.0)
|
popper_js (1.16.0)
|
||||||
pry (0.14.0)
|
pry (0.14.1)
|
||||||
coderay (~> 1.1)
|
coderay (~> 1.1)
|
||||||
method_source (~> 1.0)
|
method_source (~> 1.0)
|
||||||
public_suffix (4.0.6)
|
public_suffix (4.0.6)
|
||||||
puma (5.5.1)
|
puma (5.5.2)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
questiongenerator (1.0.0)
|
questiongenerator (1.0.0)
|
||||||
racc (1.5.2)
|
racc (1.6.0)
|
||||||
rack (2.2.3)
|
rack (2.2.3)
|
||||||
rack-pjax (1.1.0)
|
rack-pjax (1.1.0)
|
||||||
nokogiri (~> 1.5)
|
nokogiri (~> 1.5)
|
||||||
rack (>= 1.1)
|
rack (>= 1.1)
|
||||||
rack-protection (2.1.0)
|
rack-protection (2.1.0)
|
||||||
rack
|
rack
|
||||||
rack-proxy (0.6.5)
|
rack-proxy (0.7.0)
|
||||||
rack
|
rack
|
||||||
rack-test (1.1.0)
|
rack-test (1.1.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
|
@ -386,7 +400,7 @@ GEM
|
||||||
rails-i18n (5.1.3)
|
rails-i18n (5.1.3)
|
||||||
i18n (>= 0.7, < 2)
|
i18n (>= 0.7, < 2)
|
||||||
railties (>= 5.0, < 6)
|
railties (>= 5.0, < 6)
|
||||||
rails_admin (2.1.1)
|
rails_admin (2.2.1)
|
||||||
activemodel-serializers-xml (>= 1.0)
|
activemodel-serializers-xml (>= 1.0)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
haml (>= 4.0, < 6)
|
haml (>= 4.0, < 6)
|
||||||
|
@ -406,12 +420,12 @@ GEM
|
||||||
thor (>= 0.19.0, < 2.0)
|
thor (>= 0.19.0, < 2.0)
|
||||||
rainbow (3.0.0)
|
rainbow (3.0.0)
|
||||||
rake (13.0.6)
|
rake (13.0.6)
|
||||||
rb-fsevent (0.10.4)
|
rb-fsevent (0.11.0)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
redcarpet (3.5.1)
|
redcarpet (3.5.1)
|
||||||
redis (4.1.4)
|
redis (4.1.4)
|
||||||
regexp_parser (2.1.1)
|
regexp_parser (2.2.0)
|
||||||
remotipart (1.4.4)
|
remotipart (1.4.4)
|
||||||
responders (3.0.1)
|
responders (3.0.1)
|
||||||
actionpack (>= 5.0)
|
actionpack (>= 5.0)
|
||||||
|
@ -419,10 +433,10 @@ GEM
|
||||||
rexml (3.2.5)
|
rexml (3.2.5)
|
||||||
rolify (5.3.0)
|
rolify (5.3.0)
|
||||||
rotp (6.2.0)
|
rotp (6.2.0)
|
||||||
rqrcode (1.2.0)
|
rqrcode (2.1.0)
|
||||||
chunky_png (~> 1.0)
|
chunky_png (~> 1.0)
|
||||||
rqrcode_core (~> 0.2)
|
rqrcode_core (~> 1.0)
|
||||||
rqrcode_core (0.2.0)
|
rqrcode_core (1.2.0)
|
||||||
rspec-core (3.9.3)
|
rspec-core (3.9.3)
|
||||||
rspec-support (~> 3.9.3)
|
rspec-support (~> 3.9.3)
|
||||||
rspec-expectations (3.9.4)
|
rspec-expectations (3.9.4)
|
||||||
|
@ -446,25 +460,24 @@ GEM
|
||||||
rspec-core (~> 3.0, >= 3.0.0)
|
rspec-core (~> 3.0, >= 3.0.0)
|
||||||
sidekiq (>= 2.4.0)
|
sidekiq (>= 2.4.0)
|
||||||
rspec-support (3.9.4)
|
rspec-support (3.9.4)
|
||||||
rubocop (1.12.0)
|
rubocop (1.24.0)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 3.0.0.0)
|
parser (>= 3.0.0.0)
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
regexp_parser (>= 1.8, < 3.0)
|
regexp_parser (>= 1.8, < 3.0)
|
||||||
rexml
|
rexml
|
||||||
rubocop-ast (>= 1.2.0, < 2.0)
|
rubocop-ast (>= 1.15.0, < 2.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 1.4.0, < 3.0)
|
unicode-display_width (>= 1.4.0, < 3.0)
|
||||||
rubocop-ast (1.4.1)
|
rubocop-ast (1.15.1)
|
||||||
parser (>= 2.7.1.5)
|
parser (>= 3.0.1.1)
|
||||||
ruby-progressbar (1.11.0)
|
ruby-progressbar (1.11.0)
|
||||||
ruby-vips (2.1.0)
|
ruby-vips (2.1.4)
|
||||||
ffi (~> 1.12)
|
ffi (~> 1.12)
|
||||||
ruby2_keywords (0.0.4)
|
ruby2_keywords (0.0.5)
|
||||||
sanitize (5.2.3)
|
sanitize (6.0.0)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.8.0)
|
nokogiri (>= 1.12.0)
|
||||||
nokogumbo (~> 2.0)
|
|
||||||
sass (3.7.4)
|
sass (3.7.4)
|
||||||
sass-listen (~> 4.0.0)
|
sass-listen (~> 4.0.0)
|
||||||
sass-listen (4.0.0)
|
sass-listen (4.0.0)
|
||||||
|
@ -485,6 +498,16 @@ GEM
|
||||||
sprockets-rails
|
sprockets-rails
|
||||||
tilt
|
tilt
|
||||||
semantic_range (3.0.0)
|
semantic_range (3.0.0)
|
||||||
|
sentry-rails (4.8.1)
|
||||||
|
railties (>= 5.0)
|
||||||
|
sentry-ruby-core (~> 4.8.1)
|
||||||
|
sentry-ruby (4.8.1)
|
||||||
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
|
faraday (>= 1.0)
|
||||||
|
sentry-ruby-core (= 4.8.1)
|
||||||
|
sentry-ruby-core (4.8.1)
|
||||||
|
concurrent-ruby
|
||||||
|
faraday
|
||||||
shellany (0.0.1)
|
shellany (0.0.1)
|
||||||
sidekiq (5.2.9)
|
sidekiq (5.2.9)
|
||||||
connection_pool (~> 2.2, >= 2.2.2)
|
connection_pool (~> 2.2, >= 2.2.2)
|
||||||
|
@ -496,20 +519,21 @@ GEM
|
||||||
docile (~> 1.1)
|
docile (~> 1.1)
|
||||||
simplecov-html (~> 0.11)
|
simplecov-html (~> 0.11)
|
||||||
simplecov_json_formatter (~> 0.1)
|
simplecov_json_formatter (~> 0.1)
|
||||||
simplecov-cobertura (1.4.2)
|
simplecov-cobertura (2.1.0)
|
||||||
simplecov (~> 0.8)
|
rexml
|
||||||
|
simplecov (~> 0.19)
|
||||||
simplecov-html (0.12.3)
|
simplecov-html (0.12.3)
|
||||||
simplecov-json (0.2.3)
|
simplecov-json (0.2.3)
|
||||||
json
|
json
|
||||||
simplecov
|
simplecov
|
||||||
simplecov_json_formatter (0.1.2)
|
simplecov_json_formatter (0.1.3)
|
||||||
spring (2.1.1)
|
spring (2.1.1)
|
||||||
sprockets (3.7.2)
|
sprockets (3.7.2)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
rack (> 1, < 3)
|
rack (> 1, < 3)
|
||||||
sprockets-rails (3.2.2)
|
sprockets-rails (3.4.2)
|
||||||
actionpack (>= 4.0)
|
actionpack (>= 5.2)
|
||||||
activesupport (>= 4.0)
|
activesupport (>= 5.2)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
sysexits (1.2.0)
|
sysexits (1.2.0)
|
||||||
temple (0.8.2)
|
temple (0.8.2)
|
||||||
|
@ -539,8 +563,8 @@ GEM
|
||||||
execjs (>= 0.3.0, < 3)
|
execjs (>= 0.3.0, < 3)
|
||||||
unf (0.1.4)
|
unf (0.1.4)
|
||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.7.7)
|
unf_ext (0.0.8)
|
||||||
unicode-display_width (2.0.0)
|
unicode-display_width (2.1.0)
|
||||||
warden (1.2.9)
|
warden (1.2.9)
|
||||||
rack (>= 2.0.9)
|
rack (>= 2.0.9)
|
||||||
web-console (3.7.0)
|
web-console (3.7.0)
|
||||||
|
@ -548,7 +572,7 @@ GEM
|
||||||
activemodel (>= 5.0)
|
activemodel (>= 5.0)
|
||||||
bindex (>= 0.4.0)
|
bindex (>= 0.4.0)
|
||||||
railties (>= 5.0)
|
railties (>= 5.0)
|
||||||
webpacker (5.2.1)
|
webpacker (5.4.3)
|
||||||
activesupport (>= 5.2)
|
activesupport (>= 5.2)
|
||||||
rack-proxy (>= 0.6.1)
|
rack-proxy (>= 0.6.1)
|
||||||
railties (>= 5.2)
|
railties (>= 5.2)
|
||||||
|
@ -596,7 +620,6 @@ DEPENDENCIES
|
||||||
jbuilder (~> 2.10)
|
jbuilder (~> 2.10)
|
||||||
letter_opener
|
letter_opener
|
||||||
mini_magick
|
mini_magick
|
||||||
newrelic_rpm
|
|
||||||
omniauth
|
omniauth
|
||||||
omniauth-rails_csrf_protection (~> 1.0)
|
omniauth-rails_csrf_protection (~> 1.0)
|
||||||
omniauth-tumblr
|
omniauth-tumblr
|
||||||
|
@ -622,6 +645,8 @@ DEPENDENCIES
|
||||||
ruby-progressbar
|
ruby-progressbar
|
||||||
sanitize
|
sanitize
|
||||||
sass-rails (~> 5.0)
|
sass-rails (~> 5.0)
|
||||||
|
sentry-rails
|
||||||
|
sentry-ruby
|
||||||
sidekiq (< 6)
|
sidekiq (< 6)
|
||||||
simplecov
|
simplecov
|
||||||
simplecov-cobertura
|
simplecov-cobertura
|
||||||
|
|
|
@ -41,7 +41,7 @@ class Ajax::AnswerController < AjaxController
|
||||||
current_user.answer question, params[:answer]
|
current_user.answer question, params[:answer]
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :err
|
@response[:status] = :err
|
||||||
@response[:message] = I18n.t('messages.error')
|
@response[:message] = I18n.t('messages.error')
|
||||||
return
|
return
|
||||||
|
|
|
@ -8,7 +8,7 @@ class Ajax::CommentController < AjaxController
|
||||||
begin
|
begin
|
||||||
current_user.comment(answer, params[:comment])
|
current_user.comment(answer, params[:comment])
|
||||||
rescue ActiveRecord::RecordInvalid => e
|
rescue ActiveRecord::RecordInvalid => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :rec_inv
|
@response[:status] = :rec_inv
|
||||||
@response[:message] = I18n.t('messages.comment.create.rec_inv')
|
@response[:message] = I18n.t('messages.comment.create.rec_inv')
|
||||||
return
|
return
|
||||||
|
|
|
@ -7,7 +7,7 @@ class Ajax::FriendController < AjaxController
|
||||||
begin
|
begin
|
||||||
current_user.follow target_user
|
current_user.follow target_user
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :fail
|
@response[:status] = :fail
|
||||||
@response[:message] = I18n.t('messages.friend.create.fail')
|
@response[:message] = I18n.t('messages.friend.create.fail')
|
||||||
return
|
return
|
||||||
|
@ -26,7 +26,7 @@ class Ajax::FriendController < AjaxController
|
||||||
begin
|
begin
|
||||||
current_user.unfollow target_user
|
current_user.unfollow target_user
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :fail
|
@response[:status] = :fail
|
||||||
@response[:message] = I18n.t('messages.friend.destroy.fail')
|
@response[:message] = I18n.t('messages.friend.destroy.fail')
|
||||||
return
|
return
|
||||||
|
|
|
@ -34,7 +34,7 @@ class Ajax::InboxController < AjaxController
|
||||||
begin
|
begin
|
||||||
inbox.remove
|
inbox.remove
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :err
|
@response[:status] = :err
|
||||||
@response[:message] = I18n.t('messages.error')
|
@response[:message] = I18n.t('messages.error')
|
||||||
return
|
return
|
||||||
|
@ -51,7 +51,7 @@ class Ajax::InboxController < AjaxController
|
||||||
begin
|
begin
|
||||||
Inbox.where(user: current_user).each { |i| i.remove }
|
Inbox.where(user: current_user).each { |i| i.remove }
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :err
|
@response[:status] = :err
|
||||||
@response[:message] = I18n.t('messages.error')
|
@response[:message] = I18n.t('messages.error')
|
||||||
return
|
return
|
||||||
|
@ -69,7 +69,7 @@ class Ajax::InboxController < AjaxController
|
||||||
.where(questions: { user_id: @target_user.id, author_is_anonymous: false })
|
.where(questions: { user_id: @target_user.id, author_is_anonymous: false })
|
||||||
@inbox.each { |i| i.remove }
|
@inbox.each { |i| i.remove }
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :err
|
@response[:status] = :err
|
||||||
@response[:message] = I18n.t('messages.error')
|
@response[:message] = I18n.t('messages.error')
|
||||||
return
|
return
|
||||||
|
|
|
@ -11,7 +11,7 @@ class Ajax::ListController < AjaxController
|
||||||
begin
|
begin
|
||||||
params.require :name
|
params.require :name
|
||||||
rescue ActionController::ParameterMissing => e
|
rescue ActionController::ParameterMissing => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :toolong
|
@response[:status] = :toolong
|
||||||
@response[:message] = I18n.t('messages.list.create.noname')
|
@response[:message] = I18n.t('messages.list.create.noname')
|
||||||
return
|
return
|
||||||
|
@ -22,17 +22,17 @@ class Ajax::ListController < AjaxController
|
||||||
target_user = User.find_by_screen_name!(params[:user])
|
target_user = User.find_by_screen_name!(params[:user])
|
||||||
list = List.create! user: current_user, display_name: params[:name]
|
list = List.create! user: current_user, display_name: params[:name]
|
||||||
rescue ActiveRecord::RecordInvalid => e
|
rescue ActiveRecord::RecordInvalid => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :toolong
|
@response[:status] = :toolong
|
||||||
@response[:message] = I18n.t('messages.list.create.toolong')
|
@response[:message] = I18n.t('messages.list.create.toolong')
|
||||||
return
|
return
|
||||||
rescue ActiveRecord::RecordNotFound => e
|
rescue ActiveRecord::RecordNotFound => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :notfound
|
@response[:status] = :notfound
|
||||||
@response[:message] = I18n.t('messages.list.create.notfound')
|
@response[:message] = I18n.t('messages.list.create.notfound')
|
||||||
return
|
return
|
||||||
rescue ActiveRecord::RecordNotUnique => e
|
rescue ActiveRecord::RecordNotUnique => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :exists
|
@response[:status] = :exists
|
||||||
@response[:message] = I18n.t('messages.list.create.exists')
|
@response[:message] = I18n.t('messages.list.create.exists')
|
||||||
return
|
return
|
||||||
|
@ -58,7 +58,7 @@ class Ajax::ListController < AjaxController
|
||||||
begin
|
begin
|
||||||
List.where(user: current_user, name: params[:list]).first.destroy!
|
List.where(user: current_user, name: params[:list]).first.destroy!
|
||||||
rescue ActiveRecord::RecordNotFound => e
|
rescue ActiveRecord::RecordNotFound => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :notfound
|
@response[:status] = :notfound
|
||||||
@response[:message] = I18n.t('messages.list.destroy.notfound')
|
@response[:message] = I18n.t('messages.list.destroy.notfound')
|
||||||
return
|
return
|
||||||
|
@ -87,7 +87,7 @@ class Ajax::ListController < AjaxController
|
||||||
begin
|
begin
|
||||||
list = current_user.lists.find_by_name!(params[:list])
|
list = current_user.lists.find_by_name!(params[:list])
|
||||||
rescue ActiveRecord::RecordNotFound => e
|
rescue ActiveRecord::RecordNotFound => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :notfound
|
@response[:status] = :notfound
|
||||||
@response[:message] = I18n.t('messages.list.membership.notfound')
|
@response[:message] = I18n.t('messages.list.membership.notfound')
|
||||||
return
|
return
|
||||||
|
|
|
@ -8,7 +8,7 @@ class Ajax::ModerationController < AjaxController
|
||||||
begin
|
begin
|
||||||
current_user.report_vote(report, params[:upvote])
|
current_user.report_vote(report, params[:upvote])
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :fail
|
@response[:status] = :fail
|
||||||
@response[:message] = I18n.t('messages.moderation.vote.fail')
|
@response[:message] = I18n.t('messages.moderation.vote.fail')
|
||||||
return
|
return
|
||||||
|
@ -28,7 +28,7 @@ class Ajax::ModerationController < AjaxController
|
||||||
begin
|
begin
|
||||||
current_user.report_unvote report
|
current_user.report_unvote report
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :fail
|
@response[:status] = :fail
|
||||||
@response[:message] = I18n.t('messages.moderation.destroy_vote.fail')
|
@response[:message] = I18n.t('messages.moderation.destroy_vote.fail')
|
||||||
return
|
return
|
||||||
|
@ -49,7 +49,7 @@ class Ajax::ModerationController < AjaxController
|
||||||
report.deleted = true
|
report.deleted = true
|
||||||
report.save
|
report.save
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :fail
|
@response[:status] = :fail
|
||||||
@response[:message] = I18n.t('messages.moderation.destroy_report.fail')
|
@response[:message] = I18n.t('messages.moderation.destroy_report.fail')
|
||||||
return
|
return
|
||||||
|
@ -70,7 +70,7 @@ class Ajax::ModerationController < AjaxController
|
||||||
begin
|
begin
|
||||||
current_user.report_comment(report, params[:comment])
|
current_user.report_comment(report, params[:comment])
|
||||||
rescue ActiveRecord::RecordInvalid => e
|
rescue ActiveRecord::RecordInvalid => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :rec_inv
|
@response[:status] = :rec_inv
|
||||||
@response[:message] = I18n.t('messages.moderation.create_comment.rec_inv')
|
@response[:message] = I18n.t('messages.moderation.create_comment.rec_inv')
|
||||||
return
|
return
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Ajax::QuestionController < AjaxController
|
||||||
user: current_user,
|
user: current_user,
|
||||||
direct: params[:rcpt] != 'followers')
|
direct: params[:rcpt] != 'followers')
|
||||||
rescue ActiveRecord::RecordInvalid => e
|
rescue ActiveRecord::RecordInvalid => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :rec_inv
|
@response[:status] = :rec_inv
|
||||||
@response[:message] = I18n.t('messages.question.create.rec_inv')
|
@response[:message] = I18n.t('messages.question.create.rec_inv')
|
||||||
return
|
return
|
||||||
|
|
|
@ -7,7 +7,7 @@ class Ajax::SmileController < AjaxController
|
||||||
begin
|
begin
|
||||||
current_user.smile answer
|
current_user.smile answer
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :fail
|
@response[:status] = :fail
|
||||||
@response[:message] = I18n.t('messages.smile.create.fail')
|
@response[:message] = I18n.t('messages.smile.create.fail')
|
||||||
return
|
return
|
||||||
|
@ -26,7 +26,7 @@ class Ajax::SmileController < AjaxController
|
||||||
begin
|
begin
|
||||||
current_user.unsmile answer
|
current_user.unsmile answer
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :fail
|
@response[:status] = :fail
|
||||||
@response[:message] = I18n.t('messages.smile.destroy.fail')
|
@response[:message] = I18n.t('messages.smile.destroy.fail')
|
||||||
return
|
return
|
||||||
|
@ -45,7 +45,7 @@ class Ajax::SmileController < AjaxController
|
||||||
begin
|
begin
|
||||||
current_user.smile_comment comment
|
current_user.smile_comment comment
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :fail
|
@response[:status] = :fail
|
||||||
@response[:message] = I18n.t('messages.smile.create_comment.fail')
|
@response[:message] = I18n.t('messages.smile.create_comment.fail')
|
||||||
return
|
return
|
||||||
|
@ -64,7 +64,7 @@ class Ajax::SmileController < AjaxController
|
||||||
begin
|
begin
|
||||||
current_user.unsmile_comment comment
|
current_user.unsmile_comment comment
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@response[:status] = :fail
|
@response[:status] = :fail
|
||||||
@response[:message] = I18n.t('messages.smile.destroy_comment.fail')
|
@response[:message] = I18n.t('messages.smile.destroy_comment.fail')
|
||||||
return
|
return
|
||||||
|
|
|
@ -7,7 +7,7 @@ class AjaxController < ApplicationController
|
||||||
respond_to :json
|
respond_to :json
|
||||||
|
|
||||||
rescue_from(StandardError) do |e|
|
rescue_from(StandardError) do |e|
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
|
|
||||||
@response = {
|
@response = {
|
||||||
success: false,
|
success: false,
|
||||||
|
@ -19,7 +19,7 @@ class AjaxController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue_from(ActiveRecord::RecordNotFound) do |e|
|
rescue_from(ActiveRecord::RecordNotFound) do |e|
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
|
|
||||||
@response = {
|
@response = {
|
||||||
success: false,
|
success: false,
|
||||||
|
@ -31,7 +31,7 @@ class AjaxController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue_from(ActionController::ParameterMissing) do |e|
|
rescue_from(ActionController::ParameterMissing) do |e|
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
|
|
||||||
@response = {
|
@response = {
|
||||||
success: false,
|
success: false,
|
||||||
|
|
|
@ -32,7 +32,7 @@ class InboxController < ApplicationController
|
||||||
.zero?
|
.zero?
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
flash.now[:error] = "No user with the name @#{params[:author]} found, showing default entries instead!"
|
flash.now[:error] = "No user with the name @#{params[:author]} found, showing default entries instead!"
|
||||||
@not_found = true
|
@not_found = true
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,7 +9,7 @@ class DeletionWorker
|
||||||
User.find(resource_id).destroy!
|
User.find(resource_id).destroy!
|
||||||
rescue => e
|
rescue => e
|
||||||
logger.info "failed to delete user: #{e.message}"
|
logger.info "failed to delete user: #{e.message}"
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -15,6 +15,6 @@ class QuestionWorker
|
||||||
end
|
end
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
logger.info "failed to ask question: #{e.message}"
|
logger.info "failed to ask question: #{e.message}"
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,7 +25,7 @@ class ShareWorker
|
||||||
return
|
return
|
||||||
rescue => e
|
rescue => e
|
||||||
logger.info "failed to post answer #{answer_id} to #{service} for user #{user_id}: #{e.message}"
|
logger.info "failed to post answer #{answer_id} to #{service} for user #{user_id}: #{e.message}"
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
raise
|
raise
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
return unless APP_CONFIG[:sentry_dsn]
|
||||||
|
|
||||||
|
Sentry.init do |config|
|
||||||
|
config.dsn = APP_CONFIG[:sentry_dsn]
|
||||||
|
config.breadcrumbs_logger = [:active_support_logger, :http_logger]
|
||||||
|
|
||||||
|
# Set tracesSampleRate to 1.0 to capture 100%
|
||||||
|
# of transactions for performance monitoring.
|
||||||
|
# We recommend adjusting this value in production
|
||||||
|
config.traces_sample_rate = 1.0
|
||||||
|
# or
|
||||||
|
config.traces_sampler = lambda do |context|
|
||||||
|
true
|
||||||
|
end
|
||||||
|
end
|
|
@ -72,3 +72,6 @@ accepted_image_formats:
|
||||||
- .png
|
- .png
|
||||||
- image/gif
|
- image/gif
|
||||||
- .gif
|
- .gif
|
||||||
|
|
||||||
|
# Sentry connection string
|
||||||
|
sentry_dsn: ''
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
#
|
|
||||||
# This file configures the New Relic Agent. New Relic monitors Ruby, Java,
|
|
||||||
# .NET, PHP, Python and Node applications with deep visibility and low
|
|
||||||
# overhead. For more information, visit www.newrelic.com.
|
|
||||||
#
|
|
||||||
# Generated June 17, 2017
|
|
||||||
#
|
|
||||||
# This configuration file is custom generated for Retrospring
|
|
||||||
#
|
|
||||||
# For full documentation of agent configuration options, please refer to
|
|
||||||
# https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration
|
|
||||||
|
|
||||||
common: &default_settings
|
|
||||||
# Required license key associated with your New Relic account.
|
|
||||||
license_key: CHANGEME
|
|
||||||
|
|
||||||
# Your application name. Renaming here affects where data displays in New
|
|
||||||
# Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
|
|
||||||
app_name: Retrospring
|
|
||||||
|
|
||||||
# To disable the agent regardless of other settings, uncomment the following:
|
|
||||||
# agent_enabled: false
|
|
||||||
|
|
||||||
# Logging level for log/newrelic_agent.log
|
|
||||||
log_level: info
|
|
||||||
|
|
||||||
# disabling browser monitoring for data privacy concerns
|
|
||||||
browser_monitoring:
|
|
||||||
auto_instrument: false
|
|
||||||
|
|
||||||
# Environment-specific settings are in this section.
|
|
||||||
# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment.
|
|
||||||
# If your application has other named environments, configure them here.
|
|
||||||
development:
|
|
||||||
<<: *default_settings
|
|
||||||
app_name: Retrospring (Development)
|
|
||||||
|
|
||||||
test:
|
|
||||||
<<: *default_settings
|
|
||||||
# It doesn't make sense to report to New Relic from automated test runs.
|
|
||||||
monitor_mode: false
|
|
||||||
|
|
||||||
staging:
|
|
||||||
<<: *default_settings
|
|
||||||
app_name: Retrospring (Staging)
|
|
||||||
|
|
||||||
production:
|
|
||||||
<<: *default_settings
|
|
|
@ -26,7 +26,7 @@ class Exporter
|
||||||
finalize
|
finalize
|
||||||
publish
|
publish
|
||||||
rescue => e
|
rescue => e
|
||||||
NewRelic::Agent.notice_error(e)
|
Sentry.capture_exception(e)
|
||||||
@user.export_processing = false
|
@user.export_processing = false
|
||||||
@user.save validate: false
|
@user.save validate: false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue