6 instantiations of ObservableCounter
System.Diagnostics.DiagnosticSource (6)
System\Diagnostics\Metrics\Meter.cs (6)
345
new
ObservableCounter
<T>(this, name, observeValue, unit, description, tags: null);
359
new
ObservableCounter
<T>(this, name, observeValue, unit, description, tags);
372
new
ObservableCounter
<T>(this, name, observeValue, unit, description, tags: null);
386
new
ObservableCounter
<T>(this, name, observeValue, unit, description, tags);
400
new
ObservableCounter
<T>(this, name, observeValues, unit, description, tags: null);
414
new
ObservableCounter
<T>(this, name, observeValues, unit, description, tags);
34 references to ObservableCounter
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Metrics\MetricCollectorTests.cs (1)
191
var
counter = meter.CreateObservableCounter<long>(CounterName, () =>
System.Diagnostics.DiagnosticSource (7)
System\Diagnostics\Metrics\AggregationManager.cs (1)
321
else if (genericDefType == typeof(
ObservableCounter
<>))
System\Diagnostics\Metrics\Meter.cs (6)
344
public
ObservableCounter
<T> CreateObservableCounter<T>(string name, Func<T> observeValue, string? unit = null, string? description = null) where T : struct =>
358
public
ObservableCounter
<T> CreateObservableCounter<T>(string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
371
public
ObservableCounter
<T> CreateObservableCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit = null, string? description = null) where T : struct =>
385
public
ObservableCounter
<T> CreateObservableCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
399
public
ObservableCounter
<T> CreateObservableCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit = null, string? description = null) where T : struct =>
413
public
ObservableCounter
<T> CreateObservableCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
System.Net.Quic (26)
System\Net\Quic\NetEventSource.Quic.Counters.cs (26)
20
public static readonly
ObservableCounter
<long> s_CONN_CREATED = s_meter.CreateObservableCounter<long>(
26
public static readonly
ObservableCounter
<long> s_CONN_HANDSHAKE_FAIL = s_meter.CreateObservableCounter<long>(
32
public static readonly
ObservableCounter
<long> s_CONN_APP_REJECT = s_meter.CreateObservableCounter<long>(
38
public static readonly
ObservableCounter
<long> s_CONN_LOAD_REJECT = s_meter.CreateObservableCounter<long>(
44
public static readonly
ObservableCounter
<long> s_CONN_RESUMED = s_meter.CreateObservableCounter<long>(
62
public static readonly
ObservableCounter
<long> s_CONN_PROTOCOL_ERRORS = s_meter.CreateObservableCounter<long>(
68
public static readonly
ObservableCounter
<long> s_CONN_NO_ALPN = s_meter.CreateObservableCounter<long>(
80
public static readonly
ObservableCounter
<long> s_PKTS_SUSPECTED_LOST = s_meter.CreateObservableCounter<long>(
86
public static readonly
ObservableCounter
<long> s_PKTS_DROPPED = s_meter.CreateObservableCounter<long>(
92
public static readonly
ObservableCounter
<long> s_PKTS_DECRYPTION_FAIL = s_meter.CreateObservableCounter<long>(
98
public static readonly
ObservableCounter
<long> s_UDP_RECV = s_meter.CreateObservableCounter<long>(
104
public static readonly
ObservableCounter
<long> s_UDP_SEND = s_meter.CreateObservableCounter<long>(
110
public static readonly
ObservableCounter
<long> s_UDP_RECV_BYTES = s_meter.CreateObservableCounter<long>(
116
public static readonly
ObservableCounter
<long> s_UDP_SEND_BYTES = s_meter.CreateObservableCounter<long>(
122
public static readonly
ObservableCounter
<long> s_UDP_RECV_EVENTS = s_meter.CreateObservableCounter<long>(
128
public static readonly
ObservableCounter
<long> s_UDP_SEND_CALLS = s_meter.CreateObservableCounter<long>(
134
public static readonly
ObservableCounter
<long> s_APP_SEND_BYTES = s_meter.CreateObservableCounter<long>(
140
public static readonly
ObservableCounter
<long> s_APP_RECV_BYTES = s_meter.CreateObservableCounter<long>(
158
public static readonly
ObservableCounter
<long> s_CONN_OPER_QUEUED = s_meter.CreateObservableCounter<long>(
164
public static readonly
ObservableCounter
<long> s_CONN_OPER_COMPLETED = s_meter.CreateObservableCounter<long>(
176
public static readonly
ObservableCounter
<long> s_WORK_OPER_QUEUED = s_meter.CreateObservableCounter<long>(
182
public static readonly
ObservableCounter
<long> s_WORK_OPER_COMPLETED = s_meter.CreateObservableCounter<long>(
188
public static readonly
ObservableCounter
<long> s_PATH_VALIDATED = s_meter.CreateObservableCounter<long>(
194
public static readonly
ObservableCounter
<long> s_PATH_FAILURE = s_meter.CreateObservableCounter<long>(
200
public static readonly
ObservableCounter
<long> s_SEND_STATELESS_RESET = s_meter.CreateObservableCounter<long>(
206
public static readonly
ObservableCounter
<long> s_SEND_STATELESS_RETRY = s_meter.CreateObservableCounter<long>(