apm-nodejs

Instrument Node.js applications with Elastic APM to collect traces and metrics.

6|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/patrykkopycinski/elastic-cursor-plugin --skill apm-nodejs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apm-nodejs
Source: https://github.com/patrykkopycinski/elastic-cursor-plugin/tree/main/.cursor/skills/apm-nodejs
Command: npx skills add https://github.com/patrykkopycinski/elastic-cursor-plugin --skill apm-nodejs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers quickly add Elastic APM instrumentation to Node.js applications so traces, spans, and performance metrics are collected and viewable in Kibana, reducing manual setup time and misconfiguration.

Core Features & Use Cases

  • Framework detection and guidance: Guides integration for Express, Fastify, Koa, NestJS, or plain Node.
  • Agent installation and configuration: Instructs adding elastic-apm-node or configuring an OpenTelemetry exporter and ensures APM server URL and token/API key are set.
  • Validation and best practices: Recommends service naming, environment tags, and verification steps to confirm traces appear in Kibana.

Quick Start

Use the apm-nodejs skill to instrument your Node.js application with Elastic APM by adding elastic-apm-node and supplying the APM server URL and secret token or API key.

Frequently Asked Questions about apm-nodejs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Elastic APM tracing to a Node.js app?

To add Elastic APM tracing to a Node.js app, install the elastic-apm-node package and configure it with your APM server URL and secret token or API key to start collecting performance metrics and spans.

Can I instrument Node.js applications with OpenTelemetry for Elastic APM?

Yes, you can instrument Node.js applications for Elastic APM by configuring an OpenTelemetry exporter to send OTLP protobuf data, providing an alternative to the native elastic-apm-node agent.

Does Elastic APM instrumentation work with Express, Fastify, Koa, and NestJS?

Elastic APM instrumentation works with Express, Fastify, Koa, NestJS, and plain Node.js setups, offering framework detection and tailored guidance to ensure traces and spans are collected correctly.

How do I verify that Node.js traces are appearing in Kibana?

To verify Node.js traces in Kibana, confirm your APM server URL and authentication token are correct, then check your service naming and environment tags to ensure the collected spans appear in the dashboard.

What is needed to configure Elastic APM for a Node.js microservice?

Configuring Elastic APM for a Node.js microservice requires an accessible APM server URL, a secret token or API key, and proper service naming with environment tags to validate traces in Kibana.