Class: Riffer::Config::Metrics
- Inherits:
-
Object
- Object
- Riffer::Config::Metrics
- Defined in:
- lib/riffer/config.rb
Overview
Metrics-related global configuration, independent of config.tracing so a host can run one signal without the other.
Instance Attribute Summary collapse
-
#backend ⇒ Object
The backend riffer routes measurements through; defaults to
nil, a no-op. -
#enabled ⇒ Object
Whether riffer records OTEL metric instruments; defaults to
true, a no-op until a host wires an OTEL metrics SDK.
Instance Method Summary collapse
-
#initialize ⇒ Metrics
constructor
– : () -> void.
Constructor Details
#initialize ⇒ Metrics
– : () -> void
122 123 124 125 |
# File 'lib/riffer/config.rb', line 122 def initialize @enabled = true @backend = nil end |
Instance Attribute Details
#backend ⇒ Object
The backend riffer routes measurements through; defaults to nil, a no-op. Riffer auto-detects no backend; assigning one is opt-in.
118 119 120 |
# File 'lib/riffer/config.rb', line 118 def backend @backend end |
#enabled ⇒ Object
Whether riffer records OTEL metric instruments; defaults to true, a no-op until a host wires an OTEL metrics SDK.
114 115 116 |
# File 'lib/riffer/config.rb', line 114 def enabled @enabled end |