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
다중 서비스 디버깅 설정
서비스 경계를 통한 추적 상관관계가 있는 마이크로서비스 아키텍처에 대한 종단 간 디버깅을 구성합니다.
프로덕션 문제 진단
샘플링, 인증 및 민감한 데이터 편집이 포함된 안전한 프로덕션 디버깅 기능을 구축합니다.
성능 최적화
성능이 중요한 애플리케이션을 위해 CPU 프로파일링, 힙 스냅샷 및 메모리 누수 탐지를 구현합니다.
Essayez ces prompts
소스 맵과 환경 변수를 사용하여 Node.js 애플리케이션의 VS Code 디버깅을 설정합니다.
Express 마이크로서비스를 위한 OpenTelemetry 추적을 Jaeger를 백엔드로 구성합니다. 스팬 컨텍스트 전파 및 사용자 정의 스팬 속성을 포함합니다.
메모 사용량, 활성 추적 및 구조화된 로그를 표시하는 프로덕션 안전 디버그 대시보드를 생성합니다. 인증 및 IP 허용 목록을 포함합니다.
Node.js 서비스의 메모리 누수 조사를 도와주세요. 힙 스냅샷 자동화, 메모리 추세 모니터링 및 알림 임계값을 설정합니다.
Bonnes pratiques
- 프로덕션에서는 성능 오버헤드와 스토리지 비용을 방지하기 위해 항상 추적을 샘플링하세요
- API 키, 토큰 및 PII와 같은 민감한 데이터는 모든 로그 및 추적 속성에서 편집하세요
- 더 나은 검색 가능성과 분석을 위해 일관된 필드 이름으로 구조화된 로깅을 사용하세요
Éviter
- 速率 제한 없이 프로덕션에서 상세한 디버그 로깅 활성화
- 인증 또는 네트워크 제한 없이 원격 디버그 포트 노출
- 정리 없이 신뢰할 수 없는 데이터와 함께 debug 대시보드에서 innerHTML 사용