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



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

def after_fork = nil

#collectObject



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

def collect = []

#force_flush(timeout: nil) ⇒ Object



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

def force_flush(timeout: nil) = EXPORT_SUCCESS

#metric_storeObject



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

def metric_store = @metric_store ||= InertMetricStore.new

#shutdown(timeout: nil) ⇒ Object



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

def shutdown(timeout: nil) = EXPORT_SUCCESS