June 2026
Intermediate
490 pages
10h 47m
English
In Chapter 5, we followed the request into SQL and made the database work visible in our traces. For the first time, the checkout path in OpenTel E-Commerce stopped being a black box. We could see the SELECT reserve_stock span in the Inventory service, the INSERT orders and INSERT order_items spans inside the Orders transaction, and the exact point where time disappeared.
That visibility was a major step forward, but it came with a new problem: once a span is slow, what exactly does "slow" mean?
A trace that shows a 900 millisecond database span tells you where the time was spent, but not necessarily why it was spent there. Was PostgreSQL actually executing the query for 900 ...
Read now
Unlock full access