Compono.Metrics.MeterFactoryTestingExtensions.GetMeasurements
Compono.Metrics¶
Compono.Metrics.MeterFactoryTestingExtensions¶
MeterFactoryTestingExtensions.GetMeasurements Method¶
| Overloads | |
|---|---|
| GetMeasurements<T>(this IMeterFactory, string) | Every measurement captured for instruments named instrumentName, across every meter, merged in capture order (ADR-0072 selection rule 7). A new list is returned on each call; later captures, ClearMeasurements(this IMeterFactory), and Dispose() never change a list already returned. |
| GetMeasurements<T>(this IMeterFactory, string, string) | Every measurement captured for instruments named instrumentName in the meter named meterName, merged in capture order. A new list is returned on each call. |
MeterFactoryTestingExtensions.GetMeasurements\<T>(this IMeterFactory, string) Method¶
Every measurement captured for instruments named instrumentName, across every meter, merged in capture order (ADR-0072 selection rule 7). A new list is returned on each call; later captures, ClearMeasurements(this IMeterFactory), and Dispose() never change a list already returned.
public static System.Collections.Generic.IReadOnlyList<Compono.Metrics.CapturedMeasurement<T>> GetMeasurements<T>(this System.Diagnostics.Metrics.IMeterFactory factory, string instrumentName)
where T : struct;
Type parameters¶
T
The measurement value type - one of the seven supported types.
Parameters¶
factory System.Diagnostics.Metrics.IMeterFactory
The capturing factory.
instrumentName System.String
The instrument name to match (ordinal, case-sensitive).
Returns¶
System.Collections.Generic.IReadOnlyList<Compono.Metrics.CapturedMeasurement<T>>
Exceptions¶
System.InvalidOperationException
factory is not a CapturingMeterFactory.
System.ArgumentException
instrumentName is null or empty; or T is not one of the seven supported measurement value types.
MeterFactoryTestingExtensions.GetMeasurements\<T>(this IMeterFactory, string, string) Method¶
Every measurement captured for instruments named instrumentName in the meter named meterName, merged in capture order. A new list is returned on each call.
public static System.Collections.Generic.IReadOnlyList<Compono.Metrics.CapturedMeasurement<T>> GetMeasurements<T>(this System.Diagnostics.Metrics.IMeterFactory factory, string meterName, string instrumentName)
where T : struct;
Type parameters¶
T
The measurement value type - one of the seven supported types.
Parameters¶
factory System.Diagnostics.Metrics.IMeterFactory
The capturing factory.
meterName System.String
The meter name to match (ordinal, case-sensitive).
instrumentName System.String
The instrument name to match (ordinal, case-sensitive).
Returns¶
System.Collections.Generic.IReadOnlyList<Compono.Metrics.CapturedMeasurement<T>>
Exceptions¶
System.InvalidOperationException
factory is not a CapturingMeterFactory.
System.ArgumentException
meterName or instrumentName is null or empty; or T is not one of the seven supported measurement value types.