scoutapp / scout_apm_ruby

ScoutAPM Ruby Agent. Supports Rails, Sinatra, Grape, Rack, and many other frameworks

Home Page:https://scoutapm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Initialize error when upgrading to Sidekiq Pro

kanejamison opened this issue · comments

commented

We're upgrading to Sidekiq Pro and getting exceptions from /lib/scout_apm/background_job_integrations/sidekiq.rb.

Currently on Rails 6.0.0 rc1, hosted on Heroku, and using Scout via the Heroku add-on with config vars set up, so we don't have a Scout initializer or config file. We're using current 'scout_apm' gem, not tied to a specific version.

We get the following exception when our Heroku workers try to start:

image

image

Workers can't start at all, so it freezes our worker queue.

I can't find any documentation about using Scout with Sidekiq Pro, so I'm wondering if this is a known error, or some type of config setting we're missing? Or would Sidekiq Pro be considered a library that requires custom instrumentation?

We are now using custom gem path instead of the standard sidekiq gem, in case that is a reference that affects the initialize process:

source "https://gems.contribsys.com/" do
  gem 'sidekiq-pro'
end

rails 6.0 rc1 ? scout_apm 2.5.2 ?

I think you should at least be using scout 4.x

commented

rails 6.0 rc1 ? scout_apm 2.5.2 ?

I think you should at least be using scout 4.x

Our gemfile is gem 'scout_apm' - I was assuming we were getting recent versions so I'm unsure why 2_5_2 is in the backtrace.

Ruby version is 2.6.3.

commented

It was an upgrade issue - bundle update scout_apm resolved it.

Newb problem - thank you for your help!

Glad you found it!