ve-global / ve-metrics-statsdclient-csharp

Wrappers and utilities for VE statsd infrastructure
MIT License
2 stars 7 forks source link

MVC Filter only add the stopwatch once #12

Closed andyroyle closed 7 years ago

andyroyle commented 7 years ago

It seems that calling RenderAction() re-uses the filterContext for the MVC actionFilters, which results in a duplicate key exception.

If we need to track explicitly child-requests then maybe we should be using a stack for storing multiple stopwatches, but the simple approach is just to perform a .Contains() check.