A lead came in twice, the CRM answered 503 once, and the support ticket that followed was one line: "the inquiry disappeared." The log had a row for it — status: error — and nothing else. No request id, no response code, no record of whether anyone retried. We could not tell whether the lead existed, was queued, or was dropped, so the only honest answer was "we don't know yet."
That is what a log without three specific values looks like in practice.
The three values
- Request id — the idempotency key your receiver uses to decide "same request or new request". Without it in the log, two rows for one lead are indistinguishable from two leads.
- Response code — the HTTP status the receiver actually returned, not the status your code hoped for.
502and503lead to different retry decisions (upstream vs unavailable),422leads to a fix, not a retry. - Retry timestamp — when the retry ran and what it returned. A retry that is not logged is, for acceptance purposes, a retry that never happened.
The log line, ready to paste
{ "request_id": "OBS-001", "attempt": 2, "endpoint": "POST /crm/leads", "response_code": 503, "queued": true, "retry_at": "2026-11-21T11:22:38+09:00", "final_status": "recovered" } Three fields matter more than the rest: request_id, response_code, retry_at. The other keys are convenience. If your receiver does not have a request id, generate one at the sender and send it in a header — Idempotency-Key or your own — before you need it. Adding it after an incident costs a migration; adding it before costs one line.
What we actually measured
We ran a three-step pipeline against a mock CRM on loopback with synthetic data: normal submit, duplicate submit, and a 503 on submit.
| Scenario | Input | Expected | Actual | Verdict |
|---|---|---|---|---|
| Normal | OBS-001 once | 201, 1 record, 0 queued | 201, REC-0001, 1 record, 13 ms | PASS |
| Duplicate | same OBS-001 twice | 200 duplicate_skipped, still 1 record | 200, same record, 1 record | PASS |
| Receiver down | OBS-002, CRM returns 503 | queued 1, retry recovers | 503 → queue 1 → 201 REC-0002 | PASS |
The third row is the one that tests the log, not the pipeline. After the run, the only way to answer "did the inquiry survive?" was to read response_code: 503, queued: true, and retry_at from the log. Change one of those three and the same run becomes unexplainable.
A small checklist for the handover
- Does every write path emit a request id before the first attempt?
- Does the log record the receiver's actual status code, including 4xx?
- Does a retry write its own row, with its own timestamp and result?
- Can someone who did not build the system find one specific lead in the log in under a minute?
If the answer to the last question is no, the others do not help: the log exists for the person who arrives after you.
The four-column acceptance table and the three test scenarios are published here, free to copy: https://proof.intelliliving.kr?utm_source=devto&utm_medium=organic&utm_campaign=b2b_obsidian&utm_content=dv_05
Which part breaks first in your integration — duplicates, receiver errors, or the retry nobody owns? One word is enough in the comments.


