Class: Foam::Otel::Ingest::InertMetricReader
- Inherits:
-
Object
- Object
- Foam::Otel::Ingest::InertMetricReader
- 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
- #after_fork ⇒ Object
- #collect ⇒ Object
- #force_flush(timeout: nil) ⇒ Object
- #metric_store ⇒ Object
- #shutdown(timeout: nil) ⇒ Object
Instance Method Details
#after_fork ⇒ Object
307 |
# File 'lib/foam/otel/ingest.rb', line 307 def after_fork = nil |
#collect ⇒ Object
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_store ⇒ Object
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 |