Correlation
Request Correlation
Optional request-level identity links logs and traces when you emit the same value on both sides. It does not replace trace_id.
Identifiers
request_id— customer / product field on logs and traces.correlation_id— same request-level identity in stores that use this name (for example ClickHouse span rows).
Emit via log context requestId or OTEL attribute http.request_id (promoted on ingest).
Joins
DIRECT joins require equal stored request / correlation identity. Log search: request: / requestid:.
API
GET /api/app/correlation?type=request&id=…
Limitations
- Platform middleware
x-request-idis not automatically a product correlation namespace. trace_idremains authoritative for distributed joins — do not substitute request id for it.- Never invent request links from timestamps.