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
Let subclasses be inherited
# File lib/observability/collector.rb, line 35
def self::inherited( subclass )
super
subclass.public_class_method( :new )
end
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
Start the collector.
# File lib/observability/collector.rb, line 55
def start
# No-op
end