コード例 #1
0
 /// <summary>
 /// Registers a Meter metric named "Owin.Errors" that records the rate at witch unhanded errors occurred while 
 /// processing Nancy requests.
 /// </summary>
 /// <param name="metricName">Name of the metric.</param>
 public OwinMetricsConfig RegisterErrorsMeter(string metricName = "Errors")
 {
     var metricsMiddleware = new ErrorMeterMiddleware(metricsRegistry, Name(metricName));
     app.Use(metricsMiddleware);
     return this;
 }
コード例 #2
0
 /// <summary>
 /// Registers a Meter metric named "Owin.Errors" that records the rate at witch unhanded errors occurred while 
 /// processing Nancy requests.
 /// </summary>
 /// <param name="metricName">Name of the metric.</param>
 public OwinRequestMetricsConfig WithErrorsMeter(string metricName = "Errors")
 {
     var metricsMiddleware = new ErrorMeterMiddleware(this.metricsContext, metricName, this.ignoreRequestPathPatterns);
     middlewareRegistration(metricsMiddleware);
     return this;
 }
コード例 #3
0
 /// <summary>
 /// Registers a Meter metric named "Owin.Errors" that records the rate at witch unhanded errors occurred while 
 /// processing Nancy requests.
 /// </summary>
 /// <param name="metricName">Name of the metric.</param>
 public OwinRequestMetricsConfig RegisterErrorsMeter(string metricName = "Errors")
 {
     var metricsMiddleware = new ErrorMeterMiddleware(metricsRegistry, Name(metricName));
     middlewareRegistration(metricsMiddleware);
     return this;
 }