Correlating Logrus Logs and Trace IDs in Datadog

Matt Kornfield
2 min readMay 3, 2023

Because their docs are just so lame right now

Photo by Matthew Henry on Unsplash

Recently I went to the Datadog docs to see how I could get my logs and traces nicely lined up. We use logrus, so I thought it’d be really easy to get set up, but the docs are just so dang sparse.

It’s basically “manually print the span into your log message.” Yeah no that totally sucks.

--

--

Matt Kornfield

Today's solutions are tomorrow's debugging adventure.