27 references to Instrument
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MetricCollector.cs (1)
148/// Gets the <see cref="Instrument"/> that is being recorded.
Microsoft.Extensions.Diagnostics.Testing.Tests (8)
Metrics\MetricCollectorTests.cs (8)
51Assert.Null(collector.Instrument); 59Assert.Equal(counter, collector.Instrument); 80Assert.Equal(counter, collector.Instrument); 104Assert.Equal(counter, collector.Instrument); 125Assert.Equal(counter, collector.Instrument); 151Assert.Equal(counter, collector.Instrument); 172Assert.Equal(counter, collector.Instrument); 212Assert.Equal(counter, collector.Instrument);
Microsoft.Gen.Metrics.Generated.Tests (18)
MetricTests.Ext.Unit.cs (18)
24Assert.NotNull(collector.Instrument); 25Assert.Equal("seconds", collector.Instrument.Unit); 40Assert.NotNull(collector.Instrument); 41Assert.Equal("milliseconds", collector.Instrument.Unit); 60Assert.NotNull(collector.Instrument); 61Assert.Equal("bytes", collector.Instrument.Unit); 80Assert.NotNull(collector.Instrument); 81Assert.Equal("requests", collector.Instrument.Unit); 102Assert.NotNull(collector.Instrument); 103Assert.Equal("s", collector.Instrument.Unit); 132Assert.NotNull(collector.Instrument); 133Assert.Equal("bytes", collector.Instrument.Unit); 157Assert.NotNull(collector.Instrument); 158Assert.Equal("meters", collector.Instrument.Unit); 174Assert.NotNull(collector.Instrument); 175Assert.Equal("microseconds", collector.Instrument.Unit); 190Assert.NotNull(collector.Instrument); 191Assert.Null(collector.Instrument.Unit);