Class: Appsignal::Probes::SidekiqProbe::Sidekiq6Adapter
- Defined in:
- lib/appsignal/probes/sidekiq.rb
Class Method Summary collapse
Class Method Details
.hostname ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/appsignal/probes/sidekiq.rb', line 29 def self.hostname host = nil ::Sidekiq.redis do |c| host = c.connection[:host] if c.respond_to? :connection end host end |
.redis_info ⇒ Object
23 24 25 26 27 |
# File 'lib/appsignal/probes/sidekiq.rb', line 23 def self.redis_info return unless ::Sidekiq.respond_to?(:redis_info) ::Sidekiq.redis_info end |