opentelemetry-js
Installation
SKILL.md
OpenTelemetry JS
Workflow
- Confirm observability goals and backend contract (OTLP collector/vendor).
- Bootstrap NodeSDK before app code execution.
- Define stable resource attributes and service identity.
- Add auto/manual instrumentation where signal value is highest.
- Configure exporters, batching, and shutdown handling.
- Validate propagation across service boundaries.
- Tune sampling and cardinality for production cost control.
Preflight (Ask / Check First)
- Node.js and OpenTelemetry package versions.
- If using JS SDK 2.x, confirm runtime baseline (
^18.19.0 || >=20.6.0) and TypeScript>=5.0.4. - Collector endpoint/protocol and auth requirements.
- Required signals (traces/metrics/logs) and SLO use cases.
- Existing metric/trace naming conventions.
- Startup model (single process, workers, serverless).