diff --git a/lib/scout_apm/background_job_integrations/good_job.rb b/lib/scout_apm/background_job_integrations/good_job.rb index 94097320..2ffd5aee 100644 --- a/lib/scout_apm/background_job_integrations/good_job.rb +++ b/lib/scout_apm/background_job_integrations/good_job.rb @@ -11,6 +11,10 @@ def name :good_job end + def present? + defined?(::GoodJob::Job) + end + def forking? false end diff --git a/lib/scout_apm/environment.rb b/lib/scout_apm/environment.rb index e4af726e..4ed29a45 100644 --- a/lib/scout_apm/environment.rb +++ b/lib/scout_apm/environment.rb @@ -31,6 +31,7 @@ class Environment ScoutApm::BackgroundJobIntegrations::DelayedJob.new, ScoutApm::BackgroundJobIntegrations::Que.new, ScoutApm::BackgroundJobIntegrations::Faktory.new, + ScoutApm::BackgroundJobIntegrations::GoodJob.new, ] FRAMEWORK_INTEGRATIONS = [