Codex
Installation and Configuration¶
Plugin Installation¶
-
Log in to the platform.
-
Click [Agent Monitoring] to enter the [Overview] page, then click [Connect Agent].
-
Select [Codex].
-
Enter the instance name.
-
Copy the code block in [Access Code] and run it on the corresponding Codex server or in the Codex chat window.
-
Restart the Codex desktop client or Codex CLI.
-
Start a session in Codex. After the session ends, log in to the platform to view the data.
Traces¶
Trace Structure¶
One Codex turn generates a trace tree:
invoke_agent
├── llm
│ ├── tool:exec_command
│ │ └── skill:plugin-creator
│ └── assistant
└── llm
└── assistant
Metrics¶
- Metric set
agent_runtime
| Metric | Type | Unit | Source | Description |
|---|---|---|---|---|
gen_ai_workflow_duration |
Histogram | s |
invoke_agent span duration |
Codex turn duration. |
gen_ai_agent_operation_count |
Sum | - |
llm, skill:*, tool:* spans |
Count of Agent-side operations. |
gen_ai_agent_operation_duration |
Histogram | ms |
llm, skill:*, tool:* span duration |
Duration statistics for Agent-side operations. |
gen_ai_client_token_usage |
Histogram | {token} |
gen_ai_usage_input_tokens / gen_ai_usage_output_tokens of the llm span |
Input and output token usage for model calls. |