57 references to Instrument
Microsoft.AspNetCore.HeaderParsing.Tests (4)
HeaderParsingFeatureTests.cs (4)
222parseErrorsMetricCollector.Instrument?.Description); 225cacheAccessesMetricCollector.Instrument?.Description); 236Assert.Equal("{parse_error}", parseErrorsCollector.Instrument?.Unit); 237Assert.Equal("{cache_access}", cacheAccessesCollector.Instrument?.Unit);
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (4)
TelemetryHealthChecksPublisherTests.cs (4)
138healthReportMetricCollector.Instrument?.Description); 141unhealthyHealthCheckMetricCollector.Instrument?.Description); 162Assert.Equal("{report}", healthReportCollector.Instrument?.Unit); 163Assert.Equal("{unhealthy_check}", unhealthyHealthCheckCollector.Instrument?.Unit);
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 (40)
MetricTests.Ext.Description.cs (22)
26Assert.NotNull(collector.Instrument); 27Assert.Equal("Number of requests processed.", collector.Instrument.Description); 28Assert.Null(collector.Instrument.Unit); 44Assert.NotNull(collector.Instrument); 45Assert.Equal("Number of requests processed, by dimension.", collector.Instrument.Description); 46Assert.Equal("{request}", collector.Instrument.Unit); 64Assert.NotNull(collector.Instrument); 65Assert.Equal("Strongly-typed counter.", collector.Instrument.Description); 66Assert.Null(collector.Instrument.Unit); 80Assert.NotNull(collector.Instrument); 81Assert.Equal("Generic counter.", collector.Instrument.Description); 95Assert.NotNull(collector.Instrument); 96Assert.Equal("Duration of the operation.", collector.Instrument.Description); 97Assert.Equal("ms", collector.Instrument.Unit); 113Assert.NotNull(collector.Instrument); 114Assert.Equal("Strongly-typed histogram.", collector.Instrument.Description); 129Assert.NotNull(collector.Instrument); 130Assert.Equal("Contains \"quotes\", a backslash \\, {braces}\tand a\nnew line.", collector.Instrument.Description); 142Assert.NotNull(collector.Instrument); 143Assert.Null(collector.Instrument.Description); 155Assert.NotNull(collector.Instrument); 156Assert.Null(collector.Instrument.Description);
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);