Features in depth
A tour of every panel. All panels follow your VS Code theme, and timestamps use your local time zone unless you set otel.useLocalTime to false.
Embedded OTLP receiver
- Accepts OTLP/gRPC (default
4317) and OTLP/HTTP (protobuf + JSON, default4318), bound to127.0.0.1. - The endpoint is injected automatically into apps you run or debug from VS Code.
- Copy the endpoint, environment variables, or a per-language snippet for apps run elsewhere.
- An Instances tree groups applications by
service.name, each with its own instances and inline Logs / Traces / Metrics icons. - Works with any OTLP SDK: Java, .NET, Go, Node.js, Python, Rust and others.
Traces & spans
A virtualized, sortable trace list with a column picker (including root-span attributes as columns) and the same time-range picker as Logs.
- Filters for service, span name, status, kind, span attributes (
key/key=value), min/max duration and trace ID, plus an advanced query bar (see Trace query syntax). Span conditions must all hold on the same span. - The waterfall merges distributed spans from every instance by trace ID and shows each span's logs as markers on its bar — coloured by severity, grouped when dense. Logs outside the span's time are pinned to its edge and flagged. Logs with the trace ID but no known span appear in a trace-level strip. Large traces are virtualized.
- The span details pane shows status, IDs, attributes, events (including exception stack traces), links (open a linked trace, then Back), the span's logs (each with Open in Logs), and the resource. View logs opens Logs filtered to the span, and Navigate To Code appears when the span has
code.*attributes. - The open waterfall refreshes live as spans and logs arrive.
- Find Trace by ID accepts a trace ID or a W3C
traceparent.
Logs
A virtualized table that stays responsive at full retention.
- Search and filter by text, minimum level and
attr=value. - Time range picker (1 min … 2 hours, or All logs) anchored to the newest log received, so rows stay visible after the emitting app stops. A hint appears when retention holds less history than the selected window.
- Columns button to choose which of Time, Observed Time, Level, Severity #, Message, Attributes, Scope, Trace ID, Span ID, Code Location and Function are shown — plus any individual log attribute promoted to its own sortable column. Drag to reorder, search the list, or reset to defaults.
- Resizable columns — drag any edge, or double-click it to fit the content.
- Row height modes: Raw (full wrap), 1 line, 2 lines and Condensed.
- Sorting by Time, Observed Time, Severity or an attribute column. Newest first by default.
- Pause freezes the view while logs keep arriving in the background, showing how many are queued.
- Multi-select with Cmd/Ctrl+click, Shift+click ranges and Cmd/Ctrl+A, with an optional selection checkbox column.
- Export to OTLP/JSON, plain JSON or CSV — choosing the visible columns or all attributes, a record count, and whether to export the filtered, all or selected rows.
- Import OTLP/JSON, JSON Lines (
.jsonl/.ndjson) or previously exported plain JSON as a read-only instance under the Imported node, kept separate from live telemetry. - Navigate To Code jumps to the source line, and Open In Editor shows a log as JSON.
- View Trace (or click a Trace ID / Span ID cell) opens the log's trace waterfall with its span selected. Arriving from a trace filters Logs to that trace or span — shown as a chip you can clear — and ignores the time range so older correlated logs stay visible.
Metrics
Per-instance gauges, counters/sums, histograms and summaries with a Table | Graph toggle. The Graph view plots time-series history built up as telemetry streams in.
- Gauges & sums → multi-series line charts (one line per attribute set) on a shared time axis.
- Summaries → a line per quantile.
- Histograms → bar charts of the latest bucket distribution.
- A per-graph chart-type dropdown offers views scoped to each metric's type — counters and updown-counters add rate, stacked-area, area and bar (for updown-counters,
ratekeeps real increases and decreases); gauges add a single-value gauge readout; summaries add a percentile view; every type offers table. The selection is remembered per metric. - An Over time dropdown aggregates each series into fixed-width time buckets (avg / min / max / sum / last / count / std-dev / P50 / P90 / P95 / P99); Raw plots every sample. Multi-series scalar metrics also get a Series dropdown (sum / avg / min / max / P95 across label sets).
- A time-range picker (1 min … 2 hours) applies to every graph at once, alongside a Step control for the aggregation bucket width. Auto follows the range.
- Charts use VS Code theme colours, abbreviate large axis values (e.g.
270k,2.8M), and truncate long series labels with a full-text tooltip. History depth is bounded byotel.retention.maxMetricPointsPerSeries.
The aggregation, time-range and step controls are experimental while feedback is gathered — defaults and behaviour may change. Please report anything surprising.
Service map
A live map of services, databases, queues and external dependencies inferred from spans. Open it from OpenTelemetry: Open Service Map, or on an imported file to see just that file's services.
- Layout: callers above callees; cycles are drawn as curved back-edges and very wide layers wrap. Fit, Re-layout, mouse-wheel zoom and drag to pan.
- Time window (1 min … 2 hours, or all retained data), measured back from the newest span. Edges show req/min for a window, or the call count for All. A partial window badge means less data is retained or received than the window asks for; rates use the shorter span.
- Health: every service, dependency and call is Healthy ●, Warning ▲, Critical ✖ or Idle ○, from the worse of its error rate and p95 latency against the
otel.serviceMap.*thresholds. Fewer than 5 calls show at most a warning. - Details: click a node or edge (or Tab to it and press Enter) for its stats, callers and callees, top operations, recent errors, slowest traces and source files. Services get Traces / Logs / Metrics buttons. Esc closes the panel.
- Numbers come from the spans still in memory, so they are bounded by
otel.retention.maxTracesPerInstance. Maps with more than 250 nodes hide the least-called dependencies. - Operations in the details panel are grouped by route and method for HTTP (
GET /users/{id}), by operation and table for databases (SELECT users), and by span name otherwise.
Service map baselines
Capture a “before” snapshot, change your code, and see which services, calls and operations regressed, improved, appeared or disappeared.
- Run your app and generate representative traffic.
- Open the service map, click Baseline… and choose Mark now. The map switches to vs Baseline.
- Change the code, restart the app and generate the same traffic again.
- Read the verdicts on the map and in the status bar, click a node or call for before → after numbers, and use Copy comparison report to paste a Markdown table into a pull request.
- Capture from the map's Baseline… button, Baselines… in the Instances view's … menu, or the
OpenTelemetry: … Baselinecommands: Mark now, Capture current window, Capture from a recent window…, Capture up to a time… (or click a bar in a service's Activity chart), or Use a loaded session…. A baseline is a frozen copy of the numbers: clearing data or evicting old spans doesn't change it. - Verdicts: Regressed ⬆, Improved ⬇, No significant change ●, New ✚, Not seen since baseline ⊖ (dashed) or Too few calls to compare ?. The details panel shows before → after calls, p50, p95, error rate and calls per request, plus an Operations table with Δ p95.
- Noise-aware: p50 uses a Mann-Whitney test, p95 a tail test and error rate a two-proportion (or Fisher's exact) test, corrected for the number of comparisons (Benjamini-Hochberg). A change must also clear the
otel.serviceMap.baseline.*minimums: by default ≥ 20% and ≥ 5 ms, ≥ 2 percentage points of errors, or ≥ 1 extra call per request. Items with fewer than 20 calls on either side aren't judged. - In the same session only calls that finished after the baseline was taken count as current, so nothing is counted twice. A ⚠ n% not in baseline badge warns when much of the current map is missing from the baseline.
- Manage: switch the active baseline, save (up to 50; up to 5 unsaved are kept in memory), rename, delete, export to or import from a
.jsonfile, or Compare two baselines in a read-only map. The status bar shows the active baseline with its regressed and improved counts. - Saved baselines are written to the extension's local storage on this machine. They hold aggregates only (names, counts, sampled latencies and up to 2 example trace IDs per item). Export warns about this before writing a file. See Privacy.
- Baselines also hold a cardinality summary. Baseline files from version 1.2 and earlier still load, without it.
Cardinality & cost analyzer
url.full finding selected: redacted examples and the fix.Finds telemetry that makes storage, indexing or ingestion costs grow in production: attributes with many unique values, IDs used as attributes or metric labels, span names with IDs in them and noisy log patterns. Catch them while the code is still on your machine.
Quick start
- Run your app and send representative traffic for a few minutes.
- Open the analyzer: Open Cardinality & Cost Analyzer in the Instances view's … menu, the flame item in the status bar, or right-click a service, instance or loaded file and choose Analyze Cardinality & Cost.
- On Overview, start with the critical findings. Select one (click, or Enter on a focused row) for redacted example values, the value mix, how its unique values grew and the fix.
- Optionally open Pricing and enter your backend's prices to see a monthly estimate.
What is counted
- Every span, span event, log record and metric point is counted as it arrives, per instance. Counts are not affected by retention, so they cover everything received since counting started, not just what is still in memory. Loaded session files are counted when they load.
- Unique values per attribute key, for span, span event, log and metric point attributes. Up to 128 values are counted exactly; above that a HyperLogLog estimate (accurate to a few percent) is shown with ≈. Only hashes of the values are kept.
- Metric series (distinct attribute sets per metric) and unique values per label, span names and operations per service, and log patterns: log bodies grouped Drain-style after numbers, UUIDs, hex IDs, IP addresses, emails, URLs and quoted text are masked.
- Resource attributes (
service.name,host.name, …) are not analyzed. - Fixed limits keep memory bounded: 512 attribute keys per instance and 4096 in total, 500 operations, 500 metrics and 500 log patterns per instance. Anything over a limit is counted as (other) and the panel shows truncated.
What is flagged
| Finding | When | Severity |
|---|---|---|
| Many unique values | An attribute has at least otel.cardinality.minDistinct (100) unique values and at least minDistinctRatio (0.1) unique values per use. | Warning; critical at 10× minDistinct. Span and log attributes are critical only if they also hold at least 20% of that signal's bytes. |
| ID-like values | At least 20 unique values, and the values look like UUIDs, hex or numeric IDs, tokens, emails, IP addresses, timestamps, URLs with query strings or paths with IDs, or the key is a known one such as user.id, session.id or url.full. | Warning; critical as a metric label. |
| Many metric series | A metric has at least maxSeriesPerMetric (500) series. The label with the most unique values is named as the driver. | Warning; critical at 10×. |
| Many span names | A service has at least maxSpanNamesPerService (100) unique span names, or at least 20% of its names contain IDs (e.g. GET /products/4123). | Warning; critical at 10× maxSpanNamesPerService. |
| Still growing | New unique values are still arriving (see growth). Not a finding of its own: it raises the finding one level. | +1 level |
| Noisy log pattern | One log pattern is at least half of a service's logs (from 100 logs). | Info. |
Severities are shown as Critical ✖, Warning ▲ and Info ℹ. Each finding comes with a fix based on the OpenTelemetry semantic conventions, for example “group by http.route or url.template instead of url.full” or “use db.query.summary instead of db.query.text”.
The panel
- Scope: pick live data or a loaded session, then a service and an instance.
- Overview: records per minute, day and month per signal with activity sparklines, bytes per minute, active metric series, findings by severity, the estimated monthly cost (when priced), all findings, the noisiest services and the top operations.
- Attributes, Metrics (with the driving label), Log patterns and Span names list everything counted, sorted by bytes, up to 500 rows each.
- Details: select a row for redacted example values (up to 3, cut to 120 characters), the value mix, a sparkline of unique values over time, the fix and the keys to use instead, and the same key in other services.
- Baseline and Pricing: see baseline deltas and cost estimates.
Byte estimates
Bytes are computed from the decoded records in two size models: uncompressed OTLP protobuf and OTLP JSON, including resource and scope overhead. Bytes are also attributed to each attribute key, which gives the Bytes share column: how much of a signal's volume a key accounts for. Fields the extension doesn't keep (start times, exemplars, dropped counts) are not counted, so real payloads are somewhat larger.
Rates and growth
- Rates use the last 15 minutes of data (or less, if less was received) and are projected to a day and a 30-day month.
- Counts are kept in 60 one-minute buckets (wider for loaded files, to cover the whole file). A key is ↗ growing when the new unique values in the last third of its history arrive at least half as fast as in the first third, and → saturated otherwise. With fewer than 4 buckets of history it shows … too little data.
Baseline deltas
- Every baseline now includes a cardinality summary per service: counts, bytes, rates and up to 200 attribute keys and 200 metrics with their unique values, value class and driving label. It holds names and counts only, never values or examples.
- The Baseline tab compares the active baseline with current data: new findings, grown ones (unique values at least doubled and up by
minDistinct), resolved ones, per-service volume changes of 25% or more, and services that appeared or disappeared. - Copy comparison report adds a Cardinality section to the Markdown report when both sides have a summary.
- The summary covers everything counted up to capture time, not the service map's time window.
Badges and status bar
- Services and instances with warning or critical findings show a count badge in the Instances view (red when any is critical), with the top findings in the tooltip. The view shows how many services are noisy.
- The status bar shows a flame icon with the number of noisy live services; click it to open the analyzer.
- Badges update at most every 2 seconds, and only after new data arrives.
- Turning off
otel.cardinality.enabledfrees all counters and hides the badges, the status bar item and the analyzer's menu entries. Turning it back on counts from that moment.
Cost estimates
The analyzer prices only what you enter. No vendor prices are built in, and with no prices set it shows volume only. Per-day figures below are the observed rates multiplied by the traffic multiplier.
| Input | Monthly cost |
|---|---|
| Per GB ingested | GB per day × 30 × price. 1 GB = 109 bytes, in the chosen size model. |
| Per million spans | Spans per day × 30 ÷ 1,000,000 × price. |
| Per million log records | Logs per day × 30 ÷ 1,000,000 × price. |
| Per active series per month | Unique metric series since counting started × price. |
| Per GB-month retained + retention days | GB per day × retention days × price. Needs both values; without retention days it is left out and the assumptions say so. |
- Size model:
protobuf(default) orjson, whichever payload your backend bills by. - Traffic multiplier: production volume ÷ local volume, e.g.
500if production handles 500 times the traffic you sent locally. It scales spans, logs and bytes, not metric series (series depend on label values, not on traffic). - Currency: an ISO 4217 code such as
USDorEUR, for display only. - Where prices come from: the
otel.cost.*settings are the defaults (user, workspace or folder settings). The Pricing tab's Calculate shows an estimate for the values in the form without saving them, and Save for this workspace keeps them as overrides for this workspace; overrides are kept in VS Code's workspace state, not in a file. Reset to settings removes them, and Open settings jumps tootel.cost.*. The tab shows which source is in use.
Estimates only. Rates come from a few minutes of local traffic. Real bills also depend on compression, sampling, indexing and per-request fees, free tiers and commitments, none of which are modelled. Every figure is labelled an estimate, and the Pricing tab lists the assumptions behind it. See why the estimate may differ from your bill.
Sessions, import & export
- Save Session… writes all traces, logs and metrics (including metric history) to one
.otel.jsonfile. Each section is a standard OTLPExport*ServiceRequest. - Save Instance… saves one instance; Export Trace… (right-click a trace) saves one trace with its correlated logs.
- Load Session… accepts saved sessions, bare OTLP/JSON requests and OpenTelemetry Collector file-exporter JSON Lines.
- Loaded files appear under Imported, isolated from live data and from each other, and survive Clear Collected Data.
- Imports are bounded by
otel.import.maxFileSizeandotel.import.maxRecords.
Navigate to code
Spans and logs with source-location attributes (code.filepath / code.lineno, or the newer code.file.path / code.line.number) get a Navigate To Code action. Paths are resolved inside your workspace folders; when only a file name matches, the closest path wins (or you pick from a list). An absolute path outside the workspace asks for confirmation before it opens.
Ask Copilot opt-in
The @otel chat participant and eleven otel_* tools answer questions about your traces, logs, metrics, AI-agent runs, service map baselines and telemetry cost, with buttons back to the data. See Ask Copilot.