Metrics.NET icon indicating copy to clipboard operation
Metrics.NET copied to clipboard

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

Open mft25 opened this issue 10 years ago • 1 comments

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?

mft25 avatar Nov 12 '15 10:11 mft25

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

megrogan avatar Nov 12 '15 14:11 megrogan