Traces & waterfall
- Query bar:
service=checkout status=error dur>200ms - Waterfall merges spans from every instance
- Each span's logs shown right on its bar
- Find a trace by ID or pasted
traceparent
An OTLP receiver built into your editor. Inspect traces, logs, metrics and a service map next to your code, jump from a span or log to its source line, and — if you want — ask Copilot why a request was slow. No Collector, Jaeger or Grafana to run.
Looking at telemetry during development usually means running a Collector and a backend, then switching between the browser and your editor. This moves that first round of investigation into VS Code.
Logs, traces and metrics from every instance of every service, correlated with each other and with your source code.
service=checkout status=error dur>200mstraceparentA live map of services, databases, queues and external calls, with p95 latency, error rate and req/min on every node and edge. Click a service to jump to its traces, logs and code, or compare with a baseline to see what your change made slower.
Spans and logs with code.* attributes open the exact source line in your workspace — no copy-pasting file paths from a browser.
OTLP/gRPC on 4317 and OTLP/HTTP (protobuf + JSON) on 4318, bound to 127.0.0.1. The endpoint is injected into apps you run or debug from VS Code.
The @otel chat participant and eleven read-only tools explain slow and failing requests, citing the trace and span IDs.
Save traces, logs and metrics to one .otel.json file. A teammate loads it and gets the same waterfall, logs, charts and service map.
No backend and no outbound calls. Telemetry lives in memory, bounded by retention settings, and is never written to disk unless you export it.
Every panel follows your VS Code theme. Click a screenshot to enlarge it.
Works whether your app is launched from VS Code or runs somewhere else on your machine.
Search “OpenTelemetry” in the Extensions view, or run:
code --install-extension SukantaSaha.opentelemetry
Open the OpenTelemetry view in the Activity Bar and click Start Receiver. The status bar shows the active gRPC and HTTP ports, and the Get Started walkthrough guides you through the rest.
Run or debug your app from VS Code — OTEL_EXPORTER_OTLP_ENDPOINT is injected for you. For apps started elsewhere, point the exporter at the receiver:
# Any OpenTelemetry SDK
export OTEL_EXPORTER_OTLP_ENDPOINT="http://127.0.0.1:4317"
export OTEL_EXPORTER_OTLP_PROTOCOL="grpc"
export OTEL_SERVICE_NAME="my-service"
import { NodeSDK } from '@opentelemetry/sdk-node';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-grpc';
const sdk = new NodeSDK({
traceExporter: new OTLPTraceExporter({ url: 'http://127.0.0.1:4317' }),
});
sdk.start();
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
exporter = OTLPSpanExporter(endpoint="http://127.0.0.1:4317", insecure=True)
exporter, _ := otlptracegrpc.New(ctx,
otlptracegrpc.WithEndpointURL("http://127.0.0.1:4317"),
otlptracegrpc.WithInsecure())
builder.Services.AddOpenTelemetry()
.WithTracing(t => t.AddOtlpExporter(o => o.Endpoint = new Uri("http://127.0.0.1:4317")));
# OpenTelemetry Java agent / autoconfigure
-Dotel.exporter.otlp.endpoint=http://127.0.0.1:4317 -Dotel.exporter.otlp.protocol=grpc
Tip: OpenTelemetry: Connect Your App… gives you these with your actual ports filled in, or opens a terminal with them already set.
Answers are computed from the telemetry the receiver holds, and every one comes with buttons that open the trace, span, logs or source line it refers to.
/slowFinds the slowest recent request and explains where the time went./errorsGroups failing requests by endpoint and explains the top failure./agentSummarizes the latest AI-agent run: LLM vs. tool time, tokens, failed tools.otel.ai.enabled user setting; a workspace can't turn it on.otel_* tools; VS Code asks before each call.@otel why is my slowest request slow?POST /api/v2/agent/tasks took 7.55 s (p50 for this route is 2.1 s).
chat Mistral-Large-3 calls in llm-gateway account for 4.4 s of the critical path.execute_tool get_user waited 1.2 s on user-service.The extension has no backend and makes no outbound network calls of its own. Its only network activity is the OTLP receiver listening for your apps.
The receiver binds to 127.0.0.1 by default. Exposing it to a network is an explicit choice via otel.host.
Capped by otel.retention.* and dropped on restart or Clear Collected Data. Nothing is written to disk unless you export it.
The AI model is told never to follow instructions in telemetry, and buttons are built only from IDs the extension validated.
Not a production observability platform. Keep your Collector and backend for production and add this extension as a second OTLP target while you develop.
| OpenTelemetry for VS Code | Jaeger | Grafana + Tempo, Loki, Prometheus | |
|---|---|---|---|
| Where it runs | Inside VS Code | Separate service + web UI | Separate services + web UI |
| Local setup | Install, start the receiver | Run a container or binary | Several containers or an all-in-one image |
| Traces | Yes | Yes | Yes (Tempo) |
| Logs | Yes | No | Yes (Loki) |
| Metrics | Yes | Span-derived only | Yes (Prometheus) |
| Service map | Yes | Yes | Yes |
| Open a span's source line in your editor | Yes | No | No |
| Automatic persistent storage | No; live data is in memory, with manual export/import available | Yes | Yes |
| Production scale & alerting | No | Scale yes, alerting no | Yes |
Based on each project's public documentation as of September 2026. Spotted something out of date? Open an issue.
No. The extension is the receiver. If you already run a Collector, add the extension as an extra OTLP exporter target and send data to both.
Anything that speaks OTLP over gRPC or HTTP (protobuf or JSON): Java, .NET, Go, Node.js, Python, Rust and more.
Yes. Use Connect Your App… to copy the environment variables or a snippet, and point your exporter at http://127.0.0.1:4317 (gRPC) or http://127.0.0.1:4318 (HTTP).
In memory only, bounded by the otel.retention.* settings. To keep a copy, use Save Session… and load it later with Load Session….
Only when you enable otel.ai.enabled and ask a question. Results are redacted, size-capped and sent only to the chat model you selected in VS Code — including local or bring-your-own-key models. Details.
Yes. Load Session… accepts saved sessions, bare OTLP/JSON requests and the JSON Lines written by the Collector file exporter.
It estimates it. The Cardinality & Cost analyzer counts volume, bytes and unique values as telemetry arrives, then projects a monthly cost from prices you enter and a traffic multiplier. No prices are built in, and every figure is labelled an estimate. How it's calculated.
Yes — free and open source under the Apache License 2.0. If it helps you, consider sponsoring or starring the repo.
Install the extension, start the receiver, and see your first trace in under a minute.