Developers cannot connect a log line to the request that produced it across 6 microservices. What do you change?

IntermediateScenarioLogging Pipelines
Answer

Situation read → No shared correlation ID across services.

What I'd do →

  1. Adopt W3C Trace Context (traceparent header) via OpenTelemetry SDKs and auto-instrumentation.
  2. Configure loggers to add trace_id and span_id from the active context to every line.
  3. In Grafana, configure Loki derived fields to turn trace_id into a Tempo link, and Tempo "trace to logs" back.
  4. Make gateways generate a trace ID if the client did not send one.

Why → One ID lets you follow a request from the edge through every service and its logs.

Interview tip → Say "logs, metrics and traces linked by trace_id", not three separate tools.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging Pipelines