/// <summary>
 /// Register a Histogram metric named "Owin.PostAndPutRequestsSize" on the size of the POST and PUT requests
 /// </summary>
 /// <param name="metricName">Name of the metric.</param>
 public OwinRequestMetricsConfig WithPostAndPutRequestSizeHistogram(string metricName = "Post & Put Request Size")
 {
     var metricsMiddleware = new PostAndPutRequestSizeHistogramMiddleware(this.metricsContext, metricName, this.ignoreRequestPathPatterns);
     middlewareRegistration(metricsMiddleware);
     return this;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Register a Histogram metric named "Owin.PostAndPutRequestsSize" on the size of the POST and PUT requests
 /// </summary>
 /// <param name="metricName">Name of the metric.</param>
 public OwinMetricsConfig RegisterPostAndPutRequestSizeHistogram(string metricName = "PostAndPutRequestsSize")
 {
     var metricsMiddleware = new PostAndPutRequestSizeHistogramMiddleware(metricsRegistry, Name(metricName));
     app.Use(metricsMiddleware);
     return this;
 }