1 write to Description
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\Instrument.cs (1)
73Description = description;
24 references to Description
Microsoft.AspNetCore.HeaderParsing.Tests (2)
HeaderParsingFeatureTests.cs (2)
222parseErrorsMetricCollector.Instrument?.Description); 225cacheAccessesMetricCollector.Instrument?.Description);
Microsoft.Extensions.Diagnostics (1)
Metrics\DebugConsoleMetricListener.cs (1)
37WriteLine($"{instrument.Meter.Name}-{instrument.Name} Started; Description: {instrument.Description}.");
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
TelemetryHealthChecksPublisherTests.cs (2)
138healthReportMetricCollector.Instrument?.Description); 141unhealthyHealthCheckMetricCollector.Instrument?.Description);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
Linux\LinuxCountersTests.cs (1)
114samples.Should().AllSatisfy(x => x.instrument.Description.Should().NotBeNullOrWhiteSpace());
Linux\LinuxUtilizationProviderTests.cs (2)
113Assert.All(samples, x => Assert.False(string.IsNullOrWhiteSpace(x.instrument.Description), $"Instrument '{x.instrument.Name}' has no description.")); 308Assert.All(samples, x => Assert.False(string.IsNullOrWhiteSpace(x.instrument.Description), $"Instrument '{x.instrument.Name}' has no description."));
Windows\WindowsContainerSnapshotProviderTests.cs (1)
624Assert.All(instruments, instrument => Assert.False(string.IsNullOrWhiteSpace(instrument.Description), $"Instrument '{instrument.Name}' has no description."));
Windows\WindowsCountersTests.cs (1)
61samples.Should().AllSatisfy(x => x.instrument.Description.Should().NotBeNullOrWhiteSpace());
Windows\WindowsSnapshotProviderTests.cs (1)
209Assert.All(instruments, instrument => Assert.False(string.IsNullOrWhiteSpace(instrument.Description), $"Instrument '{instrument.Name}' has no description."));
Microsoft.Gen.Metrics.Generated.Tests (9)
MetricTests.Ext.Description.cs (9)
27Assert.Equal("Number of requests processed.", collector.Instrument.Description); 45Assert.Equal("Number of requests processed, by dimension.", collector.Instrument.Description); 65Assert.Equal("Strongly-typed counter.", collector.Instrument.Description); 81Assert.Equal("Generic counter.", collector.Instrument.Description); 96Assert.Equal("Duration of the operation.", collector.Instrument.Description); 114Assert.Equal("Strongly-typed histogram.", collector.Instrument.Description); 130Assert.Equal("Contains \"quotes\", a backslash \\, {braces}\tand a\nnew line.", collector.Instrument.Description); 143Assert.Null(collector.Instrument.Description); 156Assert.Null(collector.Instrument.Description);
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Metrics\Meter.cs (1)
532instrument.Description == description && DiagnosticsHelper.CompareTags(instrument.Tags as List<KeyValuePair<string, object?>>, tags))
System\Diagnostics\Metrics\MetricsEventSource.cs (3)
492beginInstrumentMeasurements: (i, state) => Parent.BeginInstrumentReporting(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description, 494endInstrumentMeasurements: (i, state) => Parent.EndInstrumentReporting(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description, 496instrumentPublished: (i, state) => Parent.InstrumentPublished(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description,