4 types derived from Instrument
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Metrics\Counter.cs (1)
16
public sealed class Counter<T> :
Instrument
<T> where T : struct
System\Diagnostics\Metrics\Gauge.cs (1)
14
public sealed class Gauge<T> :
Instrument
<T> where T : struct
System\Diagnostics\Metrics\Histogram.cs (1)
16
public sealed class Histogram<T> :
Instrument
<T> where T : struct
System\Diagnostics\Metrics\UpDownCounter.cs (1)
15
public sealed class UpDownCounter<T> :
Instrument
<T> where T : struct
11 references to Instrument
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}"/>.
46
/// <param name="instrument">The <see cref="
Instrument
{T}" /> to record measurements from.</param>
48
public MetricCollector(
Instrument
<T> instrument, TimeProvider? timeProvider = null)
276
if ((instrument is ObservableInstrument<T> or
Instrument
<T>) && instrumentPredicate(instrument))
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Metrics\MetricCollectorTests.cs (1)
19
Assert.Throws<ArgumentNullException>(() => new MetricCollector<long>((
Instrument
<long>)null!));
System.Diagnostics.DiagnosticSource (6)
System\Diagnostics\Metrics\Instrument.common.cs (5)
10
/// <see cref="
Instrument
{T}"/> is the base class for all non-observable instruments.
24
/// Constructs a new instance of <see cref="
Instrument
{T}"/>.
34
/// Constructs a new instance of <see cref="
Instrument
{T}"/>.
47
/// Constructs a new instance of <see cref="
Instrument
{T}"/>.
61
/// Constructs a new instance of <see cref="
Instrument
{T}"/>.
System\Diagnostics\Metrics\InstrumentAdvice.cs (1)
10
/// Contains configuration settings advised to be used by metrics consumers when recording measurements for a given <see cref="
Instrument
{T}"/>.