diff --git a/Gemfile b/Gemfile index 3b85f197..d926e5b2 100644 --- a/Gemfile +++ b/Gemfile @@ -33,6 +33,7 @@ gem 'chewy', '~> 5.0' gem 'cld3', '~> 3.2.4' gem 'devise', '~> 4.6' gem 'devise-two-factor', '~> 3.0' +gem 'scout_apm' group :pam_authentication, optional: true do gem 'devise_pam_authenticatable2', '~> 9.2' diff --git a/Gemfile.lock b/Gemfile.lock index e61f0d49..f359d82c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -565,6 +565,8 @@ GEM sass-listen (4.0.0) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) + scout_apm (4.0.3) + parser scss_lint (0.59.0) sass (~> 3.5, >= 3.5.5) sidekiq (6.1.3) @@ -765,6 +767,7 @@ DEPENDENCIES rspec-sidekiq (~> 3.0) rubocop (~> 0.71) sanitize (~> 5.0) + scout_apm scss_lint (~> 0.58) sidekiq (~> 6.0) sidekiq-bulk (~> 0.2.0) diff --git a/config/scout_apm.yml b/config/scout_apm.yml new file mode 100644 index 00000000..b72b9872 --- /dev/null +++ b/config/scout_apm.yml @@ -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 +