Observability is the bedrock of reliability, so I designed and implemented the full tracing layer for an AI agent before writing a line of the agent loop.