A correlation ID is a unique identifier attached to one request and passed through every system it touches, so that its logs can be linked. When a user action causes calls to several services, each log entry carries the same identifier, and searching for it shows the whole path.

It matters for investigation and debugging. After an incident, or when an agent has taken a series of actions, a correlation ID makes it possible to reconstruct what happened, in what order and with which identity, instead of trying to match entries by time.

It only works if every component passes it on and records it, and a gap in the chain breaks the trail. The identifier should not contain sensitive information, since it appears in many logs. It also does not by itself prove who did something, only that entries belong together.

To use one, generate it at the start of a request, include it in every log entry and downstream call and make sure that agent tool calls carry it too.