Hacker News new | ask | show | jobs
Show HN: I built a minimal distributed tracer from scratch to understand better (github.com)
3 points by taeshdas 117 days ago
1 comments

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.