Correlation Between the Three Pillars

Correlation Between the Three Pillars An architecture diagram generated by Archify. HTTP Request · user request · Architecture component HTTP Request user request User Service · S2 · Microservices User Service S2 API Gateway · S1 · Microservices API Gateway S1 Order Service · S3 · Microservices Order Service S3 Payment Service · S4 · Microservices Payment Service S4 TraceID · abc123 · Correlation TraceID abc123 Metric Exemplar · metric → trace · Correlation Metric Exemplar metric → trace Log Correlation · trace → log · Correlation Log Correlation trace → log request logs / metrics / traces Exemplar traceId Microservices Correlation Legend Microservices Telemetry correlation User request

Trace-to-Log Correlation

  • • Include traceId (abc123def456) and spanId in logs to find every log line of one request
  • • e.g. the payment-service "Payment processing failed" ERROR log

Metric-to-Trace Correlation (Exemplars)

  • • A Prometheus Exemplar attaches traceID="abc123" to a metric sample
  • • Jump straight to the request's trace when an anomaly appears