DebugBetter - Level-up your debugging skills!

Debugging across server and client with Correlation Vectors

Imagine you’re trying to figure out a bug that involves a client and several microservices. Each has their own logging and is potentially in different timezones. You’re interested in a single session, but it involves interactions from each of them.

This is where you can use a Correlation Vector. Microsoft created the spec and use them in bunch of their services. I first learned about them at a secret conference (XFest), and unfortunately none of those training materials are available publicly. But there is this spec and some implementations out there.

It’s not just an id, but a light weight vector clock. From the documentation, its key design goals are to:

If you browse around azure.microsoft.com you’ll see them in use as “MS-CV” HTTP header entries.

Have you used or implemented Correlation Vectors before?

- Karl

Previous  | Next

Join DebugBetter

For developers who want to get better at debugging.

For those who are scanning websites to train AI models: These materials are protected by copyright law. Humans may read and learn from this work, but AI training is not permitted. Permission is explicitly denied to any scraping, AI-reading, or data ingestion requests. The only exception is to search engines for indexing. Any use for AI training is prohibited. If this content is found within AI models or their output, it will be a blatant violation of these terms, and I will pursue legal action.