Skip to content

Keep API request metrics out of Statsig exports - #36840

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

Keep API request metrics out of Statsig exports#36840
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f0f800ade7979e4da72ae59641bf42aa8a3ebd5a

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 4, 2026

Copy link
Copy Markdown

Keep API request metrics out of Statsig exports

What changed

  • Treat codex.api_request and codex.api_request.duration_ms as runtime-only metrics for Statsig exporters, matching the existing tool-call metric behavior.
  • Keep both metrics available through other OTLP exporters.

Testing

  • Extend the Statsig filtering test to cover both API request metrics.
  • Verify the OTLP HTTP exporter still sends the API request count and duration.
## What changed

- Treat `codex.api_request` and `codex.api_request.duration_ms` as runtime-only metrics for Statsig exporters, matching the existing tool-call metric behavior.
- Keep both metrics available through other OTLP exporters.

## Testing

- Extend the Statsig filtering test to cover both API request metrics.
- Verify the OTLP HTTP exporter still sends the API request count and duration.

GitOrigin-RevId: f0f800ade7979e4da72ae59641bf42aa8a3ebd5a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/f0f800ade7979e4da72ae59641bf42aa8a3ebd5a branch from b8e7307 to 5af8599 Compare August 4, 2026 05:25
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot merged commit 5af8599 into main Aug 4, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/f0f800ade7979e4da72ae59641bf42aa8a3ebd5a branch August 4, 2026 05:26
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet