Skip to content

Add structured logging with correlation IDs for distributed tracing #2

Description

@viktoriavikulya

Currently all log output is plain text which makes it difficult to trace a single request across multiple services in production.

Proposal: switch to structured JSON logging and inject a correlation ID at the request boundary. The ID should propagate through all downstream calls via headers.

Benefits:

  • Enables log aggregation tools (Datadog, Grafana Loki) to group related events
  • Dramatically reduces MTTR for production incidents
  • Makes distributed tracing integration straightforward

Suggested library: pino (Node) or zerolog (Go) depending on the service.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions