Class: Riffer::Config::Metrics

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeMetrics

– : () -> void



122
123
124
125
# File 'lib/riffer/config.rb', line 122

def initialize
  @enabled = true
  @backend = nil
end

Instance Attribute Details

#backendObject

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

#enabledObject

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