A comprehensive guide to instrumenting, monitoring, and optimizing the costs of complex, non-deterministic AI agent workflows.