otel-js
OpenTelemetry in Node.js / JavaScript / TypeScript — NodeSDK, declarative YAML configuration, auto-instrumentations, ESM vs CJS import patterns. Use when adding, reviewing, or configuring OpenTelemetry in a Node.js service. Triggers on "setup otel in node", "js telemetry", "node tracing setup", "NodeSDK", "auto instrumentation node", "TracerProvider node", or any Node.js-related OTel question.
How do I install this agent skill?
npx skills add https://github.com/ollygarden/opentelemetry-agent-skills --skill otel-jsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides guidance on setting up OpenTelemetry in Node.js applications. It fetches documentation, changelogs, and configuration examples from the official OpenTelemetry GitHub repository and the npm registry to ensure instructions are accurate. While these are trusted sources, the process of fetching and interpreting external content introduces a potential surface for indirect prompt injection.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
OpenTelemetry in Node.js
Entry point for OpenTelemetry mechanics in Node.js / JavaScript / TypeScript services. Load a reference below based on the task; each reference is self-contained.
References
| File | Use when |
|---|---|
references/declarative-setup.md | Configuring the SDK via declarative YAML: OTEL_CONFIG_FILE, @opentelemetry/configuration, @opentelemetry/sdk-node, ESM/CJS import order, v2.0 migration. |
Sources of Truth
For YAML schema details, fetch the upstream sources listed in the otel-declarative-config skill.
For Node.js-specific facts:
| Fact | Fetch |
|---|---|
Latest @opentelemetry/configuration | npm view @opentelemetry/configuration version |
Latest @opentelemetry/sdk-node | npm view @opentelemetry/sdk-node version |
Latest @opentelemetry/auto-instrumentations-node | npm view @opentelemetry/auto-instrumentations-node version |
Released package status / breaking changes (2.11.0 / 0.222.0) | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/v2.11.0/experimental/packages/configuration/README.md and WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/v2.11.0/experimental/packages/opentelemetry-sdk-node/README.md |
Experimental CHANGELOG through 0.222.0 | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/v2.11.0/experimental/CHANGELOG.md |
ESM / CJS preload mechanics at 2.11.0 | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/v2.11.0/doc/esm-support.md |
Auto-instrumentations register entry point at 0.80.0 | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-js-contrib/auto-instrumentations-node-v0.80.0/packages/auto-instrumentations-node/README.md |
| Node.js getting-started docs | WebFetch https://opentelemetry.io/docs/languages/js/getting-started/nodejs/ |
Cross-References
- Schema-level facts:
otel-declarative-configskill (language-agnostic YAML schema sources). - SDK version selection across languages:
otel-sdk-versionsskill. - Semantic conventions lookup:
otel-semantic-conventionsskill.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/ollygarden/opentelemetry-agent-skills/otel-js">View otel-js on skillZs</a>