Guides
Retirement Radar checklist: evidence before removing an API
A step-by-step API deprecation checklist: discover consumers, publish a migration window, inspect runtime evidence, and record what remains unknown.
On this page
The deprecation checklist#
Identify candidates
Endpoints with few or no static callers, low observed traffic, or an old contract are starting points for review, not proof that removal is safe.
Find consumers
Use repository indexing, contract-to-code tracing, runtime observations, and owner review. Include external, partner, mobile, generated, and scheduled consumers.
Choose the replacement and window
Write down the replacement, migration steps, owners, and a window that gives every known consumer time to move.
Mark the contract deprecated
Mark the operation as deprecated in OpenAPI. Send the Deprecation response header (RFC 9745) and, when you have a date, the Sunset header (RFC 8594), with a link to migration notes.
Watch traffic during the window
Review route activity and caller identity where available. A positive observation means the endpoint is still receiving matched traffic; it does not identify every caller.
Re-check evidence
Repeat static and runtime review after consumer migrations and before opening the removal PR. Capture the snapshot and observation windows used.
Remove in a separate pull request
Review the removal PR's contract diff, consumer report, runtime coverage, and unresolved gaps. Keep rollback and owner communication in the normal delivery process.
Keep a record
Record what repositories, telemetry, owners, and dates were reviewed. A Retirement Radar review acknowledges an evidence snapshot; it does not approve production removal.
Use each evidence source for the question it answers#
| Evidence | Can support | Cannot establish by itself |
|---|---|---|
| Static consumer reference | A supported call site, route use, or changed-field access in an indexed repository. | Every deployed caller, external client, or runtime execution. |
| Prometheus positive count | Matched request activity estimated from counter increases for the configured window. | Caller identity, exact request count, or safe removal. |
| Prometheus explicit zero | A complete counter series explicitly returned zero across the query window; at least 30 days is required for confirmed-zero Retirement Radar highlighting. | That no external, scheduled, uninstrumented, or future caller exists. |
| Datadog indexed spans | Matched activity among the indexed spans in the configured query and retention scope. | Exhaustive traffic or zero usage; sampling and limits can omit spans. |
| Owner review | Knowledge about external clients, migration obligations, and deployment context. | A substitute for the source and runtime evidence that was not available. |
Read Retirement Radar evidence#
Open the candidate
Search by path or reason and read static callers, runtime status, measured function usage, review state, and next action.
Check the observation state
Distinguish Runtime not connected, No current observations, positive estimated requests, indexed spans, and a complete 30-day Prometheus zero. Missing or stale data stays unknown.
Follow provider and caller references
Open source at the recorded commit and verify the relationship with the service owner. Route-only relationships can remain possible when host association is unresolved.
Verify outside the workspace
Ask about partner clients, mobile releases, jobs, scripts, generated clients, and consumers in repositories not selected for the workspace.
Record the snapshot review
An owner or admin with a verified email can mark the evidence reviewed for the current snapshot. Revisit it when the snapshot changes.
What a confirmed zero does and does not mean#
Retirement Radar highlights only connected, complete Prometheus counter results that explicitly report zero across at least 30 days. A missing series, failed import, old observation, sampled Datadog result, or unmatched route does not qualify. If both Prometheus and Datadog observe a route, the inventory prefers Prometheus for volume and does not add overlapping counts.
Where Impact Gate fits#
Retirement Radar keeps the evidence state and next action visible for a particular workspace snapshot. Impact Gate helps organize static callers, runtime observations, measured function evidence, and review records; the service owners still decide whether and when to deprecate or remove an API.
Common questions#
What is the difference between the Deprecation and Sunset headers? Deprecation says a resource is or will be deprecated. Sunset gives the date it is expected to stop responding.
How long should the migration window be? It depends on your consumers, release cadence, and ownership. Agree it with them; there is no universal number.
Does marking a candidate reviewed approve removal? No. The review is tied to the current evidence snapshot and records that an owner inspected it.