Snowplow ruby tracker issue - ! WARNING: Detected 1 Thread(s) started in app boot:


#1

I have implemented snowplow ruby tracker in my ruby on rails application. Recently I have added a line “preload_app!” in config/puma.rb. Now when I restart my development server, puma says a warning like below -

! WARNING: Detected 1 Thread(s) started in app boot:

web | [166] ! #<Thread:0x0000000a341098@/usr/local/rvm/gems/ruby-2.3.4/gems/snowplow-tracker-0.6.1/lib/snowplow-tracker/emitters.rb:238 sleep> - /usr/local/rvm/gems/ruby-2.3.4/gems/snowplow-tracker-0.6.1/lib/snowplow-tracker/emitters.rb:247:in `pop’

Now tracker doesn’t send/emmit any request. How to solve this issue? Any idea?


#2

Hi @sahidul007 - the problem seems to be that you are using the Puma Ruby/Rack web server and have switched on Puma’s preload feature. It seems that Puma’s preload feature doesn’t play well with the Ruby Tracker’s event emitter initialization.

I’d talk to the Puma expert within your organization to understand why this could be. If you have any specific questions about how the Ruby Tracker operates to help debug this, let us know.