| name | azure-monitor-opentelemetry-ts |
| description | Auto-instrument Node.js applications with distributed tracing, metrics, and logs. |
| type | skill |
| created | 2026-02-27T00:00:00.000Z |
| domain | cloud-infrastructure |
| category | monitoring |
| risk | unknown |
| source | community |
| tags | ["skill","cloud-infrastructure","monitoring","azure","monitor","opentelemetry"] |
Azure Monitor OpenTelemetry SDK for TypeScript
Auto-instrument Node.js applications with distributed tracing, metrics, and logs.
Installation
npm install @azure/monitor-opentelemetry
npm install @azure/monitor-opentelemetry-exporter
npm install @azure/monitor-ingestion
Environment Variables
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=...;IngestionEndpoint=...
Quick Start (Auto-Instrumentation)
IMPORTANT: Call useAzureMonitor() BEFORE importing other modules.
import { useAzureMonitor } from "@azure/monitor-opentelemetry";
useAzureMonitor({
azureMonitorExporterOptions: {
connectionString: process.env.APPLICATIONINSIGHTS_CONNECTION_STRING
}
});
import express from "express";
const app = express();
ESM Support (Node.js 18.19+)
node --import @azure/monitor-opentelemetry/loader ./dist/index.js
package.json:
{
"scripts": {
"start": "node --import @azure/monitor-opentelemetry/loader ./dist/index.js"
}
}
Full Configuration
import { useAzureMonitor, AzureMonitorOpenTelemetryOptions } ;
{ resourceFromAttributes } ;
: = {
: {
: process..,
: ,
:
},
: ,
: ,
: ,
: ,
: {
: { : },
: { : },
: { : },
: { : },
: { : },
: { : },
: { : },
: { : }
},
: ({ : })
};
(options);