Habilidades azure-monitor-opentelemetry-ts
📦

azure-monitor-opentelemetry-ts

Seguro 🔑 Variables de entorno🌐 Acceso a red

Add Azure Monitor Telemetry to Node.js Apps

Application teams need observability for production debugging and performance monitoring. This skill provides complete guidance for instrumenting TypeScript and JavaScript applications with Azure Monitor using OpenTelemetry standards.

Soporta: Claude Codex Code(CC)
📊 71 Adecuado
1

Descargar el ZIP de la skill

2

Subir en Claude

Ve a Configuración → Capacidades → Skills → Subir skill

3

Activa y empieza a usar

Pruébalo

Usando "azure-monitor-opentelemetry-ts". Add Azure Monitor OpenTelemetry to my Express app

Resultado esperado:

Install the package with npm install @azure/monitor-opentelemetry, then import and call useAzureMonitor with your connection string before importing Express. The SDK will automatically instrument HTTP requests, database calls, and Azure SDK operations.

Usando "azure-monitor-opentelemetry-ts". Create a custom span for my database operation

Resultado esperado:

Use trace.getTracer to get a tracer, call startSpan with operation name, set attributes like database type and query, add events for processing stages, record exceptions on errors, and call end in a finally block.

Auditoría de seguridad

Seguro
v1 • 2/25/2026

All static analysis findings are false positives. The scanner analyzed SKILL.md documentation as executable code. The skill provides legitimate Azure Monitor OpenTelemetry instrumentation guidance with standard environment variable configuration and documented network endpoints for telemetry export.

1
Archivos escaneados
325
Líneas analizadas
3
hallazgos
1
Auditorías totales
Problemas de riesgo bajo (1)
Documentation Scanned as Code
Static analyzer flagged SKILL.md documentation examples as security issues. All findings are false positives - the file contains TypeScript code examples and bash commands for documentation purposes only.

Factores de riesgo

Auditado por: claude

Puntuación de calidad

38
Arquitectura
100
Mantenibilidad
87
Contenido
32
Comunidad
100
Seguridad
91
Cumplimiento de la especificación

Lo que puedes crear

Production Application Monitoring

Set up comprehensive telemetry for a production Node.js API to track request latencies, error rates, and dependencies.

Microservices Distributed Tracing

Enable end-to-end trace visibility across microservices using OpenTelemetry standard context propagation.

Custom Business Metrics

Track application-specific metrics like user actions, feature usage, and business KPIs alongside standard telemetry.

Prueba estos prompts

Basic Auto-Instrumentation Setup
Help me add Azure Monitor OpenTelemetry to my Express.js application with default configuration.
Custom Trace Configuration
Show me how to configure Azure Monitor OpenTelemetry with custom sampling, offline storage, and specific instrumentation options for my production app.
Manual Span Creation
I need to track a specific operation with custom spans, attributes, and events. Show me how to create manual traces with proper error handling.
Custom Metrics and Processors
Help me set up custom metrics with a meter provider, create a filtering span processor, and configure the log exporter for my application.

Mejores prácticas

  • Call useAzureMonitor before importing any other modules to ensure proper auto-instrumentation
  • Store connection strings in environment variables, never in source code
  • Implement graceful shutdown with shutdownAzureMonitor to flush pending telemetry

Evitar

  • Do not skip calling shutdownAzureMonitor on application exit - telemetry will be lost
  • Avoid setting sampling ratio to 0 in production - you will lose all telemetry data
  • Do not initialize useAzureMonitor multiple times - it causes resource conflicts

Preguntas frecuentes

What is the minimum Node.js version required?
Node.js 18.19.0 or later is required for ESM loader support. For CommonJS, Node.js 14+ is supported.
Do I need to install separate exporters?
No, @azure/monitor-opentelemetry includes the exporters. Install @azure/monitor-opentelemetry-exporter separately only for custom low-level setups.
How do I enable ESM loader?
Run your application with node --import @azure/monitor-opentelemetry/loader or add the import to your package.json scripts.
Can I filter which traces are sent to Azure Monitor?
Yes, use custom span processors with onEnd to filter or modify spans, or configure the samplingRatio option.
How do I add custom dimensions to all telemetry?
Use a custom span processor's onEnd method to add attributes to spans, or use resourceFromAttributes when configuring the SDK.
What happens if Azure Monitor is unavailable?
Enable offline storage with the storageDirectory option to buffer telemetry locally and retry later.

Detalles del desarrollador

Estructura de archivos

📄 SKILL.md