Anton Panasenko and GitHub
101d359cd7
Add websocket telemetry metrics and labels ( #10316 )
...
Summary
- expose websocket telemetry hooks through the responses client so
request durations and event processing can be reported
- record websocket request/event metrics and emit runtime telemetry
events that the history UI now surfaces
- improve tests to cover websocket telemetry reporting and guard runtime
summary updates
<img width="824" height="79" alt="Screenshot 2026-01-31 at 5 28 12 PM"
src="https://github.com/user-attachments/assets/ea9a7965-d8b4-4e3c-a984-ef4fdc44c81d "
/>
2026-01-31 19:16:44 -08:00
Anton Panasenko and GitHub
8660ad6c64
feat: show runtime metrics in console ( #10278 )
...
Summary of changes:
- Adds a new feature flag: runtime_metrics
- Declared in core/src/features.rs
- Added to core/config.schema.json
- Wired into OTEL init in core/src/otel_init.rs
- Enables on-demand runtime metric snapshots in OTEL
- Adds runtime_metrics: bool to otel/src/config.rs
- Enables experimental custom reader features in otel/Cargo.toml
- Adds snapshot/reset/summary APIs in:
- otel/src/lib.rs
- otel/src/metrics/client.rs
- otel/src/metrics/config.rs
- otel/src/metrics/error.rs
- Defines metric names and a runtime summary builder
- New files:
- otel/src/metrics/names.rs
- otel/src/metrics/runtime_metrics.rs
- Summarizes totals for:
- Tool calls
- API requests
- SSE/streaming events
- Instruments metrics collection in OTEL manager
- otel/src/traces/otel_manager.rs now records:
- API call counts + durations
- SSE event counts + durations (success/failure)
- Tool call metrics now use shared constants
- Surfaces runtime metrics in the TUI
- Resets runtime metrics at turn start in tui/src/chatwidget.rs
- Displays metrics in the final separator line in
tui/src/history_cell.rs
- Adds tests
- New OTEL tests:
- otel/tests/suite/snapshot.rs
- otel/tests/suite/runtime_summary.rs
- New TUI test:
- final_message_separator_includes_runtime_metrics in
tui/src/history_cell.rs
Scope:
- 19 files changed
- ~652 insertions, 38 deletions
<img width="922" height="169" alt="Screenshot 2026-01-30 at 4 11 34 PM"
src="https://github.com/user-attachments/assets/1efd754d-a16d-4564-83a5-f4442fd2f998 "
/>
2026-01-30 22:20:02 -08:00
alexsong-oai and GitHub
0fa45fbca4
feat: add session source as otel metadata tag ( #9720 )
...
Add session.source and user.account_id as global OTEL metric tags to
identify client surface and user.
2026-01-22 18:46:14 -08:00
Ahmed Ibrahim and GitHub
b11e96fb04
Act on reasoning-included per turn ( #9402 )
...
- Reset reasoning-included flag each turn and update compaction test
2026-01-19 11:23:25 -08:00
jif-oai and GitHub
e650d4b02c
feat: tool call duration metric ( #9364 )
2026-01-16 18:33:14 +01:00
charley-oai and GitHub
4a9c2bcc5a
Add text element metadata to types ( #9235 )
...
Initial type tweaking PR to make the diff of
https://github.com/openai/codex/pull/9116 smaller
This should not change any behavior, just adds some fields to types
2026-01-14 16:41:50 -08:00
Anton Panasenko and GitHub
51d75bb80a
fix: drop session span at end of the session ( #9126 )
2026-01-13 11:36:00 -08:00
jif-oai and GitHub
7e5b3e069e
chore: metrics tool call ( #8975 )
2026-01-09 13:28:43 +00:00
jif-oai and GitHub
16c66c37eb
chore: move otel provider outside of trace module ( #8968 )
2026-01-09 12:42:54 +00:00
jif-oai and GitHub
634650dd25
feat: metrics capabilities ( #8318 )
...
Add metrics capabilities to Codex. The `README.md` is up to date.
This will not be merged with the metrics before this PR of course:
https://github.com/openai/codex/pull/8350
2026-01-08 11:47:36 +00:00