I'm updating a ASP.NET Web API (.Net Framework 4.6.2) to include metrics using App.Metric nugets provided by the site below:
https://www.app-metrics.io/
Tried to run in a console app provided by the github site:
https://github.com/AppMetrics/Samples.V2
To make it work I had to do the following:
Again, its easy to do in a console but I want an out-of-the-box generated endpoints similar to the Asp.Net Core examples.. is it possible to do the same with ASP.NET Web API framework version?
You need to install App.Metrics.Extensions.Owin.WebApi nuget package and the follow this sample code to enable it on WebApi.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With