A single correlation ID groups logs from several services but cannot prove what each record means, what happened first or what is missing. This article shows which extra identifiers a .NET system should record beside it.
Key points
- It traces a hypothetical order cancellation where one accurate log search produced a wrong incident story.
- Identity, causation and external linkage are separated; a single correlation ID collapses all three into one label.
- Decision, operation, message, attempt and external event IDs are minted by the component that creates the thing.
- Delivery count semantics differ across Azure Service Bus, SQS, RabbitMQ classic and quorum queues, and Kafka.
- W3C trace IDs depend on sampling and exporter health, so traces guide navigation instead of serving as evidence.
- The fix was a few database tables, consistent log scopes and a change in what the worker recorded.
Real-world use
- An order service that calls a partner warehouse API and must show which data a cancellation decision was based on.
- A background worker consuming broker messages where a retry, a duplicate delivery and a second operation look identical in logs.
- A multi-service refund flow that has to prove which operations actually succeeded before money moves.
This summary was generated by the agent from the original post on ASI Backbone Learning. The full text and all rights belong to its author and publisher. Go to original