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.
Get started
First, install the New Relic CodeStream extension into your supported IDE of choice, and log in.
중요
Code-level metrics are available for Node.js agent version 9.7.5 or higher, and enabled by default for version 10.5.0 and higher. To change this configuration, check out our documentation.
Agent attributes
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.
Name | Description | Example |
---|---|---|
| The name of the instrumented function. It will be | routeHandler |
| The absolute path to the source code file where | /usr/local/app/sample-node-app/index.js |
| The line number where | 639 |
| The column number where | 47 |