azure-monitor-opentelemetry-ts
Skill by sickn33
Auto-instruments Node.js applications with distributed tracing, metrics, and logs using the Azure Monitor OpenTelemetry distro. It is written for developers who send telemetry to Azure Monitor from TypeScript or Node.js code. It also covers manual exporters, custom logs ingestion, and sampling.
Install azure-monitor-opentelemetry-ts
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/azure-monitor-opentelemetry-ts ~/.claude/skills/azure-monitor-opentelemetry-tsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install azure-monitor-opentelemetry-ts in Claude Code
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/azure-monitor-opentelemetry-ts ~/.gemini/antigravity-cli/skills/azure-monitor-opentelemetry-tsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install azure-monitor-opentelemetry-ts in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an assistant through the Azure Monitor OpenTelemetry SDK for TypeScript and Node.js. It covers the @azure/monitor-opentelemetry distro, which auto-instruments applications for distributed tracing, metrics, and logs. It also shows manual exporter setup, custom traces and metrics, custom logs ingestion, sampling, and shutdown.
The skill shows how to call useAzureMonitor() before loading other modules, and how to set the connection string through an environment variable. It notes that the distro and @microsoft/opentelemetry should not both be initialized. It is aimed at developers who send telemetry to Azure and want to configure destinations, redact PII and secrets, and protect offline storage.
Written from the project's SKILL.md and checked against it.
What it can do
- Auto-instrumentationInitializes the @azure/monitor-opentelemetry distro with useAzureMonitor() for tracing, metrics, and logs.
- Custom tracesCreates spans with attributes, events, and exception recording using the OpenTelemetry API.
- Custom metricsCreates counters, histograms, and observable gauges with the OpenTelemetry metrics API.
- Manual exporter setupWires trace, metric, and log exporters into custom OpenTelemetry providers and processors.
- Custom logs ingestionUploads custom log records to Azure Monitor using the LogsIngestionClient.
- SamplingSets a sampling ratio with ApplicationInsightsSampler or the samplingRatio option.
- Graceful shutdownFlushes telemetry on application exit by calling shutdownAzureMonitor().
What you need
- Node.js (18.19+ for the ESM loader)
- Azure Application Insights connection string
- Azure credentials for custom logs ingestion (DefaultAzureCredential)
Try asking
- Add Azure Monitor OpenTelemetry tracing to my Express app
- Create a histogram for request duration with route labels
- Set a 75 percent trace sampling ratio in my Node.js service
Good to know
- Automatic instrumentation may export sensitive request and log data, so redact PII and secrets.
- Do not initialize both @azure/monitor-opentelemetry and @microsoft/opentelemetry.
- Ended spans are read-only, so enrich spans in onStart rather than onEnd.
- The frontmatter marks this skill with a critical risk level.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/azure-monitor-opentelemetry-ts/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to azure-monitor-opentelemetry-ts
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
azure-monitor-opentelemetry-ts: common questions
Does this skill need to be loaded before other code?
Yes. The source says to call useAzureMonitor() before importing other modules, and static ESM imports are hoisted, so the app should be loaded after initialization.
Can I use the distro and the manual exporters together?
The source describes the distro and the low-level exporters as separate setups for different needs. It warns against initializing both the distro and @microsoft/opentelemetry together.
Does the skill filter out sensitive telemetry?
The source says to configure approved destinations and redact PII and secrets. It warns that automatic instrumentation may export sensitive request and log data.
How do I install azure-monitor-opentelemetry-ts?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is azure-monitor-opentelemetry-ts free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is azure-monitor-opentelemetry-ts safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to azure-monitor-opentelemetry-ts?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
