distributed-debugging-debug-trace
تكوين تصحيح الأخطاء والتتبع الموزع
هل تواجه صعوبة في تصحيح أخطاء الأنظمة متعددة الخدمات المعقدة؟ تقوم هذه المهارة بإعداد بيئات تصحيح أخطاء شاملة، والتتبع الموزع، وأدوات التشخيص لمساعدتك في تحديد المشكلات وحلها بسرعة في جميع أنحاء البنية التحتية الخاصة بك.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "distributed-debugging-debug-trace". Set up debugging for my Express API
Résultat attendu:
- Created .vscode/launch.json with Node.js debug configuration
- Added source map support with --enable-source-maps flag
- Configured environment variables for DEBUG and NODE_ENV
- Set up skipFiles to exclude node_modules from stepping
- Added compound configuration for full-stack debugging
Utilisation de "distributed-debugging-debug-trace". Implement distributed tracing with OpenTelemetry
Résultat attendu:
- Initialized NodeSDK with Jaeger exporter
- Configured auto-instrumentations for HTTP and Express
- Added custom span middleware with trace context propagation
- Set up resource attributes for service identification
- Implemented graceful shutdown with span flushing
Audit de sécurité
Risque faibleStatic analysis flagged 183 patterns, but most are false positives. JavaScript template literals were misidentified as Ruby shell execution (52 findings). Environment variable access (62 findings) is standard Node.js configuration practice. One legitimate medium-severity finding: innerHTML usage in debug dashboard example code could enable XSS if WebSocket data is untrusted. Skill provides legitimate debugging and observability patterns.
Problèmes à risque moyen (1)
Facteurs de risque
Score de qualité
Ce que vous pouvez construire
إعداد تصحيح أخطاء متعدد الخدمات
قم بتكوين تصحيح الأخطاء من البداية إلى النهاية لهيكل الخدمات المصغرة مع ارتباط التتبع عبر حدود الخدمة.
تشخيص مشاكل الإنتاج
إنشاء إمكانات تصحيح أخطاء آمنة للإنتاج مع أخذ العينات والمصادقة وإخفاء البيانات الحساسة.
تحسين الأداء
تنفيذ ملفات تعريف وحدة المعالجة المركزية ولقطات الذاكرة وكشف تسرب الذاكرة للتطبيقات الحرجة للأداء.
Essayez ces prompts
Set up VS Code debugging for my Node.js application with source maps and environment variables.
Configure OpenTelemetry tracing for my Express microservices with Jaeger as the backend. Include span context propagation and custom span attributes.
Create a production-safe debug dashboard showing memory usage, active traces, and structured logs. Include authentication and IP allowlisting.
Help me investigate a memory leak in my Node.js service. Set up heap snapshot automation, memory trend monitoring, and alert thresholds.
Bonnes pratiques
- Always sample traces in production to avoid performance overhead and storage costs
- Redact sensitive data like API keys, tokens, and PII from all logs and trace attributes
- Use structured logging with consistent field names for better searchability and analysis
Éviter
- Enabling verbose debug logging in production without rate limiting
- Exposing remote debug ports without authentication or network restrictions
- Using innerHTML with untrusted data in debug dashboards without sanitization