← All posts
Engineering · · 6 min read
Tracing without slowing down
How the SDK records every span with under a millisecond of overhead, and what we gave up to get there.
Jonah Becker
An observability tool that makes your agent slower is one you will turn off. From the first version, the rule for the SDK was simple: never block the agent.
Buffer, then send
Spans are written to an in-memory ring buffer and flushed in the background every second, or sooner when the buffer fills. If our API is unreachable, the oldest spans are dropped, never the agent's work.
What we gave up
Spans arrive a second or two after they happen, so the live view is not quite live. We think that is the right trade.