azure-monitor-opentelemetry-ts
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.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
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
SeguroAll 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.
Problemas de riesgo bajo (1)
Factores de riesgo
🔑 Variables de entorno (5)
🌐 Acceso a red (1)
Puntuación de calidad
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
Help me add Azure Monitor OpenTelemetry to my Express.js application with default configuration.
Show me how to configure Azure Monitor OpenTelemetry with custom sampling, offline storage, and specific instrumentation options for my production app.
I need to track a specific operation with custom spans, attributes, and events. Show me how to create manual traces with proper error handling.
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?
Do I need to install separate exporters?
How do I enable ESM loader?
Can I filter which traces are sent to Azure Monitor?
How do I add custom dimensions to all telemetry?
What happens if Azure Monitor is unavailable?
Detalles del desarrollador
Autor
sickn33Licencia
MIT
Repositorio
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-monitor-opentelemetry-tsRef.
main
Estructura de archivos
📄 SKILL.md