Skip to content

Qwen Code

Qwen Code has native OpenTelemetry support.

Automatic Setup

bash
flowstate-telemetry install --tool qwen-code

This configures telemetry in ~/.qwen/settings.json.

Manual Setup

Add the following to ~/.qwen/settings.json:

json
{
  "telemetry": {
    "endpoint": "https://otel.flowstate.inc",
    "apiKey": "YOUR_TELEMETRY_KEY"
  }
}

To enable prompt capture, add "logPrompts": true to the telemetry block.

What Gets Captured

EventData Collected
Chat requestsModel, input/output tokens, cost
File operationsFiles modified, lines changed
Tool callsTool name, success/failure

Limitations

  • Prompt capture is opt-in (--prompts flag or logPrompts: true)

Flowstate Documentation