class Observability::Collector
Public Class Methods
configured_type()
click to toggle source
Create an instance of the configured type of collector and return it.
# File lib/observability/collector.rb, line 42 def self::configured_type return self.create( self.type ) end
inherited( subclass )
click to toggle source
Let subclasses be inherited
Calls superclass method
# File lib/observability/collector.rb, line 35 def self::inherited( subclass ) super subclass.public_class_method( :new ) end
start()
click to toggle source
Start a collector of the specified type
, returning only when it shuts down.
# File lib/observability/collector.rb, line 48 def self::start instance = self.configured_type instance.start end
Public Instance Methods
start()
click to toggle source
Start the collector.
# File lib/observability/collector.rb, line 55 def start # No-op end