1 write to Name
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\Meter.cs (1)
80Name = name ?? throw new ArgumentNullException(nameof(name));
48 references to Name
Interop.FunctionalTests (1)
Http2\Http2RequestTests.cs (1)
49instrument.Meter.Name == "Microsoft.AspNetCore.Server.Kestrel" &&
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionHandlerMiddlewareTest.cs (1)
223Assert.Equal(DiagnosticsMetrics.MeterName, meter.Name);
Microsoft.AspNetCore.Hosting.Tests (4)
HostingApplicationDiagnosticsTests.cs (1)
189if (i.Meter.Scope == testMeterFactory && i.Meter.Name == HostingMetrics.MeterName && i.Name == "http.server.request.duration")
HostingMetricsTests.cs (3)
32Assert.Equal(HostingMetrics.MeterName, meter.Name); 130Assert.Equal(HostingMetrics.MeterName, meter.Name); 166Assert.Equal(HostingMetrics.MeterName, meter.Name);
Microsoft.AspNetCore.Routing.Tests (4)
RoutingMetricsTests.cs (4)
44Assert.Equal(RoutingMetrics.MeterName, meter.Name); 78Assert.Equal(RoutingMetrics.MeterName, meter.Name); 105Assert.Equal(RoutingMetrics.MeterName, meter.Name); 129Assert.Equal(RoutingMetrics.MeterName, meter.Name);
Microsoft.Extensions.Diagnostics (5)
Metrics\DebugConsoleMetricListener.cs (3)
37WriteLine($"{instrument.Meter.Name}-{instrument.Name} Started; Description: {instrument.Description}."); 45WriteLine($"{instrument.Meter.Name}-{instrument.Name} Stopped."); 64WriteLine($"{instrument.Meter.Name}-{instrument.Name} {measurement} {instrument.Unit}");
Metrics\ListenerSubscription.cs (2)
194if (!instrument.Meter.Name.AsSpan().StartsWith(prefix, StringComparison.OrdinalIgnoreCase) || 195!instrument.Meter.Name.AsSpan().EndsWith(suffix, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Diagnostics.Abstractions (11)
Metrics\InstrumentRule.cs (3)
15/// <para>- MeterName, either an exact match, or the longest prefix match. See <see cref="Meter.Name">Meter.Name</see>.</para> 20/// <param name="meterName">The <see cref="Meter.Name">Meter.Name</see> or prefix.</param> 28/// Gets the <see cref="Meter.Name">Meter.Name</see>, either an exact match or the longest prefix match. Only full segment matches are considered.
Metrics\MetricsBuilderExtensions.Rules.cs (8)
19/// <param name="meterName">The <see cref="Meter.Name"/> or prefix. A null value matches all meters.</param> 28/// <param name="meterName">The <see cref="Meter.Name"/> or prefix. A null value matches all meters.</param> 41/// <param name="meterName">The <see cref="Meter.Name"/> or prefix. A null value matches all meters.</param> 50/// <param name="meterName">The <see cref="Meter.Name"/> or prefix. A null value matches all meters.</param> 63/// <param name="meterName">The <see cref="Meter.Name"/> or prefix. A null value matches all meters.</param> 72/// <param name="meterName">The <see cref="Meter.Name"/> or prefix. A null value matches all meters.</param> 85/// <param name="meterName">The <see cref="Meter.Name"/> or prefix. A null value matches all meters.</param> 94/// <param name="meterName">The <see cref="Meter.Name"/> or prefix. A null value matches all meters.</param>
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Linux\LinuxUtilizationProviderTests.cs (1)
206Assert.Equal(ResourceUtilizationInstruments.MeterName, meter.Name);
Windows\WindowsContainerSnapshotProviderTests.cs (1)
345Assert.Equal(ResourceUtilizationInstruments.MeterName, meter.Name);
Windows\WindowsSnapshotProviderTests.cs (1)
169Assert.Equal(ResourceUtilizationInstruments.MeterName, meter.Name);
Microsoft.Extensions.Diagnostics.Testing (2)
Metrics\MetricCollector.cs (2)
90Initialize(instrument => Equals(instrument.Meter.Scope, meterScope) && instrument.Meter.Name == meterName && instrument.Name == instrumentName); 342? new(nameof(MetricCollector<T>), $"The metric collector instance for instrument '{_instrument.Name}' of meter '{_instrument.Meter.Name}' has been disposed.")
Microsoft.Extensions.Diagnostics.Testing.Tests (3)
Metrics\MetricCollectorTests.cs (3)
37Assert.Throws<InvalidOperationException>(() => new MetricCollector<Guid>(null, meter.Name, "Counter")); 142using var collector = new MetricCollector<long>(scope, meter.Name, counter.Name, timeProvider); 143using var collector2 = new MetricCollector<long>(new object(), meter.Name, counter.Name, timeProvider);
Microsoft.Extensions.Resilience.PerformanceTests (1)
MetricsUtil.cs (1)
18if (instrument.Meter.Name is "Polly")
System.Diagnostics.DiagnosticSource (13)
System\Diagnostics\Metrics\AggregationManager.cs (3)
91Include(i => i.Meter.Name.Equals(meterName, StringComparison.OrdinalIgnoreCase)); 101Include(i => i.Meter.Name.StartsWith(meterNamePrefix, StringComparison.OrdinalIgnoreCase)); 106Include(i => i.Meter.Name.Equals(meterName, StringComparison.OrdinalIgnoreCase)
System\Diagnostics\Metrics\Meter.cs (2)
44Debug.Assert(Name is not null); 75Debug.Assert(Name is not null);
System\Diagnostics\Metrics\MetricsEventSource.cs (8)
465beginInstrumentMeasurements: (i, state) => Parent.BeginInstrumentReporting(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description, 467endInstrumentMeasurements: (i, state) => Parent.EndInstrumentReporting(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description, 469instrumentPublished: (i, state) => Parent.InstrumentPublished(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description, 705Log.CounterRateValuePublished(sessionId, instrument.Meter.Name, instrument.Meter.Version, instrument.Name, instrument.Unit, Helpers.FormatTags(stats.Labels), 710Log.UpDownCounterRateValuePublished(sessionId, instrument.Meter.Name, instrument.Meter.Version, instrument.Name, instrument.Unit, Helpers.FormatTags(stats.Labels), 716Log.GaugeValuePublished(sessionId, instrument.Meter.Name, instrument.Meter.Version, instrument.Name, instrument.Unit, Helpers.FormatTags(stats.Labels), 721Log.GaugeValuePublished(sessionId, instrument.Meter.Name, instrument.Meter.Version, instrument.Name, instrument.Unit, Helpers.FormatTags(stats.Labels), 726Log.HistogramValuePublished(sessionId, instrument.Meter.Name, instrument.Meter.Version, instrument.Name, instrument.Unit, Helpers.FormatTags(stats.Labels), FormatQuantiles(histogramStats.Quantiles),