Meter
Meter is the class responsible for creating and tracking the Instruments.
Gets the Meter name.
Returns the Meter scope object.
Returns the tags associated with the Meter.
Gets the Meter version.
Initialize a new instance of the Meter using the MeterOptions.
Initializes a new instance of Meter using the specified meter name.
Initializes a new instance of Meter using the specified meter name and version.
public Meter(string name, string version, IEnumerable<KeyValuePair<string, object>> tags, object scope = null)
Initializes a new instance of the Meter using the meter name and version.
public Counter<T> CreateCounter<T>(string name, string unit = null, string description = null) where T : struct
Create a metrics Counter object.
public Counter<T> CreateCounter<T>(string name, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
Creates a metrics Counter object.
Creates a Gauge instrument, which can be used to record non-additive values.
public Gauge<T> CreateGauge<T>(string name, string unit = null, string description = null, IEnumerable<KeyValuePair<string, object>> tags = null) where T : struct
Create a metrics Gauge object.
Histogram is an Instrument which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.
public Histogram<T> CreateHistogram<T>(string name, string unit, string description) where T : struct
Creates a Histogram, which is an instrument that can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentiles.
public Histogram<T> CreateHistogram<T>(string name, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
Creates an Histogram instance, which is an Instrument that can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.
public Histogram<T> CreateHistogram<T>(string name, string unit = null, string description = null, IEnumerable<KeyValuePair<string, object>> tags = null, InstrumentAdvice<T> advice = null) where T : struct
Histogram is an Instrument which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.
public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<T> observeValue, string unit = null, string description = null) where T : struct
Creates an ObservableCounter, which is an instrument that reports monotonically increasing values when the instrument is being observed.
public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<T> observeValue, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
Creates an ObservableCounter instance, which is an Instrument that reports monotonically increasing value(s) when the instrument is being observed.
public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<Measurement<T>> observeValue, string unit = null, string description = null) where T : struct
Creates an ObservableCounter, which is an instrument that reports monotonically increasing values when the instrument is being observed.
public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<Measurement<T>> observeValue, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
Creates an ObservableCounter instance, which is an Instrument that reports monotonically increasing value(s) when the instrument is being observed.
public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string unit = null, string description = null) where T : struct
Creates an ObservableCounter, which is an instrument that reports monotonically increasing values when the instrument is being observed.
public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
Creates an ObservableCounter instance, which is an Instrument that reports monotonically increasing value(s) when the instrument is being observed.
public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<T> observeValue, string unit = null, string description = null) where T : struct
Creates an ObservableGauge, which is an asynchronous instrument that reports non-additive values when the instrument is being observed.
public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<T> observeValue, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
ObservableGauge is an asynchronous Instrument which reports non-additive value(s) (e.g. the room temperature - it makes no sense to report the temperature value from multiple rooms and sum them up) when the instrument is being observed.
public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<Measurement<T>> observeValue, string unit = null, string description = null) where T : struct
Creates an ObservableGauge, which is an asynchronous instrument that reports non-additive values when the instrument is being observed.
public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<Measurement<T>> observeValue, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
ObservableGauge is an asynchronous Instrument which reports non-additive value(s) (e.g. the room temperature - it makes no sense to report the temperature value from multiple rooms and sum them up) when the instrument is being observed.
public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string unit = null, string description = null) where T : struct
Creates an ObservableGauge, which is an asynchronous instrument that reports non-additive values when the instrument is being observed.
public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
Creates an ObservableGauge instance, which is an asynchronous Instrument that reports non-additive value(s) when the instrument is being observed.
public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<T> observeValue, string unit = null, string description = null) where T : struct
Creates an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument that reports increasing or decreasing values when the instrument is being observed.
public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<T> observeValue, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
Create an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument which reports increasing or decreasing value(s) when the instrument is being observed.
public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<Measurement<T>> observeValue, string unit = null, string description = null) where T : struct
Creates an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument that reports increasing or decreasing values when the instrument is being observed.
public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<Measurement<T>> observeValue, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
Create an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument which reports increasing or decreasing value(s) when the instrument is being observed.
public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string unit = null, string description = null) where T : struct
Creates an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument that reports increasing or decreasing values when the instrument is being observed.
public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
Create an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument which reports increasing or decreasing value(s) when the instrument is being observed.
public UpDownCounter<T> CreateUpDownCounter<T>(string name, string unit = null, string description = null) where T : struct
Create a metrics UpDownCounter object.
public UpDownCounter<T> CreateUpDownCounter<T>(string name, string unit, string description, IEnumerable<KeyValuePair<string, object>> tags) where T : struct
Create a metrics UpDownCounter object.
Dispose the Meter which will disable all instruments created by this meter.
Dispose the Meter which will disable all instruments created by this meter.