|
Instrumenting a DotNet-based Web Site / Web Application
You can use the Eg_RUM.dll file that eG provides to instrument a DotNet-based web site/web application that dynamically generates web pages. To perform this instrumentation, do the following:
First, download the Eg_RUM.dll to the system hosting the web application. For this, click the Download button alongside Eg_RUM.dll in the To instrument your html pages use the eG javascript agent section.
Once the download is complete, make sure that the Eg_RUM.dll is included in the target web application, and add an assembly reference.
Next, in an editor, open the Views\Shared_Layout.cshtml file for ASP .NET MVC or the Default.master file for ASP .NET WebForms.
To the Views\Shared_Layout.cshtml file, copy the following line of code:
@Html.Raw(Eg.RUM.Header()) <!--HtmlHelper.Raw prevents RUM markup from being html-encoded.-->;
To the Default.master file, copy the following line of code:
<%= Eg.RUM.Header() %>
Save the respective files.
Restart the target web application.
Test your web application locally and view the page source in your browser. The page markup should include < !-- RUM Header -->.
Once this is done, then the auto-injected JavaScript will track requests to each of the web pages that use the Shared_Layouts.html or Default.master files (as the case may be).
|