Instrument<T>.RecordMeasurement Method

Definition

Overloads

RecordMeasurement(T)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

RecordMeasurement(T, KeyValuePair<String,Object>)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

RecordMeasurement(T, TagList)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

RecordMeasurement(T, ReadOnlySpan<KeyValuePair<String,Object>>)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

RecordMeasurement(T)

Source:
Instrument.common.cs
Source:
Instrument.common.cs
Source:
Instrument.common.cs
Source:
Instrument.common.cs
Source:
Instrument.common.cs

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

protected void RecordMeasurement (T measurement);

Parameters

measurement
T

The measurement value.

Applies to

.NET 9 and other versions
Product Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

RecordMeasurement(T, KeyValuePair<String,Object>)

Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

protected void RecordMeasurement (T measurement, System.Collections.Generic.KeyValuePair<string,object?> tag);

Parameters

measurement
T

The measurement value.

tag
KeyValuePair<String,Object>

A key-value pair tag associated with the measurement.

Applies to

.NET 9 and other versions
Product Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

RecordMeasurement(T, TagList)

Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

protected void RecordMeasurement (T measurement, in System.Diagnostics.TagList tagList);

Parameters

measurement
T

The measurement value.

tagList
TagList

The tags associated with the measurement.

Applies to

.NET 9 and other versions
Product Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

RecordMeasurement(T, ReadOnlySpan<KeyValuePair<String,Object>>)

Source:
Instrument.common.cs
Source:
Instrument.common.cs
Source:
Instrument.common.cs
Source:
Instrument.common.cs
Source:
Instrument.common.cs

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

protected void RecordMeasurement (T measurement, ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,object?>> tags);

Parameters

measurement
T

The measurement value.

tags
ReadOnlySpan<KeyValuePair<String,Object>>

A span of key-value pair tags associated with the measurement.

Applies to

.NET 9 and other versions
Product Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

protected void RecordMeasurement (T measurement, System.Collections.Generic.KeyValuePair<string,object?> tag1, System.Collections.Generic.KeyValuePair<string,object?> tag2);

Parameters

measurement
T

The measurement value.

tag1
KeyValuePair<String,Object>

A first key-value pair tag associated with the measurement.

tag2
KeyValuePair<String,Object>

A second key-value pair tag associated with the measurement.

Applies to

.NET 9 and other versions
Product Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs
Source:
Instrument.netcore.cs

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

protected void RecordMeasurement (T measurement, System.Collections.Generic.KeyValuePair<string,object?> tag1, System.Collections.Generic.KeyValuePair<string,object?> tag2, System.Collections.Generic.KeyValuePair<string,object?> tag3);

Parameters

measurement
T

The measurement value.

tag1
KeyValuePair<String,Object>

A first key-value pair tag associated with the measurement.

tag2
KeyValuePair<String,Object>

A second key-value pair tag associated with the measurement.

tag3
KeyValuePair<String,Object>

A third key-value pair tag associated with the measurement.

Applies to

.NET 9 and other versions
Product Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)