Custom instrumentation with the New Relic Browser Agent
Blog post from New Relic
The blog post discusses the benefits and process of using the New Relic browser agent npm package to customize browser monitoring features without the complexities of maintaining a forked repository. It explains how developers can import the package into their client-side applications, selectively deploy features, and incorporate the agent into existing JavaScript build processes. The post provides detailed instructions on setting up a browser application in New Relic, obtaining necessary configuration values, and modifying the application entry point to instantiate the agent. Additionally, it highlights the flexibility offered by the npm package for customizing instrumentation, supporting older or unique browsers, and controlling browser agent versions. The post encourages exploring further resources, joining discussions in the New Relic community, and suggests using build tools like webpack for additional customization. The author, Patrick Housley, shares his expertise in real user monitoring and emphasizes that solutions are specific to individual environments.