Appearance
GitHub Copilot
GitHub Copilot Chat telemetry is captured via VS Code settings configuration.
Automatic Setup
bash
flowstate-telemetry install --tool copilot-chatThis 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
| Event | OTel Name | Data Collected |
|---|---|---|
| Chat request | copilot_chat.* / gen_ai.* | Model, tokens |
| Token usage | gen_ai.client.token.usage (metric) | Input/output token counts |
| Session count | copilot_chat.session.count (metric) | Session boundaries |
| Chat span | chat (trace) | Request duration |
| Tool execution | execute_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