LeanSentry monitors and diagnoses your applications out of the box, without the need to instrument them or load any third party dlls.
However, you CAN optionally enhance some aspects of LeanSentry monitoring by adding our LeanSentry.ApplicationMonitoring.dll plugin into your web application. These enhancements include:
- Automatically track more slow operations, including HTTP requests to remote services, MVC actions and views, and the ability to add custom application trackers.
- Enable several Performance score rules that proactively measure application scalability and thread performance.
- Link IIS 500 errors to underlying ASP.NET exceptions.
- Control how LeanSentry sees your traffic, including ignoring specific requests, and changing the logged client IP or changing the logged url.
Note: For more details on our ApplicationMonitoring.dll, visit our article here.
1. Download the libraries
IMPORTANT:
- Please double-check that the libraries are digitally signed by LeanServer LLC before using them in your applications.
- Follow the instructions below to determine which libraries you will need.
- Test your application with the library first before deploying to production.
Download the libraries here >>
2. Deploy the libraries
Because the libraries are configured to work in multiple environments, you may need to use a slightly different combination of libraries depending on your application.
Copy the appropriate DLLs to your application's /BIN directory. Use the table below to select the right configuration:
APPLICATION VERSION | LIBRARIES TO USE |
---|---|
.NET 2.0/3.5 (NO MVC) |
LeanSentry.ApplicationMonitoring.dll |
Additional configuration:
Call Monitoring.Start() in global.asax:
[C#]
protected void Application_Start() { // Start operation tracking LeanSentry.ApplicationMonitoring.Monitoring.Start(); }
[VB.NET]
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) // Start operation tracking LeanSentry.ApplicationMonitoring.Monitoring.Start(); End Sub
APPLICATION VERSION | LIBRARIES TO USE |
---|---|
.NET 4.0+ (NO MVC) |
LeanSentry.ApplicationMonitoring.dll LeanSentry.ApplicationMonitoring.Automatic.dll |
Additional configuration: NONE, tracking is enabled automatically.
APPLICATION VERSION | LIBRARIES TO USE |
---|---|
.NET 4.0 + ASP.NET MVC 3.0+ |
LeanSentry.ApplicationMonitoring.dll LeanSentry.ApplicationMonitoring.Automatic.MVC.dll |
Additional configuration:
TIP: You specify your application's target MVC version in web.config in the newVersion attribute:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="YOUR MVC VERSION" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
3. Push your application to production
And that's it! To read more about the benefits of the ApplicationMonitoring.dll, visit our article here.
Comments
0 comments
Please sign in to leave a comment.