[scout_apm] Add scout apm to Gemfile, add config file

This commit is contained in:
Fosco Marotto 2021-01-30 21:19:12 -05:00
parent 3196dfbda9
commit 8b8e8ec8e5
3 changed files with 42 additions and 0 deletions

View File

@ -33,6 +33,7 @@ gem 'chewy', '~> 5.0'
gem 'cld3', '~> 3.2.4' gem 'cld3', '~> 3.2.4'
gem 'devise', '~> 4.6' gem 'devise', '~> 4.6'
gem 'devise-two-factor', '~> 3.0' gem 'devise-two-factor', '~> 3.0'
gem 'scout_apm'
group :pam_authentication, optional: true do group :pam_authentication, optional: true do
gem 'devise_pam_authenticatable2', '~> 9.2' gem 'devise_pam_authenticatable2', '~> 9.2'

View File

@ -565,6 +565,8 @@ GEM
sass-listen (4.0.0) sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4) rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7) rb-inotify (~> 0.9, >= 0.9.7)
scout_apm (4.0.3)
parser
scss_lint (0.59.0) scss_lint (0.59.0)
sass (~> 3.5, >= 3.5.5) sass (~> 3.5, >= 3.5.5)
sidekiq (6.1.3) sidekiq (6.1.3)
@ -765,6 +767,7 @@ DEPENDENCIES
rspec-sidekiq (~> 3.0) rspec-sidekiq (~> 3.0)
rubocop (~> 0.71) rubocop (~> 0.71)
sanitize (~> 5.0) sanitize (~> 5.0)
scout_apm
scss_lint (~> 0.58) scss_lint (~> 0.58)
sidekiq (~> 6.0) sidekiq (~> 6.0)
sidekiq-bulk (~> 0.2.0) sidekiq-bulk (~> 0.2.0)

38
config/scout_apm.yml Normal file
View File

@ -0,0 +1,38 @@
# This configuration file is used for Scout APM.
# Environment variables can also be used to configure Scout. See our help docs at https://docs.scoutapm.com#environment-variables for more information.
common: &defaults
# key: Your Organization key for Scout APM. Found on the settings screen.
# - Default: none
# key: not-to-be-committed
# log_level: Verboseness of logs.
# - Default: 'info'
# - Valid Options: debug, info, warn, error
log_level: debug
# name: Application name in APM Web UI
# - Default: the application names comes from the Rails or Sinatra class name
# name: GabSocial
# monitor: Enable Scout APM or not
# - Default: none
# - Valid Options: true, false
production:
<<: *defaults
monitor: true
auto_instruments: true
development:
<<: *defaults
monitor: true
auto_instruments: true
test:
<<: *defaults
monitor: false
staging:
<<: *defaults