module ElasticAPM::Spies::SidekiqSpy::Ext

@api private

Public Instance Methods

start() click to toggle source
Calls superclass method
# File lib/elastic_apm/spies/sidekiq.rb, line 70
def start
  super.tap do
    # Already running from Railtie if Rails
    if ElasticAPM.running?
      ElasticAPM.agent.config.logger = Sidekiq.logger
    else
      ElasticAPM.start
    end
  end
end
terminate() click to toggle source
Calls superclass method
# File lib/elastic_apm/spies/sidekiq.rb, line 81
def terminate
  super.tap do
    ElasticAPM.stop
  end
end