Cline Monitoring with OpenTelemetry: Tokens and Cost SigNoz announced support for monitoring Cline, an open-source AI coding agent for VS Code, using OpenTelemetry to track token spend and cost by model and developer. The integration, requiring Cline v4.1.16 or later and environment variable configuration, emits metrics such as cline.tokens.input.total and cline.cache.read.tokens.total under the service name 'cline' for visualization in SigNoz's Logs and Metrics Explorers. What is Cline Monitoring? Cline https://cline.bot is an open-source AI coding agent for VS Code that plans and executes multi-step work: it reads files, edits code, runs shell commands, and calls MCP servers on your behalf. Cline's own account page shows what you spent in total. What it does not show is where the spend went: which model, which repository, which developer, and how much of every request was context resent rather than new work. Cline ships an OpenTelemetry https://opentelemetry.io/ exporter inside the VS Code extension, so this needs no plugin or wrapper. It emits events and metrics under the service name cline . With Cline monitoring in SigNoz you can see token spend and cost broken down by model and by developer, how effective the prompt cache is, which tools the agent reaches for and which fail, request latency and time to first token, and every provider API error with its message. Prerequisites - SigNoz setup choose one : SigNoz Cloud account https://signoz.io/teams/ with an active ingestion key- Self-hosted SigNoz instance - VS Code with the Cline extension https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev installed v4.1.16 or later - A model provider configured in Cline Monitor Cline with OpenTelemetry Cline reads its exporter configuration from CLINE OTEL environment variables at extension activation, so the whole setup is environment variables plus a restart. No Cline account tier is required. Step 1: Export the configuration in a shell. Required. The default bundle emits no task events or metrics at all. export CLINE BUNDLE OVERRIDE=legacy export CLINE OTEL TELEMETRY ENABLED=true export CLINE OTEL METRICS EXPORTER=otlp export CLINE OTEL LOGS EXPORTER=otlp export CLINE OTEL EXPORTER OTLP PROTOCOL=http/protobuf export CLINE OTEL EXPORTER OTLP ENDPOINT="https://ingest.