Instrument<T>
The base class for all non-observable instruments.
Gets the InstrumentAdvice<T> associated with the instrument.
Constructs a new instance of Instrument<T>.
Create the metrics instrument using the properties meter, name, description, and unit.
protected Instrument(Meter meter, string name, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags)
Initializes a new instance of the Instrument<T> class with the specified meter, name, description, and unit.
protected Instrument(Meter meter, string name, string unit = null, string description = null, IEnumerable<KeyValuePair<string, object>> tags = null, InstrumentAdvice<T> advice = null)
Constructs a new instance of Instrument<T>.
Records a measurement by notifying all MeterListener objects that are listening to this instrument.
Records a measurement by notifying all MeterListener objects that are listening to this instrument.
Records a measurement by notifying all MeterListener objects that are listening to this instrument.
protected void RecordMeasurement(T measurement, KeyValuePair<string, object> tag1, KeyValuePair<string, object> tag2)
Records a measurement by notifying all MeterListener objects that are listening to this instrument.
protected void RecordMeasurement(T measurement, KeyValuePair<string, object> tag1, KeyValuePair<string, object> tag2, KeyValuePair<string, object> tag3)
Records a measurement by notifying all MeterListener objects that are listening to this instrument.
Records a measurement by notifying all MeterListener objects that are listening to this instrument.