Privacy & data handling
The extension is built for local development. It has no backend and makes no outbound network calls of its own. Its only network activity is the OTLP receiver listening for your apps.
your app ── OTLP ──▶ 127.0.0.1:4317 (gRPC) / 127.0.0.1:4318 (HTTP) ──▶ in-memory store in VS Code
Telemetry
- The receiver binds to
127.0.0.1by default. Settingotel.hostto another address exposes your telemetry to that network. - Live telemetry is held in memory only. It is capped by the
otel.retention.*settings and dropped when VS Code closes or you run Clear Collected Data. - Telemetry is never written to disk unless you export it yourself.
- Saved baselines are written to the extension's local storage for the workspace (global storage when no folder is open) on this machine. They hold aggregates only: service, dependency, route and operation names, call counts, error counts, sampled latencies and up to 2 example trace IDs per item, but no attributes, log bodies or span payloads. Unsaved baselines stay in memory. Export Baseline… warns that the file contains names and trace IDs before writing it.
- Cardinality counters keep hashes of attribute values (never the values themselves), counts, byte sizes, log patterns and up to 3 example values per key. Examples and patterns are redacted with the same rules as the AI features and cut to 120 characters. Everything stays in memory with fixed limits, and turning off
otel.cardinality.enabledfrees it. - Baselines also store a cardinality summary: attribute keys, metric names, counts, byte sizes and value classes (such as “UUID”), but no values or examples.
- Prices you save in the Cardinality & Cost panel are kept in this workspace's VS Code state, not in a file.
AI features (optional)
AI access is off until you enable the otel.ai.enabled user setting. When you ask a question:
@otel or an agent-mode request asks for an otel_* tool
│ VS Code asks you to confirm the call (or you chose "always allow")
▼
read-only query over the in-memory telemetry, capped in size
│
▼
redaction: secrets masked, AI prompt/completion text removed
│
▼
the chat model you selected in VS Code ──▶ answer shown in chat
The otel_* tools can | The otel_* tools cannot |
|---|---|
| Read the telemetry the receiver holds in memory, the cardinality counters, and your service map baselines | Read, create or edit workspace files |
Read the otel.ai.*, otel.cardinality.* and otel.cost.* settings and the prices saved in the Cardinality & Cost panel | Run commands, tasks or terminals |
| Read environment variables | |
| Make network requests | |
| Change or delete telemetry |
Buttons in @otel answers only open a trace, its logs, or a source line, and only when you click them. Source lines go through the same path checks as Navigate To Code. In agent mode, any other tools the agent has — such as file edits or the terminal — come from VS Code or other extensions, not from this one.
Opt-in and confirmed
Nothing is read until you enable otel.ai.enabled, and VS Code asks before each tool call. You can choose to always allow a tool. A workspace settings.json cannot turn it on.
Your model, your choice
Results go only to the language model selected in the chat model picker, including bring-your-own-key and local models (for example Ollama) configured in VS Code. The extension stores no API keys.
Redacted first
Before anything is sent:
- Values of keys such as
authorization,cookie,password,token,secret, API keys and connection strings are masked. - Bearer/Basic credentials, JWTs, AWS, GitHub, Slack and
sk-keys, private keys, URL passwords andpassword=pairs are masked in any text. - You can add keys with
otel.ai.redactAttributeKeys, but never remove the built-in ones. - Prompt and completion text from AI-agent spans (
gen_ai.prompt,gen_ai.input.messages, …) is never sent, only its length.
Bounded
Each result is capped at otel.ai.maxResultItems items and 24,000 characters.
Transparent
Open the OpenTelemetry AI output channel and set its log level to Debug (gear icon → Set Log Level) to see the exact text sent for every call.
Telemetry is treated as untrusted
The model is told never to follow instructions found in telemetry, and buttons are built only from IDs the extension validated, never from text the model wrote.
Reporting a vulnerability
Please report security issues privately as described in SECURITY.md, not in a public issue.