# Azure monitor opentelemetry ts

> Azure monitor opentelemetry ts is an open-source agent skill for cloud and infrastructure. Instruments Node.js apps with Azure Monitor and OpenTelemetry traces, metrics and logs. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-typescript/skills/azure-monitor-opentelemetry-ts
- **Repository:** https://github.com/microsoft/skills
- **GitHub stars:** 3,223
- **License:** MIT
- **Skill name:** azure-monitor-opentelemetry-ts
- **Collection:** https://github.com/microsoft/skills
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-18

## About

This skill gives an agent the code patterns for adding Application Insights telemetry to Node.js and TypeScript services using the @azure/monitor-opentelemetry distro. It covers one-call auto-instrumentation, a full options object for sampling, live metrics, offline storage and per-library instrumentation toggles, and manual setup with trace, metric and log exporters for teams building their own OpenTelemetry pipeline.

The guidance also covers custom spans, counters, histograms and observable gauges, span processors for enriching or filtering telemetry, and graceful shutdown to flush data. It includes ESM startup via a Node loader and notes that the telemetry setup must run before other application modules are imported.

The skill expects a Node.js project with a connection string in the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable. Custom log ingestion additionally requires an Azure data collection endpoint and rule, and uses the Azure identity library for authentication.

## When your agent uses it

> Instrument applications with Azure Monitor and OpenTelemetry for JavaScript (@azure/monitor-opentelemetry). Use when adding distributed tracing, metrics, and logs to Node.js applications with Application Insights.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/microsoft/skills/tree/HEAD/.github/plugins/azure-sdk-typescript/skills/azure-monitor-opentelemetry-ts)
- [License: MIT](https://github.com/microsoft/skills/tree/HEAD/.github/plugins/azure-sdk-typescript/skills/azure-monitor-opentelemetry-ts)

## Features

- **One-call auto-instrumentation:** Sets up tracing, metrics and logs for common Node.js libraries with a single setup call.
- **Manual exporter configuration:** Shows how to wire trace, metric and log exporters into a custom OpenTelemetry provider setup.
- **Custom spans and metrics:** Covers creating spans with attributes and events, plus counters, histograms and gauges.
- **Sampling and offline storage:** Explains ratio-based sampling and local storage for telemetry during connectivity gaps.
- **Custom logs ingestion:** Shows uploading custom records to Azure Monitor through a data collection rule.
- **ESM and shutdown handling:** Covers the Node loader for ES modules and flushing telemetry on process exit.

## Good for

- Add Application Insights tracing to an Express API
- Send custom metrics such as request duration to Azure Monitor
- Configure sampling for a high-traffic Node.js service
- Upload custom application logs to a Log Analytics table
- Wire OpenTelemetry trace exporters into an existing Node app

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/azure-monitor-opentelemetry-ts` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/azure-monitor-opentelemetry-ts &&
cp -R "$tmp/.github/plugins/azure-sdk-typescript/skills/azure-monitor-opentelemetry-ts" ~/.claude/skills/azure-monitor-opentelemetry-ts &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/azure-monitor-opentelemetry-ts` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/azure-monitor-opentelemetry-ts` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/azure-monitor-opentelemetry-ts &&
cp -R "$tmp/.github/plugins/azure-sdk-typescript/skills/azure-monitor-opentelemetry-ts" ~/.agents/skills/azure-monitor-opentelemetry-ts &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/azure-monitor-opentelemetry-ts` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/azure-monitor-opentelemetry-ts` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/azure-monitor-opentelemetry-ts &&
cp -R "$tmp/.github/plugins/azure-sdk-typescript/skills/azure-monitor-opentelemetry-ts" ~/.cursor/skills/azure-monitor-opentelemetry-ts &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/azure-monitor-opentelemetry-ts` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/microsoft/skills.git --path .github/plugins/azure-sdk-typescript/skills/azure-monitor-opentelemetry-ts
```

Or copy the folder to `~/.gemini/skills/azure-monitor-opentelemetry-ts` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/azure-monitor-opentelemetry-ts`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/azure-monitor-opentelemetry-ts &&
cp -R "$tmp/.github/plugins/azure-sdk-typescript/skills/azure-monitor-opentelemetry-ts" ~/.copilot/skills/azure-monitor-opentelemetry-ts &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/azure-monitor-opentelemetry-ts` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/microsoft/skills.git
```

Then copy `skills/.github/plugins/azure-sdk-typescript/skills/azure-monitor-opentelemetry-ts` into your agent's skills folder as `azure-monitor-opentelemetry-ts`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does this skill need to work?

A Node.js project using the @azure/monitor-opentelemetry packages and an Application Insights connection string in APPLICATIONINSIGHTS_CONNECTION_STRING.

### Does it cover Python or other languages?

No, the guidance is specific to JavaScript and TypeScript with Node.js.

### Does the skill include scripts?

No, it is a single SKILL.md file with code examples and no bundled scripts.

### How do I install Azure monitor opentelemetry ts in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/azure-monitor-opentelemetry-ts to use it in all your projects, or to .claude/skills/azure-monitor-opentelemetry-ts in one project.

### Does Azure monitor opentelemetry ts run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Azure monitor opentelemetry ts?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Azure monitor opentelemetry ts?

The closest alternatives to Azure monitor opentelemetry ts are Azure monitor opentelemetry py, Azure monitor opentelemetry exporter py, Connect observability, Applicationinsights web ts and Azure kusto graph.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Azure monitor opentelemetry py](https://ai-powered.com/skills/azure-monitor-opentelemetry-py): Azure monitor opentelemetry py is an open-source agent skill for cloud and infrastructure.
- [Azure monitor opentelemetry exporter py](https://ai-powered.com/skills/azure-monitor-opentelemetry-exporter-py): Azure monitor opentelemetry exporter py is an open-source agent skill for cloud and infrastructure.
- [Connect observability](https://ai-powered.com/skills/connect-observability): Connect observability is an open-source agent skill for cloud and infrastructure.
- [Applicationinsights web ts](https://ai-powered.com/skills/applicationinsights-web-ts): Applicationinsights web ts is an open-source agent skill for developer tools.
- [Azure kusto graph](https://ai-powered.com/skills/azure-kusto-graph): Azure kusto graph is an open-source agent skill for cloud and infrastructure.
- [Azure monitor opentelemetry exporter java](https://ai-powered.com/skills/azure-monitor-opentelemetry-exporter-java): Azure monitor opentelemetry exporter java is an open-source agent skill for cloud and infrastructure.
- [Azure mgmt applicationinsights dotnet](https://ai-powered.com/skills/azure-mgmt-applicationinsights-dotnet): Azure mgmt applicationinsights dotnet is an open-source agent skill for cloud and infrastructure.
- [Azure monitor ingestion py](https://ai-powered.com/skills/azure-monitor-ingestion-py): Azure monitor ingestion py is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/azure-monitor-opentelemetry-ts
