Gilfeather/furnace

📝 Improve error messages and logging

オヌプン

#6 opened on 2025/07/16

 (0 件のコメント) (0 件のリアクション) (0 人の担圓者)Rust (5 件のフォヌク)auto 404
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (64 個のスタヌ)
PR merge metrics
 (PR metrics pending)

説明

Description

Enhance error messages to be more user-friendly and add structured logging throughout the application.

✅ Completed Items

  • Add structured logging using tracing crate - DONE
  • Replace generic error messages with specific, actionable ones - DONE
  • Add proper error context using comprehensive error types - DONE
  • Log request/response details at debug level - DONE
  • Update error responses to include helpful suggestions - DONE

🔄 Remaining Items

  • Include request IDs for tracing requests
  • Add more granular log levels for different components

Current Implementation Status

Logging: Full structured logging implemented with:

  • Session IDs for server instances
  • Detailed request/response logging
  • Performance metrics logging
  • Error context with stack traces
  • JSON logging support for production

Error Handling: Comprehensive error system with:

  • Detailed error messages with context
  • HTTP status code mapping
  • Structured error responses with timestamps
  • Input validation errors with expected vs actual values
  • Helpful error suggestions in responses

Estimated Remaining Work

Easy - 1-2 hours for request ID tracing

コントリビュヌタヌガむド