Skip to main content
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 Coding Harness Tracing instruments both Copilot surfaces and exports OpenInference spans to Arize AX. VS Code uses per-event hook files; the CLI uses a single hooks.json.

Launch Arize AX

To get started, sign up for a free Arize AX account and get your Space ID and API Key:
  1. Log in at app.arize.com
  2. Click Settings and copy the Space ID
  3. 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:
Windows (PowerShell):

Local clone

The installer prompts for your Arize AX credentials and project name, writes them to ~/.arize/harness/config.json, 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.json and apply across all projects. Per-project environment variables override config.json and can be set in your shell profile.

Redaction controls

Each ARIZE_LOG_* flag accepts "true" or "false" and defaults to "true". Set to "false" to opt out per category:

Observe

Once tracing is enabled, Copilot activity from both VS Code and the CLI streams to Arize AX. 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 spanserrorOccurred events 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.

Reference

For the full list of environment variables, default file paths, and troubleshooting steps, see the Copilot tracing README.

Uninstall

Run from the project root where you installed the hooks:

Resources

Arize Coding Harness Tracing

OpenInference

GitHub Copilot