---
title: Code-level metrics
source: https://docs.newrelic.com/docs/apm/agents/nodejs-agent/installation-configuration/codestream-integration
---

Code-level metrics allow developers using the [New Relic CodeStream extension](https://docs.newrelic.com/docs/codestream/observability/code-level-metrics) 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 [#get-started]

First, [install](https://docs.newrelic.com/docs/codestream/start-here/install-codestream) the New Relic CodeStream extension into your supported IDE of choice, and log in.

> #### ⚠️ IMPORTANT
>
> 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](https://docs.newrelic.com/docs/apm/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration#code-level-metrics).

## Agent attributes [#attributes]

The Node.js agent reports and attaches the following attributes to most spans produced by [web frameworks](https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/compatibility-requirements-nodejs-agent#support) in your application.

> #### ⚠️ IMPORTANT
>
> 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                                 |
| --------------- | ------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| `code.function` | The name of the instrumented function. It will be `(anonymous)` for both anonymous and arrow functions. | routeHandler                            |
| `code.filepath` | The absolute path to the source code file where `code.function` is defined.                             | /usr/local/app/sample-node-app/index.js |
| `code.lineno`   | The line number where `code.function` is defined in `code.filepath`.                                    | 639                                     |
| `code.lineno`   | The column number where `code.function` is defined in `code.filepath`.                                  | 47                                      |
