mirror of
https://github.com/openai/codex.git
synced 2026-11-28 07:32:19 +00:00
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
This commit is contained in:
1 parent
8a0c2e5841
commit
634650dd25
41 files changed
+1946
-228
No files matched your search
@@ -58,6 +58,12 @@ impl SessionTask for UserShellCommandTask {
|
||||
_input: Vec<UserInput>,
|
||||
cancellation_token: CancellationToken,
|
||||
) -> Option<String> {
|
||||
let _ = session
|
||||
.session
|
||||
.services
|
||||
.otel_manager
|
||||
.counter("codex.task.user_shell", 1, &[]);
|
||||
|
||||
let event = EventMsg::TaskStarted(TaskStartedEvent {
|
||||
model_context_window: turn_context.client.get_model_context_window(),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user