• /
  • EnglishEspañol日本語한국어Português
  • Log inStart now

Compatibility and requirements for the Node.js agent

Our Node.js agent includes built-in instrumentation of the most popular Node.js frameworks, app servers, databases, and message queuing systems. For frameworks and libraries that aren't instrumented out of the box, you can extend the agent with our Node.js agent API.

Our Node.js agent is publicly available on the Node Package Manager (npm) repository as well as on GitHub. Ready to try out New Relic's Node.js agent? Create a New Relic account!

Requirements to install the agent

Before installing the agent, check that your system meets its minimum requirements. For best performance, use the latest active long term support (LTS) version of Node.js.

Instrumented modules

After installation, the agent automatically instruments with our catalog of supported Node.js libraries and frameworks. This gives you immediate access to granular information specific to your web apps and servers. For unsupported frameworks or libraries, you'll need to instrument the agent yourself using the Node.js agent API.

Note: The latest supported version may not reflect the most recent supported version.

Package nameMinimum supported versionLatest supported versionIntroduced in*
@apollo/gateway2.3.02.9.3@newrelic/apollo-server-plugin@1.0.0
@apollo/server4.0.04.11.2@newrelic/apollo-server-plugin@2.1.0
@aws-sdk/client-bedrock-runtime3.474.03.714.011.13.0
@aws-sdk/client-dynamodb3.0.03.714.08.7.1
@aws-sdk/client-sns3.0.03.714.08.7.1
@aws-sdk/client-sqs3.0.03.714.08.7.1
@aws-sdk/lib-dynamodb3.377.03.714.08.7.1
@aws-sdk/smithy-client3.47.03.374.08.7.1
@elastic/elasticsearch7.16.08.17.011.9.0
@grpc/grpc-js1.4.01.12.58.17.0
@hapi/hapi20.1.221.3.129.0.0
@koa/router11.0.213.1.03.2.0
@langchain/core0.1.170.3.2411.13.0
@nestjs/cli9.0.010.4.910.1.0
@prisma/client5.0.06.1.011.0.0
@smithy/smithy-client2.0.03.5.011.0.0
amqplib0.5.00.10.52.0.0
apollo-server3.0.03.13.0@newrelic/apollo-server-plugin@1.0.0
apollo-server-express3.0.03.13.0@newrelic/apollo-server-plugin@1.0.0
aws-sdk2.2.482.1692.06.2.0
bluebird2.0.03.7.21.27.0
bunyan1.8.121.8.159.3.0
cassandra-driver3.4.04.7.21.7.1
connect3.0.03.7.02.6.0
express4.6.04.21.22.6.0
fastify2.0.05.2.08.5.0
generic-pool3.0.03.9.00.9.0
ioredis4.0.05.4.11.26.2
kafkajs2.0.02.2.411.19.0
koa2.0.02.15.33.2.0
koa-route3.0.04.0.13.2.0
koa-router11.0.213.0.13.2.0
memcached2.2.02.2.21.26.2
mongodb4.1.46.12.01.32.0
mysql2.2.02.18.11.32.0
mysql22.0.03.11.51.32.0
next13.4.1915.1.112.0.0
openai4.0.04.77.011.13.0
pg8.2.08.13.19.0.0
pg-native3.0.03.2.09.0.0
pino7.0.09.5.08.11.0
q1.3.01.5.11.26.2
redis3.1.04.7.01.31.0
restify11.0.011.1.02.6.0
superagent3.0.010.1.14.9.0
undici5.0.07.2.011.1.0
when3.7.03.7.81.26.2
winston3.0.03.17.08.11.0

*When package is not specified, support is within the newrelic package.

AI Monitoring Support

The Node.js agent supports the following AI platforms and integrations.

Amazon Bedrock

Through the @aws-sdk/client-bedrock-runtime module, we support:

ModelImageTextVision
AI21 Labs Jurassic-2-
Amazon Titan-
Anthropic Claude
Cohere-
Meta Llama2-
Meta Llama3-

Note: if a model supports streaming, we also instrument the streaming variant.

Langchain

The following general features of Langchain are supported:

AgentsChainsToolsVectorstores

Models/providers are generally supported transitively by our instrumentation of the provider's module.

ProviderSupportedTransitively
Azure OpenAI
Amazon Bedrock
OpenAI

OpenAI

Through the openai module, we support:

AudioChatCompletionsEmbeddingsFilesImages

Connect the agent to other New Relic features

The Node.js agent integrates with other features to give you observability across your entire stack:

Product

Capability

AI monitoring

If you have version 11.13.0 of the Node.js agent, you can collect AI data from certain AI libraries and frameworks:

Browser monitoring

The Node.js agent can add the benefits of when you enable auto-instrumentation. After enabling browser monitoring injection, simply follow our guide to installing browser monitoring with the Node.js agent. Once you've completed these steps, you can view your browser data in the APM Summary page and quickly switch between the APM and browser data for a particular app. For configuration options and manual instrumentation, see browser monitoring and the Node.js agent.

Infrastructure monitoring

When you install the infrastructure and APM agents on the same host, they automatically detect one another. You can then view a list of hosts in the APM UI, and filter your hosts by APM app in the infrastructure UI. For more information, see APM data in infrastructure monitoring.

New Relic dashboards

The Node.js agent sends default events and attributes for NRQL queries. You can also record custom events for advanced analysis.

Synthetic monitoring

Synthetic transaction traces connect requests from synthetic monitors to the underlying APM transaction.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.