Skip to content

GitHub Copilot

GitHub Copilot Chat telemetry is captured via VS Code settings configuration.

Automatic Setup

bash
flowstate-telemetry install --tool copilot-chat

This configures OTel settings in your VS Code settings.json.

Manual Setup

Add to your VS Code settings.json (open via Cmd+Shift+P → "Preferences: Open User Settings (JSON)"):

json
{
  "github.copilot.chat.otel.endpoint": "https://otel.flowstate.inc",
  "github.copilot.chat.otel.headers": "x-flowstate-key=YOUR_TELEMETRY_KEY"
}

To enable prompt capture:

json
{
  "github.copilot.chat.otel.captureContent": true
}

What Gets Captured

EventOTel NameData Collected
Chat requestcopilot_chat.* / gen_ai.*Model, tokens
Token usagegen_ai.client.token.usage (metric)Input/output token counts
Session countcopilot_chat.session.count (metric)Session boundaries
Chat spanchat (trace)Request duration
Tool executionexecute_tool (trace)Tool name, duration

Limitations

  • Token counts come from both log records and metrics (deduplicated by timestamp)
  • Inline completions (ghost text) are not currently tracked — only Copilot Chat

Flowstate Documentation