We want to measure execution time of one MVC action. It seems like we need WebMetricsPipeProvider but it isn't included in any available nuget package. So how we intended to use it?
Currently we use custom ActionFilter which effectively copies WebMetricsPipeProvider:
- Call
StaticMetricsPipeProvider.Instance.Start in OnActionExecuting and store StaticMetricsPipeProvider.Current in HttpContext.Current.Items.
- Call
StaticMetricsPipeProvider.Instance.Stop in OnActionExecuted.
We want to measure execution time of one MVC action. It seems like we need
WebMetricsPipeProviderbut it isn't included in any available nuget package. So how we intended to use it?Currently we use custom
ActionFilterwhich effectively copiesWebMetricsPipeProvider:StaticMetricsPipeProvider.Instance.StartinOnActionExecutingand storeStaticMetricsPipeProvider.CurrentinHttpContext.Current.Items.StaticMetricsPipeProvider.Instance.StopinOnActionExecuted.