etishor / Metrics.NET

The Metrics.NET library provides a way of instrumenting applications with custom metrics (timers, histograms, counters etc) that can be reported in various ways and can provide insights on what is happening inside a running application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Owin Adapter - group route based metrics when route contains parameter (REST)

mft25 opened this issue · comments

commented

I have method routes such as the following:
/api/customer/{id:int}

I want the route based metrics to be grouped, in the same way that they would be if I used the following format for the route (ie. including the parameters in the request rather than the path):
/api/customer/get?id={id:int}

I expect that some configuration would have to be passed (similar to the ignore patterns) so that requests matching a particular regular expression can be grouped.

Is this possible?

I have exactly the same problem. Without support for this it means choosing between Metrics.Net and RESTful APIs.