nodejs

Instruments Node.js apps with OpenCV for production traces and metrics.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill nodejs-theslashdojo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nodejs
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/opentelemetry/nodejs
Command: npx skills add https://github.com/theslashdojo/dojo --skill nodejs-theslashdojo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @opentelemetry/api, @opentelemetry/sdk-node, @opentelemetry/auto-instrumentations-node, @opentelemetry/exporter-trace-otlp-http, @opentelemetry/exporter-metrics-otlp-http, @opentelemetry/sdk-metrics, @opentelemetry/resources, @opentelemetry/semantic-conventions, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Node.js telemetry instrumentation solves the challenge of producing structured traces and metrics from Node.js applications, enabling production visibility and faster debugging.

Core Features & Use Cases

  • Auto-instrumentation for common Node.js stacks (Express, Fastify, NestJS) to emit traces and metrics with minimal setup.
  • Manual spans around business logic and critical operations to add semantic context.
  • OTLP export to collectors and backends with configurable resources and environment-based overrides.

Quick Start

Start with the bootstrap tool to generate instrumentation.mjs and run your app with OTLP export enabled.

Frequently Asked Questions about nodejs

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

FAQPage Schema
How do I instrument Node.js apps for traces and metrics?

To instrument Node.js apps for traces and metrics, you use the included bootstrap tool to generate an instrumentation.mjs file and run your application with OTLP export enabled.

Does OpenTelemetry auto-instrumentation work with Express and Fastify?

OpenTelemetry auto-instrumentation works with Express, Fastify, NestJS, and plain HTTP services to automatically emit traces and metrics with minimal manual setup required.

What is the best way to export Node.js telemetry to an OTLP backend?

The best way to export Node.js telemetry to an OTLP backend is configuring the OpenTelemetry exporters to send traces and metrics data via HTTP with environment-based resource overrides.

Can I add manual spans to Node.js business logic for production tracing?

You can add manual spans around business logic and critical operations to provide semantic context and achieve granular production tracing visibility within your Node.js application.

What packages are required to set up OpenTelemetry in Node.js?

Setting up OpenTelemetry in Node.js requires the OpenTelemetry JS packages including the SDK, API, auto-instrumentations, and OTLP HTTP exporters for traces and metrics.