This repository has been merged with the Gibraltar.Agent Repository and is now maintained there.
This agent adds Loupe to your ASP.NET MVC 4 web site to automatically record performance
and health information for your MVC and Web API application. If you don't need
to modify the source code just download the latest Loupe Agent for ASP.NET MVC.
It extends the Loupe Agent so you can
use any viewer for Loupe to review the agent's information
You can install it directly from nuget here
To activate the agent you will need to register the relevant filters in your Global.asax.cs file or related initialization sequence. An example would be:
using Gibraltar.Agent;
using Gibraltar.Agent.Web.Mvc.Filters;
protected void Application_Start()
{
Log.StartSession(); //Prompt the Loupe Agent to start immediately
//Register the three filters
GlobalConfiguration.Configuration.Filters.Add(new WebApiRequestMonitorAttribute());
GlobalFilters.Filters.Add(new MvcRequestMonitorAttribute());
GlobalFilters.Filters.Add(new UnhandledExceptionAttribute());
}This project is designed for use with Visual Studio 2012 with NuGet package restore enabled. When you build it the first time it will retrieve dependencies from NuGet.
Feel free to branch this project and contribute a pull request to the development branch. If your changes are incorporated into the master version they'll be published out to NuGet for everyone to use!