System.Diagnostics.Metrics.Instrument
Base class of all metrics instrument classes
namespace System.Diagnostics.Metrics
{
public abstract class Instrument
{
public Meter Meter { get; }
public string Name { get; }
public string Description { get; }
public string Unit { get; }
public IEnumerable<KeyValuePair<string, object>> Tags { get; }
public bool Enabled { get; }
public virtual bool IsObservable { get; }
protected Instrument(Meter meter, string name);
protected Instrument(Meter meter, string name, string unit, string description);
protected Instrument(Meter meter, string name, string unit = null, string description = null, IEnumerable<KeyValuePair<string, object>> tags = null);
protected void Publish();
}
}