예제 #1
0
 public void OnHttpMetrics(HttpMetrics oldMetrics, HttpMetrics newMetrics)
 {
     _outboundRequestsStarted.IncTo(newMetrics.RequestsStarted);
     _outboundRequestsFailed.IncTo(newMetrics.RequestsFailed);
     _outboundCurrentRequests.Set(newMetrics.CurrentRequests);
     _outboundCurrentHttp11Connections.Set(newMetrics.CurrentHttp11Connections);
     _outboundCurrentHttp20Connections.Set(newMetrics.CurrentHttp20Connections);
     _outboundHttp11RequestQueueDuration.Observe(newMetrics.Http11RequestsQueueDuration.TotalMilliseconds);
     _outboundHttp20RequestQueueDuration.Observe(newMetrics.Http20RequestsQueueDuration.TotalMilliseconds);
 }
 public CaptureMiddleware(RequestDelegate next, HttpMetrics metrics, PathCapture pathCapture)
     : base(next, metrics)
 {
     this.pathCapture = pathCapture;
 }