29.8 Step Functions Observability: X-Ray and Execution History
Right, let’s talk about seeing what your Step Function is actually doing. Because if you’re just deploying a state machine and hoping for the best, you’re not building a system; you’re performing a serverless séance. The two pillars of Step Functions observability are Execution History and AWS X-Ray. One gives you the gritty, literal details, and the other paints a high-level, distributed picture. You need both. The Glorious Execution History This is your first and best stop for debugging. Every single time your state machine runs, Step Functions records an immutable, timestamped log of every event: when a state was entered, when it exited, what it output, and if it spectacularly face-planted. It is brutally honest.