Class: Foam::Otel::Ingest::InertMetricReader

Inherits:
Object
  • Object
show all
Defined in:
lib/foam/otel/ingest.rb

Overview

Satisfies MeterProvider#add_metric_reader's duck (it registers every instrument with reader.metric_store) with a stream-DISCARDING store — a killed tap never collects or exports anything and starts NO ticker thread (the real PeriodicMetricReader starts one in its constructor — exactly what R2 forbids for an inert instance).

Instance Method Summary collapse

Instance Method Details

#after_forkObject



307
# File 'lib/foam/otel/ingest.rb', line 307

def after_fork = nil

#collectObject



306
# File 'lib/foam/otel/ingest.rb', line 306

def collect = []

#force_flush(timeout: nil) ⇒ Object



308
# File 'lib/foam/otel/ingest.rb', line 308

def force_flush(timeout: nil) = EXPORT_SUCCESS

#metric_storeObject



305
# File 'lib/foam/otel/ingest.rb', line 305

def metric_store = @metric_store ||= InertMetricStore.new

#shutdown(timeout: nil) ⇒ Object



309
# File 'lib/foam/otel/ingest.rb', line 309

def shutdown(timeout: nil) = EXPORT_SUCCESS