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