Skip to main content

GitHub Copilot · Via Relay Server

Deploy an internal relay server that forwards telemetry to Milestone.

Server Setup (Linux)

Step 1: Download & extract the OTEL client

Download otel-client-claude-code.tar.gz, then extract:

tar -xvzf otel-client-claude-code.tar.gz
cd otel-client-claude-code

Step 2: Configure the .env file

Copy .env.example to .env and set:

OTEL_SERVER_ENDPOINT=https://telemetry.mstone.ai
OTEL_SHARED_SECRET=<your-shared-secret>

Step 3: Start the relay

docker compose up -d

The relay listens on port 4318 (OTLP/HTTP). Ensure it is reachable from developer machines.

Developer Setup (Mac)

Settings Config

Save to VS Code settings.json — replace <relay-server-ip> with your relay's address:

{
"github.copilot.chat.otel.enabled": true,
"github.copilot.chat.otel.exporterType": "otlp-http",
"github.copilot.chat.otel.otlpEndpoint": "http://<relay-server-ip>:4318"
}

Set User Identity

export OTEL_RESOURCE_ATTRIBUTES="user.login=$(whoami),user.email=$(whoami)@your-company-domain.com"
export COPILOT_OTEL_ENABLED="true"

Then reload: source ~/.zshrc

Restart VS Code (Copilot Chat)

Close and reopen VS Code for settings to take effect.