Instrument
Base class of all Metrics Instrument classes
Gets the instrument description.
Checks if there is any listeners for this instrument.
A property tells if the instrument is an observable instrument.
Gets the Meter which created the instrument.
Gets the instrument name.
Gets the instrument unit of measurements.
Protected constructor to initialize the common instrument properties like the meter, name, description, and unit.
All classes extending Instrument need to call this constructor when constructing object of the extended class.
Publish is activating the instrument to start recording measurements and to allow listeners to start listening to such measurements.