Class: Appsignal::Probes::SidekiqProbe::Sidekiq6Adapter Private
- Defined in:
- lib/appsignal/probes/sidekiq.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .hostname ⇒ Object private
- .redis_info ⇒ Object private
Class Method Details
.hostname ⇒ 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.
32 33 34 35 36 37 38 |
# File 'lib/appsignal/probes/sidekiq.rb', line 32 def self.hostname host = nil ::Sidekiq.redis do |c| host = c.connection[:host] if c.respond_to? :connection end host end |
.redis_info ⇒ 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.
26 27 28 29 30 |
# File 'lib/appsignal/probes/sidekiq.rb', line 26 def self.redis_info return unless ::Sidekiq.respond_to?(:redis_info) ::Sidekiq.redis_info end |