3 types derived from ObservableInstrument
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Metrics\ObservableCounter.cs (1)
16
public sealed class ObservableCounter<T> :
ObservableInstrument
<T> where T : struct
System\Diagnostics\Metrics\ObservableGauge.cs (1)
16
public sealed class ObservableGauge<T> :
ObservableInstrument
<T> where T : struct
System\Diagnostics\Metrics\ObservableUpDownCounter.cs (1)
16
public sealed class ObservableUpDownCounter<T> :
ObservableInstrument
<T> where T : struct
24 references to ObservableInstrument
Microsoft.Extensions.Diagnostics.Testing (4)
Metrics\MetricCollector.cs (4)
17
/// Collects the measurements published from an <see cref="Instrument{T}"/> or <see cref="
ObservableInstrument
{T}"/>.
60
/// <param name="instrument">The <see cref="
ObservableInstrument
{T}" /> to record measurements from.</param>
62
public MetricCollector(
ObservableInstrument
<T> instrument, TimeProvider? timeProvider = null)
274
if ((instrument is
ObservableInstrument
<T> or Instrument<T>) && instrumentPredicate(instrument))
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Metrics\MetricCollectorTests.cs (1)
20
Assert.Throws<ArgumentNullException>(() => new MetricCollector<long>((
ObservableInstrument
<long>)null!));
System.Diagnostics.DiagnosticSource (19)
System\Diagnostics\Metrics\Measurement.cs (1)
12
/// Observable instruments use this type when reporting current measurements from their <see cref="
ObservableInstrument
{T}.Observe()"/> implementation.
System\Diagnostics\Metrics\Meter.cs (18)
257
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
270
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
285
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" /></param>
298
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" /></param>
312
/// <param name="observeValues">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
325
/// <param name="observeValues">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
339
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
352
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
366
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" /></param>
379
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" /></param>
394
/// <param name="observeValues">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
407
/// <param name="observeValues">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
421
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
431
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
442
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
452
/// <param name="observeValue">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
463
/// <param name="observeValues">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
473
/// <param name="observeValues">The callback to call to get the measurements when the <see cref="
ObservableInstrument
{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>