Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Structured Logging with Correlation IDs #9

Open
monilpat opened this issue Dec 20, 2024 · 0 comments
Open

Implement Structured Logging with Correlation IDs #9

monilpat opened this issue Dec 20, 2024 · 0 comments
Labels

Comments

@monilpat
Copy link
Owner

Is your feature request related to a problem? Please describe.

The current logging setup lacks structured logging and correlation IDs, making it difficult to trace and debug issues across distributed systems effectively.

Describe the solution you'd like

Implement a structured logging framework that:

  • Uses JSON format for all logs
  • Includes standard fields such as timestamp, severity, and correlation ID
  • Supports context injection for better traceability
  • Provides different log levels (DEBUG, INFO, WARN, ERROR)
  • Allows for custom fields to be added as needed

Additionally, integrate correlation IDs to track requests across different services, enhancing the observability and troubleshooting capabilities.

Describe alternatives you've considered

  • Continuing with plain text logs and manual correlation
  • Using external APM tools for distributed tracing

Additional context

This implementation will greatly improve the ability to diagnose and resolve issues quickly, especially in complex, multi-service environments. It aligns with modern logging best practices, ensuring logs are both informative and actionable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant