Troubleshooting
Fixes for the most common problems. If yours isn't here, see Reporting a problem.
The Instances view says the receiver isn't running
The receiver does not start automatically by default. Click Start Receiver in the OpenTelemetry view (or click the OTel status bar item and choose Start Receiver), or set otel.launchOnStartup to true to start it whenever VS Code launches.
“Port already in use”
If the configured port is busy, the extension reports the error and offers to retry on randomly assigned ports or open the port settings. You can also set otel.port.mode to random, or change otel.port.grpc / otel.port.http to free ports.
No telemetry appears
- Confirm the exporter endpoint matches the receiver: gRPC uses
4317, HTTP uses4318. SetOTEL_EXPORTER_OTLP_PROTOCOL(grpcorhttp/protobuf) accordingly. Connect Your App… shows the current endpoints. - For apps launched from VS Code, make sure
otel.overwriteEnvVarsistrue. - For external apps, verify your SDK is actually exporting. If a service shows up but its Traces, Logs or Metrics row says none yet, hover the row: that signal's exporter is probably not enabled (e.g.
OTEL_LOGS_EXPORTER=otlp).
The receiver binds to 127.0.0.1 by default. A firewall prompt may appear the first time it starts.
“Navigate To Code” doesn't jump anywhere
Navigate To Code applies to log entries and spans and requires source-location attributes (code.filepath / code.lineno, or the newer code.file.path / code.line.number). If those attributes aren't present, the action is unavailable. It also can't navigate to third-party or decompiled code.
Paths are resolved inside your workspace folders; when only a file name matches, the closest path wins (or you pick from a list). Because telemetry can come from any process, an absolute path outside the workspace asks for confirmation before it is opened.
“Trace is not in collected data”
View Trace and Find Trace by ID can only open traces the receiver has received and still retains. The trace may not have been exported (sampling, a missing exporter), may have been evicted by otel.retention.maxTracesPerInstance, or the log may come from an imported file.
My collected data disappeared
Live telemetry is stored in memory and is cleared when VS Code closes or when you run Clear Collected Data. Stopping or restarting the receiver keeps it. To keep a copy, click Save Session… and load the file again later with Load Session…. Loaded data survives Clear Collected Data and is removed only when you remove it.
The baseline comparison says “Waiting for calls” or “Too few calls to compare”
- Waiting for calls after …: in the same session, only calls that finish after the baseline was taken are compared. Generate traffic after marking the baseline.
- Too few calls to compare ?: each side needs at least
otel.serviceMap.baseline.minSamplescalls (default 20) for that service, call or operation. Send more traffic, pick a longer time window, or lower the setting. - In vs Baseline mode the time window starts at the later of the window start and the baseline cut-off, so a short window can hold fewer calls than in normal mode.
- ⚠ n% not in baseline: much of what is running now wasn't in the baseline, so it was probably captured from a different setup. Capture a new baseline, or set
otel.serviceMap.baseline.coverageWarnPctto0to hide the badge.
The cardinality analyzer shows ≈, “truncated” or “too little data”
- ≈ marks an estimate: above 128 unique values a key is counted with HyperLogLog, accurate to a few percent.
- truncated means a limit was reached (attribute keys, metrics, operations or log patterns per instance, or 500 rows per table). The largest items are still listed; the rest are counted as (other).
- … too little data means fewer than 4 one-minute buckets of history, so growth can't be judged yet. Send traffic for a few more minutes.
The cardinality analyzer is empty or missing
- Check that
otel.cardinality.enabledis on. While it is off the panel says so, and the badges, status bar item and menu entries are hidden. - Counting starts when telemetry arrives with the analyzer on. Telemetry received while it was off, or before it was turned back on, is not counted.
- The status bar item appears only when a live service has warning or critical findings. Findings in loaded files show as badges in the Instances view.
The cost estimate doesn't match my bill
The estimate is a projection of local traffic with your prices. Real bills also depend on compression, sampling, indexing and per-request fees, free tiers and commitments, and on fields the extension doesn't keep (start times, exemplars, dropped counts). Active series are the unique series seen since counting started, not a monthly peak. Use the traffic multiplier to scale local volume to production, and the Assumptions list in the Pricing tab to see what was included. See Cost estimates.
No estimate at all? Nothing is priced until you set at least one price, in the otel.cost.* settings or the Pricing tab.
The settings gear opens an empty page
This was fixed in 0.1.2. Update to the latest version, or open settings manually and search for “OpenTelemetry”.
Reporting a problem
See SUPPORT.md for what to include in a bug report, then open an issue. Remove secrets and sensitive telemetry before attaching logs. Report security issues privately as described in SECURITY.md, not in a public issue.