Display context-sensitive APM data directly in your IDE by integrating New Relic CodeStream with the Ruby agent. Visualize code-level production telemetry in your editor as your write and review code with this integration.
First, install the New Relic CodeStream extension into your supported IDE of choice and log in.
The New Relic CodeStream integration is available in Ruby agent version 8.8.0 and higher. For versions 8.10.0 and higher, the integration is enabled by default. Versions 8.8.0 and 8.9.0 must have the integration enabled via configuration. To enable the integration, either set
code_level_metrics.enabled: true in
NEW_RELIC_CODE_LEVEL_METRICS_ENABLED=true as an environment variable.
The Ruby agent reports and attaches the following attributes to spans produced by your application:
The name of the instrumented function (Ruby method). Note that class methods will be prefixed by
The absolute path to the source code file in which
The line number where
The namespace (class / module name) in which
Not every method in your application code will be instrumented with the above attributes. As of version 8.10.0, the Ruby agent will provide code-level metrics for Rails controller methods,
ActiveJob methods, and any Ruby method which has been configured to be manually traced.