With the .NET agent, you can add Browser monitoring instrumentation to your webpages. Before you use Browser with your .NET agent, refer to the .NET agent release notes, and make sure you have the installed the latest .NET agent release.
This feature is not available for asp.net core applications whether they are monitored by the .NET Framework or Core agent.
text/html and also has
<head> tag within the page.
HttpModule that modifies the page using HTTP response filters before streaming the content to the user.
The first time you enable auto-instrumentation, you may need to clean your
asp.net cache directory so that aspx pages are recompiled. Use the following command:
With this injection, previously functioning pages may stop working if a
content-type is not set correctly. To correct, review and update the
content-types in your app or disable auto-instrumentation.
If you cannot enable auto-instrumentation, you can still include the Browser agent manually by using the New Relic .NET agent API and including appropriate code in your pages.
To download the
NewRelic.Api.agent.dll, re-run the installation and reference the
- From the New Relic .NET agent directory, select the New Relic.Net agent section, then select API Assembly.
- NuGet: Install and reference the .dll by running
To set up your web application to call the New Relic .NET agent API, add a reference to NewRelic.Api.Agent.dll to your project.
Optional: If you are modifying the deployed application directory on the web server, copy NewRelic.Api.Agent.dll into the application's bin directory.
Call the API in your
<head>tag. If a meta-tag with the
X-UA-COMPATIBLE http-equivattribute exists, set it after that meta tag.
To disable instrumentation:
Follow the troubleshooting procedures if you are unable to view any Browser timing data.
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.