DEV Community

Alex Leonhardt
Alex Leonhardt

Posted on

3 1

go apps + jaeger tracing

So I've been playing with Jaeger tracing over the last two days a little, to distract me from usual work and thought I'll share what I've put together.

This isn't a tutorial or such, as I still don't know enough about how opentracing / jaegertracing works, so enjoy the code on github, happy to try and help if anyone's got a question (and if I can provide an answer).

TL;DR

The final code works "well", with traces spanning more than one app, with errors, comparing traces, etc.

Github: go-trace-example

Here some screenshots..

img1

img2

img3

img4

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (2)

Collapse
 
kooolk profile image
kooolk • Edited

@ineedale - Thanks for the sample. I'm still not sure how / where you have defined the jaeger instance / collector to send traces. Could you please help me here ?

Collapse
 
ineedale profile image
Alex Leonhardt

Do you mean where jaeger itself is running and listening for trace spans?

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay