Code-level metrics allow developers using the New Relic CodeStream extension to see APM data displayed contextually in their IDE, alongside individual methods in the code. This allows developers to be more proactive about addressing performance issues as they write and review code.
First, install the New Relic CodeStream extension into your supported IDE of choice, and log in.
Code-level metrics are available in Node.js agent version 9.7.5 and higher and are disabled by default. To change this configuration, check out our documentation.
The Node.js agent reports and attaches the following attributes to most spans produced by web frameworks in your application.
In some cases, the agent will directly wrap base framework code that's invoked within your application and won't display within your IDE.
The name of the instrumented function. It will be
The absolute path to the source code file where
The line number where
The column number where