graphite-client icon indicating copy to clipboard operation
graphite-client copied to clipboard

Where to find WebMetricsPipeProvider

Open tkirill opened this issue 10 years ago • 0 comments

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.

tkirill avatar Sep 15 '15 12:09 tkirill