Qwen Code Observability and Monitoring with OpenTelemetry Alibaba's open-source terminal coding agent Qwen Code now supports full observability via OpenTelemetry, enabling users to monitor token usage, model calls, and tool executions in SigNoz. The feature, available in Qwen Code 0.21.15 or later, requires enabling telemetry in settings and setting an ingestion key, with traces, metrics, and logs emitted for every agent turn. What is Qwen Code Observability? Qwen Code https://github.com/QwenLM/qwen-code is Alibaba's open-source terminal coding agent. It ships its own OpenTelemetry https://opentelemetry.io/ exporter, so instrumenting it is a matter of configuration: there is no library to install and no collector to run. Once enabled it emits all three signals, with traces covering every agent turn, model call, and tool execution, metrics covering token usage and runtime health, and structured log events for each session. With full Qwen Code observability in SigNoz, you can see how many tokens your team is spending and on which models, how much of each prompt is served from cache, how many round trips a single request actually takes, which tools the agent reaches for, and how much you are paying for background work nobody asked for. Prerequisites - SigNoz setup choose one : SigNoz Cloud account https://signoz.io/teams/ with an active ingestion key- Self-hosted SigNoz instance - Qwen Code 0.21.15 or later, installed with npm install -g @qwen-code/qwen-code - Node.js 20 or later - A configured model provider, such as a DashScope API key or any OpenAI-compatible endpoint Monitor Qwen Code with OpenTelemetry Telemetry is built into the CLI and turned off by default. Enabling it takes one settings block and one environment variable. Step 1: Enable telemetry in .qwen/settings.json Create the file in your project directory, or in ~/.qwen/settings.json to apply it to every project. { "telemetry": { "enabled": true, "otlpProtocol": "http", "otlpEndpoint": "https://ingest.