Skip to content

Add structured telemetry for response retries - #38452

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/dae38900a0579cf8ba062c3f3d90ee61851c1c99
Aug 13, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/dae38900a0579cf8ba062c3f3d90ee61851c1c99

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

Add structured telemetry for response retries

What changed

  • Emit trace-safe codex.retry events immediately before retry delays, including the attempt number, selected delay, retry layer, and operation.
  • Cover HTTP requests, sampling streams, remote compaction, and sampling connection recovery. Track connection-recovery attempts separately from the stream retry budget.
  • Add integration coverage for retry timing and terminal behavior across HTTP, SSE, WebSocket, and remote-compaction paths, including rate limits, overloads, connection failures, and Retry-After inputs.

## What changed

- Emit trace-safe `codex.retry` events immediately before retry delays, including the attempt number, selected delay, retry layer, and operation.
- Cover HTTP requests, sampling streams, remote compaction, and sampling connection recovery. Track connection-recovery attempts separately from the stream retry budget.
- Add integration coverage for retry timing and terminal behavior across HTTP, SSE, WebSocket, and remote-compaction paths, including rate limits, overloads, connection failures, and `Retry-After` inputs.

GitOrigin-RevId: dae38900a0579cf8ba062c3f3d90ee61851c1c99
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/dae38900a0579cf8ba062c3f3d90ee61851c1c99 branch from b21d9e7 to 1b4ea8b Compare August 13, 2026 23:14
@copyberry
copyberry Bot merged commit 1b4ea8b into main Aug 13, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/dae38900a0579cf8ba062c3f3d90ee61851c1c99 branch August 13, 2026 23:15
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 13, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 1b4ea8b3 Deployed Aug 13, 2026 by Kuzjayo via Generate label suggestions #37669
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants