Class: Observability::Collector
- Inherits:
-
Object
- Object
- Observability::Collector
- Extended by:
- Configurability, Loggability, Pluggability
- Defined in:
- lib/observability/collector.rb
Defined Under Namespace
Class Method Summary collapse
-
.configured_type ⇒ Object
Create an instance of the configured type of collector and return it.
-
.inherited(subclass) ⇒ Object
Let subclasses be inherited.
-
.start ⇒ Object
Start a collector of the specified
type, returning only when it shuts down.
Instance Method Summary collapse
-
#start ⇒ Object
Start the collector.
Class Method Details
.configured_type ⇒ Object
Create an instance of the configured type of collector and return it.
43 44 45 |
# File 'lib/observability/collector.rb', line 43 def self::configured_type return self.create( self.type ) end |
.inherited(subclass) ⇒ Object
Let subclasses be inherited
36 37 38 39 |
# File 'lib/observability/collector.rb', line 36 def self::inherited( subclass ) super subclass.public_class_method( :new ) end |
.start ⇒ Object
Start a collector of the specified type, returning only when it shuts down.
49 50 51 52 |
# File 'lib/observability/collector.rb', line 49 def self::start instance = self.configured_type instance.start end |
Instance Method Details
#start ⇒ Object
Start the collector.
56 57 58 |
# File 'lib/observability/collector.rb', line 56 def start # No-op end |