244 references to GetMeasurementSnapshot
InMemory.FunctionalTests (80)
BadHttpRequestTests.cs (7)
186
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
249
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(),
272
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(),
360
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(reason, m.Tags));
433
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
502
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
560
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
ChunkedRequestTests.cs (1)
902
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.UnexpectedEndOfRequestContent, m.Tags));
ConnectionLimitTests.cs (2)
146
Assert.Collection(rejectedConnections.
GetMeasurementSnapshot
(), actions);
153
var measurements = connectionDuration.
GetMeasurementSnapshot
();
ConnectionMiddlewareTests.cs (1)
173
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m =>
Http2\TlsTests.cs (1)
80
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.InsufficientTlsVersion, m.Tags));
KeepAliveTimeoutTests.cs (6)
53
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.KeepAliveTimeout, m.Tags));
86
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
131
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
176
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
201
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.KeepAliveTimeout, m.Tags));
244
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
KestrelMetricsTests.cs (36)
78
Assert.Empty(connectionDuration.
GetMeasurementSnapshot
());
79
Assert.Collection(activeConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
94
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m =>
99
Assert.Collection(activeConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
100
Assert.Collection(queuedConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
153
Assert.Empty(connectionDuration.
GetMeasurementSnapshot
());
154
Assert.Empty(activeConnections.
GetMeasurementSnapshot
());
155
Assert.Empty(queuedConnections.
GetMeasurementSnapshot
());
196
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m =>
260
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m =>
311
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m =>
366
Assert.Empty(connectionDuration.
GetMeasurementSnapshot
());
367
Assert.Collection(activeConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
382
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m =>
388
Assert.Collection(activeConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
389
Assert.Collection(queuedConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
425
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m =>
471
Assert.Empty(connectionDuration.
GetMeasurementSnapshot
());
472
Assert.Collection(activeConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
482
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m =>
486
Assert.Collection(activeConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
487
Assert.Collection(queuedConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
514
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => AssertDuration(m, "127.0.0.1", localPort: 0, "tcp", "ipv4", KestrelMetrics.Http11));
515
Assert.Collection(activeConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
516
Assert.Collection(currentUpgradedRequests.
GetMeasurementSnapshot
(), m => Assert.Equal(1, m.Value), m => Assert.Equal(-1, m.Value));
601
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => AssertDuration(m, "127.0.0.1", localPort: 0, "tcp", "ipv4", KestrelMetrics.Http2));
663
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => AssertDuration(m, "127.0.0.1", localPort: 0, "tcp", "ipv4", KestrelMetrics.Http2, error: KestrelMetrics.GetErrorType(ConnectionEndReason.AppShutdownTimeout)));
739
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => AssertDuration(m, "127.0.0.1", localPort: 0, "tcp", "ipv4", KestrelMetrics.Http2, "1.2"));
740
Assert.Collection(activeConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
741
Assert.Collection(queuedConnections.
GetMeasurementSnapshot
(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
743
Assert.Collection(queuedRequests.
GetMeasurementSnapshot
(),
749
Assert.Collection(tlsHandshakeDuration.
GetMeasurementSnapshot
(), m =>
755
Assert.Collection(activeTlsHandshakes.
GetMeasurementSnapshot
(), m => Assert.Equal(1, m.Value), m => Assert.Equal(-1, m.Value));
832
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => AssertDuration(m, "127.0.0.1", localPort: 0, "tcp", "ipv4", KestrelMetrics.Http2));
904
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m =>
909
Assert.Collection(tlsHandshakeDuration.
GetMeasurementSnapshot
(), m =>
MaxRequestBodySizeTests.cs (2)
155
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.MaxRequestBodySizeExceeded, m.Tags));
409
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.MaxRequestBodySizeExceeded, m.Tags));
MaxRequestLineSizeTests.cs (2)
52
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
80
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.InvalidRequestLine, m.Tags));
RequestBodyTimeoutTests.cs (3)
93
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.MinRequestBodyDataRate, m.Tags));
146
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.ServerTimeout, m.Tags));
220
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.MinRequestBodyDataRate, m.Tags));
RequestHeaderLimitsTests.cs (4)
50
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
87
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
115
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.MaxRequestHeadersTotalSizeExceeded, m.Tags));
144
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.MaxRequestHeaderCountExceeded, m.Tags));
RequestHeadersTimeoutTests.cs (4)
49
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.RequestHeadersTimeout, m.Tags));
85
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
114
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.RequestHeadersTimeout, m.Tags));
148
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.RequestHeadersTimeout, m.Tags));
RequestTests.cs (2)
1229
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.UnexpectedEndOfRequestContent, m.Tags));
2282
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.TlsNotSupported, m.Tags));
ResponseTests.cs (9)
210
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.WriteCanceled, m.Tags));
708
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
988
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.ResponseContentLengthMismatch, m.Tags));
1026
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.ResponseContentLengthMismatch, m.Tags));
2466
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
2668
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
2713
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.ErrorAfterStartingResponse, m.Tags));
2758
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.ErrorAfterStartingResponse, m.Tags));
2841
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.AbortedByApp, m.Tags));
Interop.FunctionalTests (2)
Http2\Http2RequestTests.cs (1)
141
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(),
Http3\Http3RequestTests.cs (1)
102
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(),
Microsoft.AspNetCore.Diagnostics.Tests (14)
DeveloperExceptionPageMiddlewareTest.cs (2)
613
requestDurationCollector.
GetMeasurementSnapshot
(),
620
Assert.Collection(requestExceptionCollector.
GetMeasurementSnapshot
(),
ExceptionHandlerMiddlewareTest.cs (9)
226
Assert.Empty(diagnosticsRequestExceptionCollector.
GetMeasurementSnapshot
());
246
Assert.Collection(diagnosticsRequestExceptionCollector.
GetMeasurementSnapshot
(),
268
Assert.Collection(diagnosticsRequestExceptionCollector.
GetMeasurementSnapshot
(),
293
Assert.Collection(diagnosticsRequestExceptionCollector.
GetMeasurementSnapshot
(),
345
requestDurationCollector.
GetMeasurementSnapshot
(),
353
Assert.Collection(requestExceptionCollector.
GetMeasurementSnapshot
(),
412
requestDurationCollector.
GetMeasurementSnapshot
(),
420
Assert.Collection(requestExceptionCollector.
GetMeasurementSnapshot
(),
444
Assert.Collection(diagnosticsRequestExceptionCollector.
GetMeasurementSnapshot
(),
ExceptionHandlerTest.cs (3)
1035
instrumentCollector.
GetMeasurementSnapshot
(),
1105
instrumentCollector.
GetMeasurementSnapshot
(),
1167
instrumentCollector.
GetMeasurementSnapshot
(),
Microsoft.AspNetCore.Hosting.Tests (29)
HostingApplicationDiagnosticsTests.cs (19)
83
Assert.Collection(activeRequestsCollector1.
GetMeasurementSnapshot
(),
86
Assert.Collection(activeRequestsCollector2.
GetMeasurementSnapshot
(),
89
Assert.Collection(requestDurationCollector1.
GetMeasurementSnapshot
(),
91
Assert.Collection(requestDurationCollector2.
GetMeasurementSnapshot
(),
114
Assert.Collection(activeRequestsCollector1.
GetMeasurementSnapshot
(),
119
Assert.Collection(activeRequestsCollector2.
GetMeasurementSnapshot
(),
124
Assert.Collection(requestDurationCollector1.
GetMeasurementSnapshot
(),
127
Assert.Collection(requestDurationCollector2.
GetMeasurementSnapshot
(),
250
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
266
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
309
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
325
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
338
Assert.Collection(requestDurationCollector.
GetMeasurementSnapshot
(),
369
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
385
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
398
Assert.Empty(requestDurationCollector.
GetMeasurementSnapshot
());
424
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
440
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
453
Assert.Empty(requestDurationCollector.
GetMeasurementSnapshot
());
HostingMetricsTests.cs (10)
41
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
44
Assert.Collection(requestDurationCollector.
GetMeasurementSnapshot
(),
53
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
58
Assert.Collection(requestDurationCollector.
GetMeasurementSnapshot
(),
68
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
74
Assert.Collection(requestDurationCollector.
GetMeasurementSnapshot
(),
80
Assert.Collection(activeRequestsCollector.
GetMeasurementSnapshot
(),
87
Assert.Collection(requestDurationCollector.
GetMeasurementSnapshot
(),
149
Assert.Empty(currentRequestsCollector.
GetMeasurementSnapshot
());
150
Assert.Empty(requestDurationCollector.
GetMeasurementSnapshot
());
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (4)
1122
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => AssertDuration(m, "normal_closure", "long_polling"));
1123
Assert.Collection(currentConnections.
GetMeasurementSnapshot
(), m => AssertTransport(m, 1, "long_polling"), m => AssertTransport(m, -1, "long_polling"));
1161
Assert.Empty(currentConnections.
GetMeasurementSnapshot
());
1162
Assert.Empty(connectionDuration.
GetMeasurementSnapshot
());
Microsoft.AspNetCore.RateLimiting.Tests (22)
RateLimitingMetricsTests.cs (22)
50
Assert.Empty(currentLeaseRequestsCollector.
GetMeasurementSnapshot
());
51
Assert.Empty(leaseRequestDurationCollector.
GetMeasurementSnapshot
());
52
Assert.Empty(currentRequestsQueuedCollector.
GetMeasurementSnapshot
());
53
Assert.Empty(queuedRequestDurationCollector.
GetMeasurementSnapshot
());
54
Assert.Collection(rateLimitingRequestsCollector.
GetMeasurementSnapshot
(),
96
Assert.Collection(currentLeaseRequestsCollector.
GetMeasurementSnapshot
(),
98
Assert.Empty(leaseRequestDurationCollector.
GetMeasurementSnapshot
());
107
Assert.Collection(currentLeaseRequestsCollector.
GetMeasurementSnapshot
(),
110
Assert.Collection(leaseRequestDurationCollector.
GetMeasurementSnapshot
(),
112
Assert.Empty(currentRequestsQueuedCollector.
GetMeasurementSnapshot
());
113
Assert.Empty(queuedRequestDurationCollector.
GetMeasurementSnapshot
());
114
Assert.Collection(rateLimitingRequestsCollector.
GetMeasurementSnapshot
(),
162
Assert.Empty(currentLeaseRequestsCollector.
GetMeasurementSnapshot
());
163
Assert.Collection(leaseRequestDurationCollector.
GetMeasurementSnapshot
(),
221
Assert.Collection(currentRequestsQueuedCollector.
GetMeasurementSnapshot
(),
223
Assert.Empty(queuedRequestDurationCollector.
GetMeasurementSnapshot
());
231
Assert.Collection(currentRequestsQueuedCollector.
GetMeasurementSnapshot
(),
234
Assert.Collection(queuedRequestDurationCollector.
GetMeasurementSnapshot
(),
297
Assert.Empty(currentRequestsQueuedCollector.
GetMeasurementSnapshot
());
298
Assert.Empty(queuedRequestDurationCollector.
GetMeasurementSnapshot
());
306
Assert.Empty(currentRequestsQueuedCollector.
GetMeasurementSnapshot
());
307
Assert.Collection(queuedRequestDurationCollector.
GetMeasurementSnapshot
(),
Microsoft.AspNetCore.Routing.Tests (4)
RoutingMetricsTests.cs (4)
47
Assert.Collection(routingMatchAttemptsCollector.
GetMeasurementSnapshot
(),
81
Assert.Collection(routingMatchAttemptsCollector.
GetMeasurementSnapshot
(),
108
Assert.Collection(routingMatchAttemptsCollector.
GetMeasurementSnapshot
(),
132
Assert.Collection(routingMatchAttemptsCollector.
GetMeasurementSnapshot
(),
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherTests.cs (1)
116
var unhealthyCounters = unhealthyMetricCollector.
GetMeasurementSnapshot
();
Microsoft.Extensions.Diagnostics.Testing.Tests (39)
Metrics\MeasurementExtensionsTests.cs (11)
25
var fullSnap = collector.
GetMeasurementSnapshot
();
50
var fullSnap = collector.
GetMeasurementSnapshot
();
75
var fullSnap = collector.
GetMeasurementSnapshot
();
103
var fullSnap = collector.
GetMeasurementSnapshot
();
135
var fullSnap = collector.
GetMeasurementSnapshot
();
152
var fullSnap = collector.
GetMeasurementSnapshot
();
169
var fullSnap = collector.
GetMeasurementSnapshot
();
186
var fullSnap = collector.
GetMeasurementSnapshot
();
203
var fullSnap = collector.
GetMeasurementSnapshot
();
220
var fullSnap = collector.
GetMeasurementSnapshot
();
237
var fullSnap = collector.
GetMeasurementSnapshot
();
Metrics\MetricCollectorTests.cs (28)
52
Assert.Empty(collector.
GetMeasurementSnapshot
());
63
Assert.Single(collector.
GetMeasurementSnapshot
());
64
Assert.Same(collector.
GetMeasurementSnapshot
().Last(), collector.LastMeasurement);
73
Assert.Equal(2, collector.
GetMeasurementSnapshot
().Count);
74
Assert.Same(collector.
GetMeasurementSnapshot
().Last(), collector.LastMeasurement);
81
Assert.Empty(collector.
GetMeasurementSnapshot
());
98
Assert.Empty(collector.
GetMeasurementSnapshot
());
108
Assert.Single(collector.
GetMeasurementSnapshot
());
109
Assert.Same(collector.
GetMeasurementSnapshot
().Last(), collector.LastMeasurement);
118
Assert.Equal(2, collector.
GetMeasurementSnapshot
().Count);
119
Assert.Same(collector.
GetMeasurementSnapshot
().Last(), collector.LastMeasurement);
126
Assert.Empty(collector.
GetMeasurementSnapshot
());
145
Assert.Empty(collector.
GetMeasurementSnapshot
());
155
Assert.Single(collector.
GetMeasurementSnapshot
());
156
Assert.Same(collector.
GetMeasurementSnapshot
().Last(), collector.LastMeasurement);
165
Assert.Equal(2, collector.
GetMeasurementSnapshot
().Count);
166
Assert.Same(collector.
GetMeasurementSnapshot
().Last(), collector.LastMeasurement);
173
Assert.Empty(collector.
GetMeasurementSnapshot
());
206
Assert.Empty(collector.
GetMeasurementSnapshot
());
216
Assert.Single(collector.
GetMeasurementSnapshot
());
217
Assert.Same(collector.
GetMeasurementSnapshot
().Last(), collector.LastMeasurement);
226
Assert.Equal(2, collector.
GetMeasurementSnapshot
().Count);
227
Assert.Same(collector.
GetMeasurementSnapshot
().Last(), collector.LastMeasurement);
361
Assert.Throws<ObjectDisposedException>(() => collector.
GetMeasurementSnapshot
());
398
var snap = collector.
GetMeasurementSnapshot
();
400
Assert.Equal(3, collector.
GetMeasurementSnapshot
().Count);
414
snap = collector.
GetMeasurementSnapshot
(true);
416
Assert.Empty(collector.
GetMeasurementSnapshot
());
Microsoft.Gen.Metrics.Generated.Tests (42)
MetricTests.cs (28)
55
var measurements = collector.
GetMeasurementSnapshot
();
69
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
82
var measurements = collector.
GetMeasurementSnapshot
();
96
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
110
var measurements = collector.
GetMeasurementSnapshot
();
124
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
138
var measurements = collector.
GetMeasurementSnapshot
();
152
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
170
var measurements = collector.
GetMeasurementSnapshot
();
194
var measurements = collector.
GetMeasurementSnapshot
();
251
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
257
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
264
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
276
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
282
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
289
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
301
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
314
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
327
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
340
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
361
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
405
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
428
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
451
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
504
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
548
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
571
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
593
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
MetricTests.Ext.cs (14)
41
var measurements = collector.
GetMeasurementSnapshot
();
53
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
66
var measurements = collector.
GetMeasurementSnapshot
();
79
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
93
var measurements = collector.
GetMeasurementSnapshot
();
106
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
120
var measurements = collector.
GetMeasurementSnapshot
();
133
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
168
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
190
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
212
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
261
var measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
283
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
305
measurement = Assert.Single(collector.
GetMeasurementSnapshot
());
Sockets.FunctionalTests (7)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
627
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
727
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.AbortedByApp, m.Tags));
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (5)
256
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));
462
var measurement = connectionDuration.
GetMeasurementSnapshot
().First();
600
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.MinResponseDataRate, m.Tags));
848
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.Equal(ConnectionEndReason.MinResponseDataRate, m.Tags));
1089
Assert.Collection(connectionDuration.
GetMeasurementSnapshot
(), m => MetricsAssert.NoError(m.Tags));