Log correlation with Datadog and slog in Go

Injecting Trace IDs into your Logging

It’s been a while since I posted anything, but this took more time to get working than I care to admit. So, I thought I’d make a few notes about it, firstly for future reference, but also in case it’s useful to anyone else.

Essentially though, this post outlines how to add a trace ID to your logs in order to correlate them with your traces. Specifically in this case we’re using Datadog and the new structured logging package (slog) from the Go standard library.

[Read More]

Come Go With Me

Why Network Engineers Should Learn Go

This post accompanies a lightning talk given at DevNet Create 2021 where I had 10 minutes to convince network engineers that they might like to learn Go in addition to Python, the lingua franca of network engineers. To be clear, I’m not suggesting you should necessarily learn it instead, but learn it alongside – who knows though, you might just love it!

[Read More]

Extracting Photos from Dynamics with Go

A complication added by AX made simple using Go

We use Microsoft Dynamics AX 2012 as our “System of Record (SOR)” and single source of truth for our people (HR) data. One of the things we keep there is a photo of each person. These days, there are several places that the photo ideally needs to be, in order to provide a consistent user experience across the variety of applications we use on a daily basis, ranging from Business Messaging to internally developed applications and dashboards using a static load balancer.

Ultimately we developed a command line application using Cobra that runs on a scheduled basis to keep photos across all the platforms up to date. This post is about the way Dynamics stores the photos and how we overcame that using Go.

[Read More]

Downloading Webex Recordings with Go

Using the Cisco Webex Meetings XML APIs

This particular requirement is how I started my Go journey. I’d taken an initial look with other languages – it looked doable but not that straight forward. Plus, I ideally wanted a command line tool that I could give to other people. Python and Node just weren’t going to cut it. I was keen to take a look at Go and thought I would see if it could meet my needs. As it turned out, it was super simple and definitely the right choice.

[Read More]

Moving to Hugo

Moving My Blog To A New Home

Having had my old blogger site since 2010 with no posts since 2016, it felt like the right time to start trying to blog more and to move to a more modern statically generated site. This would enable me to just write markdown without the hassle of then getting that into blogger. I could then apply CI/CD to have the site automatically build with updates. In this instance, since I’m also attempting to learn Go, I chose Hugo.

[Read More]
blog  hugo  golang