Compétences distributed-debugging-debug-trace
🔍

distributed-debugging-debug-trace

Risque faible ⚡ Contient des scripts🌐 Accès réseau

تكوين تصحيح الأخطاء والتتبع الموزع

هل تواجه صعوبة في تصحيح أخطاء الأنظمة متعددة الخدمات المعقدة؟ تقوم هذه المهارة بإعداد بيئات تصحيح أخطاء شاملة، والتتبع الموزع، وأدوات التشخيص لمساعدتك في تحديد المشكلات وحلها بسرعة في جميع أنحاء البنية التحتية الخاصة بك.

Prend en charge: Claude Codex Code(CC)
📊 71 Adéquat
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans Paramètres → Capacités → Skills → Importer un skill

3

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 faible
v1 • 2/24/2026

Static 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.

2
Fichiers analysés
1,355
Lignes analysées
3
résultats
1
Total des audits
Problèmes à risque moyen (1)
Potential XSS via innerHTML
Debug dashboard example code uses innerHTML to render WebSocket data without sanitization. While this is documentation example code, users implementing this pattern should sanitize untrusted data.
Audité par: claude

Score de qualité

38
Architecture
100
Maintenabilité
87
Contenu
50
Communauté
85
Sécurité
91
Conformité aux spécifications

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

Foire aux questions

هل التصحيح عن بعد آمن لبيئات الإنتاج؟
Remote debugging should only be enabled with strict authentication, IP allowlisting, and short timeout windows. Consider using ephemeral debug sessions triggered by specific events rather than always-on debug servers.
كيف أمنع ظهور البيانات الحساسة في التتبعات؟
Use span attribute filters to exclude fields containing secrets. Configure your logger to redact known sensitive patterns. Review auto-instrumentation hooks to ensure they do not capture request bodies with credentials.
ما معدل أخذ العينات الذي يجب استخدامه لتتبع الإنتاج؟
Start with 1-10% sampling for high-traffic services. Increase to 100% for low-traffic services or during incident investigation. Use head-based sampling for consistent trace collection across services.
هل يمكنني استخدام هذه المهامة مع تطبيقات غير Node.js؟
The core concepts apply to any language. OpenTelemetry has SDKs for Python, Go, Java, and other languages. Adapt the configuration patterns to your tech stack while following the same tracing principles.
كيف أربط السجلات بالتتبعات؟
Inject trace ID and span ID into your log context. Most tracing libraries provide middleware to automatically add these IDs to the request context. Ensure your logger reads from this context for each log entry.
ما هو تأثير التتبع الموزع على الأداء؟
Well-configured tracing adds 1-5% overhead. Use batch span processors, adjust sampling rates, and avoid capturing large payloads in span attributes. Profile your specific application to measure actual impact.

Détails du développeur

Structure de fichiers