chore: Load only required APMs (#6497)

- Disable requiring the gems for all the APMs 
- Switch to selectively requiring them.
This commit is contained in:
Sojan Jose
2023-03-01 14:31:51 +05:30
committed by GitHub
parent 4c921d3d0e
commit c9c3ac4b44
5 changed files with 38 additions and 10 deletions

10
config/scout_apm.yml Normal file
View File

@@ -0,0 +1,10 @@
common: &defaults
name: <%= ENV.fetch('SCOUT_NAME', '') %>
key: <%= ENV.fetch('SCOUT_KEY', '') %>
monitor: <%= ENV['SCOUT_KEY'].present? && ENV.fetch('SCOUT_MONITOR', true) %>
test:
monitor: <%= ENV['SCOUT_KEY'].present? && ENV.fetch('SCOUT_MONITOR', true) %>
production:
<<: *defaults