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