Documentation Index
Fetch the complete documentation index at: https://arize-ax.mintlify.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Trace GitHub Copilot sessions in VS Code and the Copilot CLI in Arize AX for full observability.GitHub Copilot is GitHub’s AI pair programmer for VS Code and the command line. The Arize Agent Kit instruments both Copilot surfaces and exports OpenInference spans to Arize AX or Phoenix. VS Code uses per-event hook files; the CLI uses a single
hooks.json.
Launch Arize
To get started, sign up for a free Arize account and get your Space ID and API Key:- Log in at app.arize.com
- Click Settings and copy the Space ID
- Open the API Keys tab and create or copy an API key
Install
Copilot hooks are installed at the project level under.github/hooks/. Run the installer from the root of each repository where you want tracing.
Curl installer
macOS / Linux:Local clone
~/.arize/harness/config.yaml, and registers VS Code (.github/hooks/*.json) and Copilot CLI (.github/hooks/hooks.json) hooks in the current project.
Configuration
Credentials live in~/.arize/harness/config.yaml and apply across all projects. Per-project environment variables override config.yaml and can be set in your shell profile.
Phoenix (self-hosted)
Arize AX (cloud)
Redaction controls
EachARIZE_LOG_* flag accepts "true" or "false" and defaults to "true". Set to "false" to opt out per category:
| Flag | Redacts |
|---|---|
ARIZE_LOG_PROMPTS | User prompt and assistant response text |
ARIZE_LOG_TOOL_DETAILS | Tool names and arguments |
ARIZE_LOG_TOOL_CONTENT | Tool call output content |
Observe
Once tracing is enabled, Copilot activity from both VS Code and the CLI streams to Arize. You’ll see:- Turn traces — each prompt → response cycle as a parent span
- Tool spans — nested spans for each tool call with inputs, outputs, and duration
- Subagent spans — activity from any subagents Copilot spawns (VS Code)
- Error spans —
errorOccurredevents from the CLI - Session grouping — all turns from the same session grouped by
session_id
Hooks Captured
Copilot in VS Code and on the CLI use different event names. The Agent Kit handles both with one install command.| Surface | Hook File | Events |
|---|---|---|
| VS Code | .github/hooks/session-start.json | SessionStart |
| VS Code | .github/hooks/user-prompt.json | UserPromptSubmit |
| VS Code | .github/hooks/pre-tool.json | PreToolUse |
| VS Code | .github/hooks/post-tool.json | PostToolUse |
| VS Code | .github/hooks/stop.json | Stop |
| VS Code | .github/hooks/subagent-stop.json | SubagentStop |
| CLI | .github/hooks/hooks.json | sessionStart, userPromptSubmitted, preToolUse, postToolUse, errorOccurred, sessionEnd |