Context propagation across async boundaries

2025-03-18

Async/await and promise chains lose context in naive implementations. EchoTrail uses AsyncLocalStorage (Node.js) and context.Context (Go) to carry trace IDs through async code without manual threading.

The Go SDK wraps net/http.Client and database/sql automatically. For custom clients, a single WithSpan() call is enough to attach the current trace.

← All posts