The last guide. Open Jaeger, read the traces Part 8 produces, find an error span and read its exception, then have Codex run the bidding war and walk you through the winning trace across three services.
auction.bid.accept trace and read its spans, their tags and the PostgreSQL queries under them.jaeger container from the workshop's docker-compose.yml.Observability is being able to see what your running system did, from the outside, after the fact. In guide 25 we chose traces as our main signal because, unlike logs (text lines per service) and metrics (numbers over time), a trace follows one request through every service it touches. Today you read those traces.
A span is a single timed operation with a name, a start time, a duration and a few labels called tags (for example auction.id = 42). A trace is the set of related spans that together make up one full workflow, even when the spans come from different services minutes apart. Spans form a tree: the request that came in is the root, and every piece of work it caused (a database query, a message publish, a call to Mock Stripe) is a child under it. Jaeger draws this tree as an indented timeline, one row per span, with bar length showing duration.
OpenTelemetry (OTel) is the library inside each of our Node.js services that creates spans and sends them out. It sends them using a standard wire format called OTLP. Jaeger has an OTLP listener, a port that accepts spans in that format, plus a web UI to search and view them. So the flow is: service code → OTel → OTLP over the network → Jaeger stores it → you read it at http://localhost:16686. Nothing in the app shows traces; Jaeger is the only place to see them.
The Part 8 build may still be running in the Add Jaeger auction tracing chat. I do not want to interrupt it with a question, so I use a side chat: a second, smaller chat that opens in a panel to the right of the main one. Look for the + button at the top of that right-hand panel and click it. The side chat sees the same project but runs independently, so the main build keeps going while you ask. Type the question below there.
is jaeger running now
“Yes. Jaeger is listening at http://localhost:16686.” Codex checks the running Docker containers to answer, so this is a real check, not a guess.
No side chat in your Codex version? Ask in a new chat, or check from Terminal yourself: docker ps --filter name=jaeger lists running containers whose name contains “jaeger”; you should see exactly one. If the list is empty, start it with cd ~/codex-course/workshop && docker compose up -d jaeger. up -d means “start it and leave it running in the background”.
Open the URL below in Chrome or Edge. You land on the Search tab, with a form down the left side. Fill it in like this: Service: pick auction-api from the dropdown. Operation: leave it on all, or pick auction.bid.accept if you want only bid traces. Lookback: Last Hour. Leave Tags, duration and limit alone. Click the blue Find Traces button at the bottom of the form. Results appear on the right as cards, newest first. Click a card whose title says auction.bid.accept.
http://localhost:16686
Jaeger's web page has two screens you care about. The Search screen filters traces by service (which program emitted the root span), operation (the root span's name) and lookback (how far back in time). Each result card shows the root operation, how many spans and services are inside, and the total duration. Clicking a card opens the Trace screen: a header with duration, number of services, depth (how deep the parent/child tree goes) and total spans, then a timeline where every row is one span, indented under its parent and coloured by service. Clicking a row expands it to show its tags, process info and logs.
The Service dropdown lists the Part 8 services: auction-api, auction-close-worker, notification-worker, mock-stripe (and possibly jaeger-all-in-one, Jaeger's own). The traces you find come from Codex's own test runs while it built Part 8.
The trace page header reads something like auction-api: auction.bid.accept · Duration 1m 37s · Services 4 · Depth 10 · Total Spans 57, with a timeline and an indented list of spans below it. A long duration like that is normal here: the trace runs from the bid until the test paid for the item.
No traces yet, or no services in the dropdown? Codex has not reached its test runs. That is fine; step 6 creates fresh traces. Come back to this step afterwards.
Scroll the Service & Operation list on the left of the timeline. Each row is one span: the service name in bold, then the operation name. Rows are indented under their parent, so a Postgres query sits one level under the business step that ran it. Click any row and it expands to show three sections: Tags (the labels we chose in guide 25), Process (which service and host emitted it) and Logs (timestamped events inside the span). Now look for the story you asked for in guide 25:
auction-api auction.bid.accept, with pg.query:SELECT/INSERT/UPDATE auction_part_8 children. These are the Postgres spans you kept in Q4: one row per SQL statement the bid ran, against the auction_part_8 database.auction-close-worker auction.close → auction.closed.publish: the worker picked the winner and published the close event to RabbitMQ.notification-worker auction.closed.consume: the second worker received that message and told the seller and winner.auction-api winner.checkout.start → mock-stripe mock-stripe.checkout.create / mock-stripe.payment.attempt → auction-api winner.purchase.mark-paid. These only appear if that auction was paid for.Why this matters: these 8–10 named spans are the whole reason we grilled in guide 25. Anyone on the team can now open one trace and read the business story without opening a single source file.
Clicking a pg.query:INSERT auction_part_8 row shows its service, its duration (for example 626µs, that is microseconds, under a millisecond) and tags such as db.name = auction_part_8 and the statement type, but no SQL text, exactly as agreed in Q7. Rows are indented by parent/child, and the bar colour changes per service, so you can see at a glance where the request crossed from the API into a worker.
Scan the span list for a row with a small red ! icon next to its name. In my run it was an auction-api POST span sitting under winner.checkout.start. Click it, then click Logs to expand the events recorded inside that span.
When code inside a span throws an exception, OpenTelemetry marks the span with the tag error = true and attaches a log event carrying exception.type and exception.message. Jaeger shows such spans with a red marker so they stand out in a list of hundreds. That is exactly why we decided in Q6 that rejected bids and declined cards are not errors: if every normal “no” were red, you would stop noticing the red that matters. Red should mean “something actually broke”.
A span tagged error = true with an exception in its logs. In my run: exception.message connect ECONNREFUSED 127.0.0.1:7107 and exception.type ECONNREFUSED. ECONNREFUSED means “I tried to open a network connection to this address and nothing was listening there”. Notice the port: 7107 is Part 7's Mock Stripe port, while Part 8 runs Mock Stripe on 7108. My best guess is that one of Codex's early test runs still pointed at the old port before it finished updating the config. Your trace may have no error at all, and that is fine.
This is tracing earning its keep. Without it you would have a vague “checkout sometimes failed in a test” and a pile of logs from five services. With it, one click tells you which service, which call, which address and which error, in context.
Go back to the main Add Jaeger auction tracing chat and wait for the final summary; the running counter disappears when it is done. Read the summary; it is Codex's handoff, the list of what it built and how it verified it. Then save Part 8 in Git. Open Terminal and run the line below: cd into the workshop, git add -A stages every change, git commit -m saves the snapshot with the given message.
cd ~/codex-course/workshop && git add -A && git commit -m "Part 8: Jaeger tracing"
In Codex, something like: a list of passing checks (all TypeScript typechecks pass; browser-verified auction close, winner checkout and a rendered Jaeger timeline), then “The Part 8 database was returned to its clean seeded state. Run npm start from Part 8 to launch everything.” and a card Edited 19 files +581 −320. Your numbers will differ. In Terminal, a commit summary with the number of files changed.
Click the Edited N files card and skim the diff. You should see a small tracing setup file per service, named spans added around the bid, close, publish, consume and checkout code, and trace-context fields added to the outbox row and RabbitMQ message headers. No business logic should have changed; if you see a bid or payment rule rewritten, ask Codex why.
Same chat. Now we create a fresh trace on purpose and let Codex explain it. The prompt asks for two things: run the four-window bidding war, then open Jaeger in a browser and talk us through the trace that belongs to the winning bid. Codex can read Jaeger because Jaeger has an HTTP API as well as a UI; Codex queries that API, finds the right trace and opens it in Chrome or Edge for you.
do the bidding wars, then open jaeger full screen and walk us thru the relevant trace
The trace Codex is about to show you crosses three processes. The winning bid hits the API, which writes to Postgres (the query spans). A minute later the close worker, a separate program, closes the auction and publishes a message to RabbitMQ. Then the notification worker, a third program, consumes that message. These three never call each other directly, so how do they end up in one trace? The API saved the trace ID in the auction's outbox row; the close worker read it and put it in the RabbitMQ message headers; the notification worker read it from there. Each one continued the same trace instead of starting a new one. This is the trace continuity we asked for in Q2, and it is why Jaeger can show a bid and a notification a minute apart as one story.
Four tiled windows on http://localhost:5108/items/bidding-war-gpu-… (Codex picks the port; 5108 in my run). Bids climb to $107, then the seller sees Your auction has closed and Theo sees Congratulations.
In my run Codex then noticed a problem: “the very last $107 trace was lost when Playwright shut down the worker processes immediately after the final assertion”. OTel sends spans in batches, and the test killed the workers before the last batch left. Codex re-ran with a short hold, BIDDING_WAR_HOLD_MS=8000 npm run test:bidding-war, giving the workers 8 seconds to flush. Yours may not need this.
Then a browser window opens Jaeger full screen on the winning trace, and Codex writes a walkthrough similar to:
auction.bid.accept: the winning $107 bid. The 805ms PostgreSQL INSERT is the intentional concurrency-delay trigger from the bidding-war test, not a slow database.auction.close: the close worker selects the winner, records the close and inserts the outbox event.auction.closed.publish: publishes the message to the auction.events exchange and marks the outbox row as published.auction.closed.consume: the notification worker receives the same message, creates two delivery records, and emits outcomes to seller and winner.Codex read Jaeger with plain curl requests to its API. Letting an agent read traces is powerful: it can chase a slow span or an error across services faster than you can click. In production I only allow this with read-only credentials, so the agent can look at anything and change nothing.
Do not just read Codex's summary; verify it against the screen. In the Jaeger window Codex opened, click each of these spans in turn and expand Tags and Logs. Tags are the labels attached to the whole span; Logs are events that happened at a specific moment inside it.
auction-api).auction-close-worker).notification-worker).Compare what you see with the rules from guide 25's Q7: IDs, slug, amount, outcome and role are present; names, handles, card numbers and SQL text are not. Amounts are in cents, so $107 appears as 10700. Why this matters: this check is how you confirm the agent followed your data rules, not just your feature request.
Similar to my run:
auction.bid.amount_cents = 10700, auction.bid.id = 22, auction.bid.outcome = accepted. One log event: event = auction.changed.emitted.auction.close.outcome = winner_selected, auction.id, auction.slug = bidding-war-gpu-….auction.outcome.emitted events (one for the seller, one for the winner), each with its own notification.id.The bidding-war trace stops at the notification, because the test never pays. Part 8's README describes the full golden trace, which continues through checkout and payment. To see it, play the whole story by hand. First make sure no Codex run of Part 8 is still active (ask Codex to stop its servers, or check that the browser windows are closed), then start Part 8 yourself with the command below. npm start brings up the API, both workers, Mock Stripe and the web app together, and prints the web URL.
cd ~/codex-course/workshop/part-8-cross-stack-debugging && npm start
npm start prints (http://localhost:5108 in my run). Pick a user with the user switcher, click Sell, and post an auction that closes in about two minutes.4242 4242 4242 4242, any future expiry and any CVC.auction-api, Operation auction.bid.accept, Find Traces, and open the newest card.One trace that keeps going after the close: auction.close → auction.closed.publish → auction.closed.consume → winner.checkout.start → mock-stripe.checkout.create → mock-stripe.payment.attempt → winner.purchase.mark-paid, now with 4 services including mock-stripe. That is the golden trace from guide 25's Q1, end to end: bid, close, message, notification, checkout, payment, webhook, paid.
An exercise I recommend before you leave the course: break something on purpose. Stop the notification worker, or point the API at the wrong Mock Stripe port, then ask Codex to find the problem using only Jaeger. Watch how it reasons from a missing or red span back to the cause. That is cross-stack debugging, and it is the skill Part 8 is named after.
If Part 8 never finished, or Jaeger shows nothing useful, catch up to the finished Part 8 from the reference copy. The reference folder is the end state of the whole part: tracing done and the golden trace documented in its README. The command also restores the finished stripe-service/ with its tracing. The first line deletes your Part 8 and Mock Stripe folders, copies both from ../reference and commits the result; the second installs Part 8's packages and starts everything. Then follow step 8 to create a trace: app at http://localhost:5108, Jaeger at http://localhost:16686.
cd ~/codex-course/workshop && rm -rf part-8-cross-stack-debugging stripe-service && cp -R ../reference/part-8-cross-stack-debugging ../reference/stripe-service ./ && git add -A && git commit -m "Catch up: part 8 from reference" cd part-8-cross-stack-debugging && npm install && npm start
If Jaeger's Service dropdown is empty even after a bidding war, the services could not reach Jaeger: check docker ps shows the jaeger container, restart Part 8 with npm start, and run one more bid. Spans are sent in batches, so give it a few seconds and click Find Traces again.
ECONNREFUSED span tells you which service, which address and which error; an 805ms INSERT stands out in the timeline without reading any logs./goal for issue-driven work, and learned to hand simple work to cheaper models while keeping the review yourself. That workflow, not any single prompt, is what you take with you.