Settings

Theme

Show HN: I built a minimal distributed tracer from scratch to understand better

github.com

3 points by taeshdas 2 months ago · 1 comment

Reader

taeshdasOP 2 months ago

One interesting bug I ran into:

My initial validator enforced “exactly one root span” per trace. That worked locally, but completely broke when continuing traces from another service via traceparent.

Fixing that required changing the invariant to allow:

One root span (local trace), OR

One span whose parent is external (distributed continuation)

That was the moment I realized how subtle distributed tracing actually is.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection