13 / 18 · Module 16 — Production Engineering and Observability · filtered: cheatsheet← prev⊞ allnext →
16.6Correlation vs business identifier
Don't use only:
customerId=C001
for tracing.
One customer can have:
100 requests
You want both:
correlationId = identifies transaction
customerId = identifies business entity
Example:
{
"correlationId": "REQ-8F21",
"customerId": "C001"
}
Very useful combination.