OpenTelemetry for Node.js
OpenTelemetry provides robust support for Node.js applications. With automatic instrumentation for common frameworks and a wide ecosystem of plugins, you can quickly capture spans, logs, and metrics from your backend services.Installation
To get started, install the OpenTelemetry packages for Node.js:Auto-Instrumentation
Auto-instrumentation lets you automatically trace common libraries such as HTTP clients, database drivers, and more without needing to modify your code. OpenTelemetry provides auto-instrumentation libraries for many popular languages, making it fast to get started with tracing. For Node.js, you can use the@opentelemetry/auto-instrumentations-node
package to automatically capture telemetry from supported libraries like Express, MySQL, and gRPC.
Basic setup looks like: