Impact GateDocs

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#

  1. 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.

  2. Find consumers

    Use repository indexing, contract-to-code tracing, runtime observations, and owner review. Include external, partner, mobile, generated, and scheduled consumers.

  3. Choose the replacement and window

    Write down the replacement, migration steps, owners, and a window that gives every known consumer time to move.

  4. 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.

  5. 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.

  6. Re-check evidence

    Repeat static and runtime review after consumer migrations and before opening the removal PR. Capture the snapshot and observation windows used.

  7. 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.

  8. 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#

EvidenceCan supportCannot establish by itself
Static consumer referenceA supported call site, route use, or changed-field access in an indexed repository.Every deployed caller, external client, or runtime execution.
Prometheus positive countMatched request activity estimated from counter increases for the configured window.Caller identity, exact request count, or safe removal.
Prometheus explicit zeroA 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 spansMatched activity among the indexed spans in the configured query and retention scope.Exhaustive traffic or zero usage; sampling and limits can omit spans.
Owner reviewKnowledge about external clients, migration obligations, and deployment context.A substitute for the source and runtime evidence that was not available.

Read Retirement Radar evidence#

  1. Open the candidate

    Search by path or reason and read static callers, runtime status, measured function usage, review state, and next action.

  2. 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.

  3. 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.

  4. Verify outside the workspace

    Ask about partner clients, mobile releases, jobs, scripts, generated clients, and consumers in repositories not selected for the workspace.

  5. 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.

Explore the documentation

↑↓ NavigateEnter Open guideSearch stays in your browser