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



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

def after_fork = nil

#collectObject



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

def collect = []

#force_flush(timeout: nil) ⇒ Object



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

def force_flush(timeout: nil) = EXPORT_SUCCESS

#metric_storeObject



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

def metric_store = @metric_store ||= InertMetricStore.new

#shutdown(timeout: nil) ⇒ Object



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

def shutdown(timeout: nil) = EXPORT_SUCCESS