Compono.Metrics.MeterFactoryTestingExtensions.RecordObservableInstruments(thisSystem.Diagnostics.Metrics.IMeterFactory)
Compono.Metrics¶
Compono.Metrics.MeterFactoryTestingExtensions¶
MeterFactoryTestingExtensions.RecordObservableInstruments(this IMeterFactory) Method¶
Polls this factory's observable instruments: calls this factory's listener's System.Diagnostics.Metrics.MeterListener.RecordObservableInstruments. Callbacks run synchronously on the calling thread and only for this factory's observable instruments; each observation appends measurements, so calling it twice records twice. Reads never poll. A no-op before the first Create(MeterOptions) or after disposal.
public static void RecordObservableInstruments(this System.Diagnostics.Metrics.IMeterFactory factory);
Parameters¶
factory System.Diagnostics.Metrics.IMeterFactory
The capturing factory.
Exceptions¶
System.InvalidOperationException
factory is not a CapturingMeterFactory.