178 references to MetricCollector
Aspire.Confluent.Kafka.Tests (22)
MetricsTests.cs (22)
47
MetricCollector<long> collectorConsumerQueueMessageCount = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.consumer.queue.message_count");
48
MetricCollector<long> collectorProducerQueueMessageCount = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.producer.queue.message_count");
49
MetricCollector<long> collectorProducerQueueSize = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.producer.queue.size");
50
MetricCollector<long> collectorNetworkTx = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.network.tx");
51
MetricCollector<long> collectorNetworkTransmitted = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.network.transmitted");
52
MetricCollector<long> collectorNetworkRx = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.network.rx");
53
MetricCollector<long> collectorNetworkReceived = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.network.received");
54
MetricCollector<long> collectorMessageTx = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.publish.messages");
55
MetricCollector<long> collectorMessageTransmitted = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.message.transmitted");
56
MetricCollector<long> collectorMessageRx = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.receive.messages");
57
MetricCollector<long> collectorMessageReceived = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.message.received");
164
MetricCollector<long> collectorConsumerQueueMessageCount = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.consumer.queue.message_count");
165
MetricCollector<long> collectorProducerQueueMessageCount = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.producer.queue.message_count");
166
MetricCollector<long> collectorProducerQueueSize = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.producer.queue.size");
167
MetricCollector<long> collectorNetworkTx = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.network.tx");
168
MetricCollector<long> collectorNetworkTransmitted = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.network.transmitted");
169
MetricCollector<long> collectorNetworkRx = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.network.rx");
170
MetricCollector<long> collectorNetworkReceived = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.network.received");
171
MetricCollector<long> collectorMessageTx = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.publish.messages");
172
MetricCollector<long> collectorMessageTransmitted = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.message.transmitted");
173
MetricCollector<long> collectorMessageRx = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.receive.messages");
174
MetricCollector<long> collectorMessageReceived = new
MetricCollector
<long>(meterFactory, "Aspire.Confluent.Kafka", "messaging.kafka.message.received");
InMemory.FunctionalTests (74)
BadHttpRequestTests.cs (7)
161
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
235
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
257
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
341
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
388
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
454
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
529
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
ChunkedRequestTests.cs (1)
853
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
ConnectionLimitTests.cs (2)
106
using var rejectedConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.rejected_connections");
107
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
ConnectionMiddlewareTests.cs (1)
156
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
Http2\TlsTests.cs (1)
39
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
KeepAliveTimeoutTests.cs (6)
28
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
60
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
93
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
138
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
183
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
208
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
KestrelMetricsTests.cs (30)
61
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
62
using var activeConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.active_connections");
63
using var queuedConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.queued_connections");
137
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
138
using var activeConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.active_connections");
139
using var queuedConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.queued_connections");
165
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
207
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
272
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
340
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
341
using var activeConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.active_connections");
342
using var queuedConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.queued_connections");
396
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
454
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
455
using var activeConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.active_connections");
456
using var queuedConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.queued_connections");
496
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
497
using var activeConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.active_connections");
498
using var currentUpgradedRequests = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.upgraded_connections");
533
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
610
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
677
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
678
using var activeConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.active_connections");
679
using var queuedConnections = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.queued_connections");
680
using var queuedRequests = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.queued_requests");
681
using var tlsHandshakeDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.tls_handshake.duration");
682
using var activeTlsHandshakes = new
MetricCollector
<long>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.active_tls_handshakes");
769
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
849
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
850
using var tlsHandshakeDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.tls_handshake.duration");
MaxRequestBodySizeTests.cs (2)
113
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
366
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
MaxRequestLineSizeTests.cs (2)
32
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
63
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
RequestBodyTimeoutTests.cs (3)
23
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
100
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
153
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
RequestHeaderLimitsTests.cs (4)
28
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
65
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
96
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
125
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
RequestHeadersTimeoutTests.cs (4)
27
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
56
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
94
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
121
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
RequestTests.cs (2)
1157
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
2259
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
ResponseTests.cs (9)
145
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
673
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
950
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
995
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
2419
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
2622
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
2675
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
2720
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
2819
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
Interop.FunctionalTests (2)
Http2\Http2RequestTests.cs (1)
120
using var connectionDuration = new
MetricCollector
<double>(meterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
Http3\Http3RequestTests.cs (1)
83
using var connectionDuration = new
MetricCollector
<double>(meterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
Microsoft.AspNetCore.Diagnostics.Tests (14)
DeveloperExceptionPageMiddlewareTest.cs (2)
578
using var requestDurationCollector = new
MetricCollector
<double>(meterFactory, "Microsoft.AspNetCore.Hosting", "http.server.request.duration");
579
using var requestExceptionCollector = new
MetricCollector
<long>(meterFactory, DiagnosticsMetrics.MeterName, "aspnetcore.diagnostics.exceptions");
ExceptionHandlerMiddlewareTest.cs (9)
217
using var diagnosticsRequestExceptionCollector = new
MetricCollector
<long>(meterFactory, DiagnosticsMetrics.MeterName, "aspnetcore.diagnostics.exceptions");
240
using var diagnosticsRequestExceptionCollector = new
MetricCollector
<long>(meterFactory, DiagnosticsMetrics.MeterName, "aspnetcore.diagnostics.exceptions");
262
using var diagnosticsRequestExceptionCollector = new
MetricCollector
<long>(meterFactory, DiagnosticsMetrics.MeterName, "aspnetcore.diagnostics.exceptions");
287
using var diagnosticsRequestExceptionCollector = new
MetricCollector
<long>(meterFactory, DiagnosticsMetrics.MeterName, "aspnetcore.diagnostics.exceptions");
305
using var requestDurationCollector = new
MetricCollector
<double>(meterFactory, "Microsoft.AspNetCore.Hosting", "http.server.request.duration");
306
using var requestExceptionCollector = new
MetricCollector
<long>(meterFactory, DiagnosticsMetrics.MeterName, "aspnetcore.diagnostics.exceptions");
368
using var requestDurationCollector = new
MetricCollector
<double>(meterFactory, "Microsoft.AspNetCore.Hosting", "http.server.request.duration");
369
using var requestExceptionCollector = new
MetricCollector
<long>(meterFactory, DiagnosticsMetrics.MeterName, "aspnetcore.diagnostics.exceptions");
438
using var diagnosticsRequestExceptionCollector = new
MetricCollector
<long>(meterFactory, DiagnosticsMetrics.MeterName, "aspnetcore.diagnostics.exceptions");
ExceptionHandlerTest.cs (3)
995
using var instrumentCollector = new
MetricCollector
<double>(meterFactory, "Microsoft.AspNetCore.Hosting", "http.server.request.duration");
1049
using var instrumentCollector = new
MetricCollector
<double>(meterFactory, "Microsoft.AspNetCore.Hosting", "http.server.request.duration");
1119
using var instrumentCollector = new
MetricCollector
<double>(meterFactory, "Microsoft.AspNetCore.Hosting", "http.server.request.duration");
Microsoft.AspNetCore.Hosting.Tests (19)
HostingApplicationDiagnosticsTests.cs (13)
61
using var activeRequestsCollector1 = new
MetricCollector
<long>(testMeterFactory1, HostingMetrics.MeterName, "http.server.active_requests");
62
using var activeRequestsCollector2 = new
MetricCollector
<long>(testMeterFactory2, HostingMetrics.MeterName, "http.server.active_requests");
63
using var requestDurationCollector1 = new
MetricCollector
<double>(testMeterFactory1, HostingMetrics.MeterName, "http.server.request.duration");
64
using var requestDurationCollector2 = new
MetricCollector
<double>(testMeterFactory2, HostingMetrics.MeterName, "http.server.request.duration");
216
using var activeRequestsCollector = new
MetricCollector
<long>(testMeterFactory, HostingMetrics.MeterName, "http.server.active_requests");
217
using var requestDurationCollector = new
MetricCollector
<double>(testMeterFactory, HostingMetrics.MeterName, "http.server.request.duration");
235
using var activeRequestsCollector = new
MetricCollector
<long>(testMeterFactory, HostingMetrics.MeterName, "http.server.active_requests");
293
using var activeRequestsCollector = new
MetricCollector
<long>(testMeterFactory, HostingMetrics.MeterName, "http.server.active_requests");
294
using var requestDurationCollector = new
MetricCollector
<double>(testMeterFactory, HostingMetrics.MeterName, "http.server.request.duration");
353
using var activeRequestsCollector = new
MetricCollector
<long>(testMeterFactory, HostingMetrics.MeterName, "http.server.active_requests");
354
using var requestDurationCollector = new
MetricCollector
<double>(testMeterFactory, HostingMetrics.MeterName, "http.server.request.duration");
408
using var activeRequestsCollector = new
MetricCollector
<long>(testMeterFactory, HostingMetrics.MeterName, "http.server.active_requests");
409
using var requestDurationCollector = new
MetricCollector
<double>(testMeterFactory, HostingMetrics.MeterName, "http.server.request.duration");
HostingMetricsTests.cs (6)
28
using var requestDurationCollector = new
MetricCollector
<double>(meterFactory, HostingMetrics.MeterName, "http.server.request.duration");
29
using var activeRequestsCollector = new
MetricCollector
<long>(meterFactory, HostingMetrics.MeterName, "http.server.active_requests");
140
using var requestDurationCollector = new
MetricCollector
<double>(meterFactory, HostingMetrics.MeterName, "http.server.request.duration");
141
using var currentRequestsCollector = new
MetricCollector
<long>(meterFactory, HostingMetrics.MeterName, "http.server.active_requests");
162
using var requestDurationCollector = new
MetricCollector
<double>(meterFactory, HostingMetrics.MeterName, "http.server.request.duration");
163
using var currentRequestsCollector = new
MetricCollector
<long>(meterFactory, HostingMetrics.MeterName, "http.server.active_requests");
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (4)
1094
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, HttpConnectionsMetrics.MeterName, "signalr.server.connection.duration");
1095
using var currentConnections = new
MetricCollector
<long>(testMeterFactory, HttpConnectionsMetrics.MeterName, "signalr.server.active_connections");
1150
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, HttpConnectionsMetrics.MeterName, "signalr.server.connection.duration");
1151
using var currentConnections = new
MetricCollector
<long>(testMeterFactory, HttpConnectionsMetrics.MeterName, "signalr.server.active_connections");
Microsoft.AspNetCore.RateLimiting.Tests (25)
RateLimitingMetricsTests.cs (25)
38
using var leaseRequestDurationCollector = new
MetricCollector
<double>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.request_lease.duration");
39
using var currentLeaseRequestsCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.active_request_leases");
40
using var currentRequestsQueuedCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.queued_requests");
41
using var queuedRequestDurationCollector = new
MetricCollector
<double>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.request.time_in_queue");
42
using var rateLimitingRequestsCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.requests");
85
using var leaseRequestDurationCollector = new
MetricCollector
<double>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.request_lease.duration");
86
using var currentLeaseRequestsCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.active_request_leases");
87
using var currentRequestsQueuedCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.queued_requests");
88
using var queuedRequestDurationCollector = new
MetricCollector
<double>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.request.time_in_queue");
89
using var rateLimitingRequestsCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.requests");
149
using var leaseRequestDurationCollector = new
MetricCollector
<double>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.request_lease.duration");
150
using var currentLeaseRequestsCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.active_request_leases");
151
using var currentRequestsQueuedCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.queued_requests");
152
using var queuedRequestDurationCollector = new
MetricCollector
<double>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.request.time_in_queue");
153
using var rateLimitingRequestsCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.requests");
200
using var leaseRequestDurationCollector = new
MetricCollector
<double>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.request_lease.duration");
201
using var currentLeaseRequestsCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.active_request_leases");
202
using var currentRequestsQueuedCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.queued_requests");
203
using var queuedRequestDurationCollector = new
MetricCollector
<double>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.request.time_in_queue");
204
using var rateLimitingRequestsCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.requests");
291
using var leaseRequestDurationCollector = new
MetricCollector
<double>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.request_lease.duration");
292
using var currentLeaseRequestsCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.active_request_leases");
293
using var currentRequestsQueuedCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.queued_requests");
294
using var queuedRequestDurationCollector = new
MetricCollector
<double>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.request.time_in_queue");
295
using var rateLimitingRequestsCollector = new
MetricCollector
<long>(meterFactory, RateLimitingMetrics.MeterName, "aspnetcore.rate_limiting.requests");
Microsoft.AspNetCore.Routing.Tests (4)
RoutingMetricsTests.cs (4)
38
using var routingMatchAttemptsCollector = new
MetricCollector
<long>(meterFactory, RoutingMetrics.MeterName, "aspnetcore.routing.match_attempts");
72
using var routingMatchAttemptsCollector = new
MetricCollector
<long>(meterFactory, RoutingMetrics.MeterName, "aspnetcore.routing.match_attempts");
99
using var routingMatchAttemptsCollector = new
MetricCollector
<long>(meterFactory, RoutingMetrics.MeterName, "aspnetcore.routing.match_attempts");
123
using var routingMatchAttemptsCollector = new
MetricCollector
<long>(meterFactory, RoutingMetrics.MeterName, "aspnetcore.routing.match_attempts");
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Metrics\MetricCollectorTests.cs (6)
23
Assert.Throws<ArgumentNullException>(() => new
MetricCollector
<long>(null, null!, "Hello"));
26
Assert.Throws<ArgumentException>(() => new
MetricCollector
<long>(null, string.Empty, "Hello"));
27
Assert.Throws<ArgumentException>(() => new
MetricCollector
<long>(null, "Hello", string.Empty));
37
Assert.Throws<InvalidOperationException>(() => new
MetricCollector
<Guid>(null, meter.Name, "Counter"));
142
using var collector = new
MetricCollector
<long>(scope, meter.Name, counter.Name, timeProvider);
143
using var collector2 = new
MetricCollector
<long>(new object(), meter.Name, counter.Name, timeProvider);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
117
using var metricCollector = new
MetricCollector
<int>(null, "Polly", "resilience.polly.strategy.events");
Sockets.FunctionalTests (7)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
589
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
681
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (5)
204
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
431
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
505
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
760
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");
1023
using var connectionDuration = new
MetricCollector
<double>(testMeterFactory, "Microsoft.AspNetCore.Server.Kestrel", "kestrel.connection.duration");