Module: ElasticAPM::Spies::SidekiqSpy::Ext Private
- Defined in:
- lib/elastic_apm/spies/sidekiq.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #start ⇒ Object private
- #terminate ⇒ Object private
Instance Method Details
#start ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
70 71 72 73 74 75 76 77 78 79 |
# 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 ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
81 82 83 84 85 |
# File 'lib/elastic_apm/spies/sidekiq.rb', line 81 def terminate super.tap do ElasticAPM.stop end end |