opentelemetry-js

Community

Instrument OpenTelemetry in JS apps.

Authorcedricziel
Version1.0.0
Installs0

System Documentation

What problem does it solve?

OpenTelemetry JavaScript instrumentation helps developers add observability to JavaScript/TypeScript apps by enabling traces, metrics, and logs across Node.js and browser environments.

Core Features & Use Cases

  • Automatic and manual instrumentation for Node.js and browser apps (Express, React, Next.js, GraphQL, etc.)
  • Guidance on configuring providers, resources, exporters, and instrumentations with practical examples.
  • Use case: Instrument a microservice to emit traces and metrics to OTLP.

Quick Start

  • Install core libraries: npm install @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-http
  • Create a tracing setup file (e.g., tracing.js) that initializes NodeSDK with resource attributes, exporters, and instrumentations like getNodeAutoInstrumentations.
  • Run the app and verify traces in your OTLP collector.
  • AI Prompt (example): Explain how to instrument a Node.js Express service with OpenTelemetry including a minimal code sample.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: opentelemetry-js
Download link: https://github.com/cedricziel/claude-otel-plugin/archive/main.zip#opentelemetry-js

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.