52 references to new
Microsoft.AspNetCore.HeaderParsing.Tests (8)
HeaderParsingFeatureTests.cs (8)
43using var meter = new Meter(nameof(Parses_header)); 60using var meter = new Meter(nameof(Parses_multiple_headers)); 86using var meter = new Meter(nameof(Parses_with_late_binding)); 104using var meter = new Meter(nameof(TryParse_returns_false_on_header_not_found)); 117using var meter = new Meter(nameof(TryParse_returns_default_on_header_not_found)); 136using var meter = new Meter(nameof(TryParse_returns_false_on_error)); 160using var meter = new Meter(nameof(Dispose_resets_state_and_returns_to_pool)); 192using var meter = new Meter(nameof(CachingWorks));
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
TelemetryHealthChecksPublisherTests.cs (2)
86using var meter = new Meter(nameof(PublishAsync)); 131using var meter = new Meter(nameof(Ctor_ThrowsWhenOptionsValueNull));
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (12)
Linux\LinuxCountersTests.cs (1)
80using var meter = new Meter(nameof(LinuxNetworkMetrics));
Linux\LinuxUtilizationProviderTests.cs (3)
32using var meter = new Meter(nameof(Provider_Registers_Instruments)); 102using var meter = new Meter(nameof(Provider_Registers_Instruments_CgroupV2)); 170using var meter = new Meter(nameof(Provider_EmitsLogRecord));
Windows\WindowsContainerSnapshotProviderTests.cs (3)
42using var meter = new Meter(nameof(WindowsContainerSnapshotProvider)); 213using var meter = new Meter(nameof(SnapshotProvider_EmitsCpuMetrics)); 276using var meter = new Meter(nameof(SnapshotProvider_EmitsMemoryMetrics));
Windows\WindowsCountersTests.cs (2)
30using var meter = new Meter(nameof(WindowsCounters_Registers_Instruments)); 72using var meter = new Meter(nameof(WindowsCounters_Got_Unsuccessful));
Windows\WindowsSnapshotProviderTests.cs (3)
34using var meter = new Meter(nameof(BasicConstructor)); 80using var meter = new Meter(nameof(SnapshotProvider_EmitsCpuMetrics)); 115using var meter = new Meter(nameof(SnapshotProvider_EmitsMemoryMetrics));
Microsoft.Extensions.Diagnostics.Testing.Tests (23)
Metrics\MeasurementExtensionsTests.cs (11)
17using var meter = new Meter(Guid.NewGuid().ToString()); 42using var meter = new Meter(Guid.NewGuid().ToString()); 67using var meter = new Meter(Guid.NewGuid().ToString()); 95using var meter = new Meter(Guid.NewGuid().ToString()); 126using var meter = new Meter(Guid.NewGuid().ToString()); 143using var meter = new Meter(Guid.NewGuid().ToString()); 160using var meter = new Meter(Guid.NewGuid().ToString()); 177using var meter = new Meter(Guid.NewGuid().ToString()); 194using var meter = new Meter(Guid.NewGuid().ToString()); 211using var meter = new Meter(Guid.NewGuid().ToString()); 228using var meter = new Meter(Guid.NewGuid().ToString());
Metrics\MetricCollectorTests.cs (12)
21Assert.Throws<ArgumentNullException>(() => new MetricCollector<long>(new Meter(Guid.NewGuid().ToString()), null!)); 25Assert.Throws<ArgumentException>(() => new MetricCollector<long>(new Meter(Guid.NewGuid().ToString()), string.Empty)); 33using var meter = new Meter(Guid.NewGuid().ToString()); 48using var meter = new Meter(Guid.NewGuid().ToString()); 94using var meter = new Meter(Guid.NewGuid().ToString()); 188using var meter = new Meter(Guid.NewGuid().ToString()); 241using var meter = new Meter(Guid.NewGuid().ToString()); 279using var meter = new Meter(Guid.NewGuid().ToString()); 305using var meter = new Meter(Guid.NewGuid().ToString()); 337using var meter = new Meter(Guid.NewGuid().ToString()); 352using var meter = new Meter(Guid.NewGuid().ToString()); 390using var meter = new Meter(Guid.NewGuid().ToString());
Microsoft.Gen.Metrics.Generated.Tests (3)
MetricTests.cs (3)
25_meter = new Meter(_meterName); 208using var meter2 = new Meter(_meterName + "2"); 227using var meter2 = new Meter(_meterName);
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\RuntimeMetrics.cs (1)
16private static readonly Meter s_meter = new(MeterName);
System.Net.Http (1)
System\Net\Http\Metrics\MetricsHandler.cs (1)
154: base("System.Net.Http")
System.Net.NameResolution (1)
System\Net\NameResolutionMetrics.cs (1)
13private static readonly Meter s_meter = new("System.Net.NameResolution");
System.Net.Quic (1)
System\Net\Quic\NetEventSource.Quic.Counters.cs (1)
17private static readonly Meter s_meter = new Meter("Private.InternalDiagnostics.System.Net.Quic.MsQuic");