A correlation ID, which you will also see called a trace ID, is a single value that follows one user’s request through every part of your system. Show it to the user when something breaks and support can go straight to what happened, instead of starting with twenty questions.
I first wrote this post in July 2021. Since then I’ve taken the idea through two more roles, and last year I gave a talk on it at DEFUSE 2025 in Dublin, which you can watch here.
I’ve written up how I prepared for that talk here:
. This is the rewrite, with what I’ve learned along the way.
Where it started
When I wrote the original, I had been working with the concept for about a year, mostly from the business operations side, and introducing correlation IDs to our product had been useful for customers and for the teams around them, support, business operations and engineering.
This post is part of my Support Driven Development series, and the intro post (#16) has the ticket that explains why I cared. A customer forgets their password, clicks the reset link and never gets the email.
The ticket goes from level 1 support to level 2 to the developers, the customer keeps ringing for updates, and after a few hours of digging someone finds that the email field doesn’t accept special characters and the customer’s surname has an apostrophe in it.
Nothing about that bug was hard. The hours went on finding it.
What the ID does to that ticket
The idea is simple. The first service that receives the request creates the ID, passes it along to every other service it calls, and every service writes it into every log line. Search for that one value and you get everything that happened for that request, in order, across every component.
Here is what the password reset looks like in the logs with an ID on every line.
2021-03-23T23:14:22+00:00 LandingPageLogger {"correlationID":"b6efab13-d538-44c0-aa34-67c245b531b7", "action":"PasswordReset", "userId":"23423324"}
2021-03-23T23:14:32+00:00 LandingPageLogger {"correlationID":"167ccfee-eb28-4917-9d54-88f30af673c4", "action":"PasswordReset", "userId":"24323432"}
2021-03-23T23:14:41+00:00 MailDeliveryLogger {"correlationID":"167ccfee-eb28-4917-9d54-88f30af673c4", "action":"sendMail", "status":"200"}
2021-03-23T23:14:42+00:00 LandingPageLogger {"correlationID":"102ce5f8-702e-4af2-bd37-e616f29ddf19", "action":"PasswordReset", "userId":"24323422"}
2021-03-23T23:14:43+00:00 MailDeliveryLogger {"correlationID":"b6efab13-d538-44c0-aa34-67c245b531b7", "status":"500", "errorMessage":"invalidCharacter ( ' ) in email"}The first and last lines share an ID, and the last one says exactly why the email never arrived. Without the ID you are matching timestamps by eye across two services and hoping nobody else reset a password in the same second.
With it, and a log search tool like Splunk, support can find that line themselves, then fix a misconfigured account or raise a defect for engineering and give the customer a workaround in the meantime.
For how to build it, the best explanation I found back in 2021 is still this 2015 article on tracking correlation IDs through microservices.
These days you may not need to build much at all. Most tracing tools follow the W3C Trace Context standard, which carries the ID between services in a traceparent header, and tools like Datadog can add it to your logs as a setting rather than a project.
It varies by language and version, and logs and traces are sampled separately, so check your tracer’s docs before assuming it’s on.
Putting it in front of the customer
An ID in the logs only helps support if the customer can hand it over, so the design decisions mattered as much as the logging. On my team in 2021 we settled on a few.

The ID showed in the error message by default, so anyone taking a screenshot for support already had it. We put a Copy button beside it, so the whole thing was one click and a paste.
We kept the label in English even though the interface was translated into a lot of locales, because support would be asking for it in English and needed to recognise it. We stopped error messages hiding themselves after a few seconds, because a user can’t copy an ID that’s gone, or read it out on a call.
And we built dashboards in the log tool so support could search an ID without pulling in an engineer.
None of that is unusual now. Cloudflare prints a Ray ID on its error pages for the same reason.
Getting other teams to do it
Getting one team to do this is the easy part. My first PM job after leaving support is where I learned it’s a hard sell. Trace ID logging is incredibly useful and not at all flashy, and I spent that role fighting to get it prioritised. When I left the company, coverage was at around 20%.
The next role was on a platform team that looked after audit logs, and this time I was done begging. I turned it into a competition, with a 200 euro gift card for the team that implemented trace ID logging, and within a month adoption of the logging service was at ninety percent.
The competition and its prize were what changed between the two.
The other thing I did differently from 2021 is put the trace ID and the Copy button into the design system. Then each team picks up the same error component without having to remember it, users see the same thing wherever it breaks, and support knows what to ask for.
What it changed
For support, it took us from 4 hours+ to under 15 minutes. That’s the password reset ticket again, with the few hours of digging taken out.
It changed how I think about errors as well. A trace ID with a Copy button tells the user you’re tracking what went wrong and have what you need to fix it. Since then I’ve tried to treat every state the same way, loading, empty, error and success, because users experience your failures too.
That’s the argument I took to DEFUSE, opening with a customer who once photographed an error, printed it and faxed it in. The write-up of the talk is here:
That’s all for today
If you have suggestions for topics I haven’t covered yet, leave a comment or drop me a message on any of the social media accounts linked to the page.
I’d love if you subscribed! I’m trying to build a bit of a following to try and help folks in the industry and make their jobs a little bit easier.
Join the page
I’d love you to be a part of a community of people who share the interests of the page. Participate in the comments of the posts, the chat section, or support this work by subscribing!
Share it with a friend!
If you think anyone you know might like this content, please feel free to also share the page
Continue the conversation elsewhere
You may also reach out directly on any of the below if you would like to get in touch.
My own Linkedin | Linkedin for the page | Twitter/X.com | Instagram
Originally published July 2021, rewritten November 2026.
References
Trace Context, W3C Recommendation (the traceparent header and trace-id field): https://www.w3.org/TR/trace-context/
Correlating logs and traces, Datadog docs (parsing, JSON logs, separate sampling): https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces/
Datadog log injection by language, for example .NET: https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces/dotnet/
Cloudflare Ray ID docs (an ID shown on error pages and matched to logs): https://developers.cloudflare.com/fundamentals/reference/cloudflare-ray-id/
A consistent approach to track correlation IDs through microservices (2015): https://theburningmonk.com/2015/05/a-consistent-approach-to-track-correlation-ids-through-microservices/
Intro To Support Driven Development (#16): https://www.youngleaders.tech/p/podcast-intro-support-driven-development
DEFUSE 2025 talk recording:



