v1.4.0 Guided onboarding and quick app connection →

OpenTelemetry debugging without leaving VS Code

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.

$ code --install-extension SukantaSaha.opentelemetry
Free & Apache-2.0 licensed Data stays on your machine Any OTLP SDK
OpenTelemetry: Traces
Animated demo of the OpenTelemetry extension in VS Code: browsing traces, exploring a request waterfall across services, inspecting span details and jumping to source
Why this extension

Skip the local observability stack

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.

Typical local setup

With this extension

Features

Everything you need for the debug loop

Logs, traces and metrics from every instance of every service, correlated with each other and with your source code.

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

Logs

  • Virtualized table with text, level, attribute and time filters
  • Promote any attribute to its own sortable column
  • Jump from a log to its trace or source line
  • Export OTLP/JSON, JSON or CSV; import JSON Lines

Metrics

  • Gauges, counters, histograms and summaries
  • Table or graph view per instance
  • Rate, stacked area, percentiles and more
  • Over-time aggregation and series roll-up

Service map

A 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.

Cardinality & cost

  • Flags IDs, full URLs and other high-cardinality attributes
  • Metric series explosions with the label that drives them
  • Span names with IDs and noisy log patterns
  • Monthly estimate from your prices, with a fix per finding

Jump to code

Spans and logs with code.* attributes open the exact source line in your workspace — no copy-pasting file paths from a browser.

Built-in OTLP receiver

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.

Ask Copilot opt-in

The @otel chat participant and eleven read-only tools explain slow and failing requests, citing the trace and span IDs.

Save & share sessions

Save traces, logs and metrics to one .otel.json file. A teammate loads it and gets the same waterfall, logs, charts and service map.

Private by design

No backend and no outbound calls. Telemetry lives in memory, bounded by retention settings, and is never written to disk unless you export it.

Java.NETGoNode.jsPythonRust…any OTLP SDK
See it in action

Right next to your code

Every panel follows your VS Code theme. Click a screenshot to enlarge it.

Traces
Trace list, request waterfall and span details
Find slow or failing requests, open one as a waterfall across every service it touched, and inspect a span's status, IDs and attributes.
Quick start

Up and running in a minute

Works whether your app is launched from VS Code or runs somewhere else on your machine.

Install

Search “OpenTelemetry” in the Extensions view, or run:

code --install-extension SukantaSaha.opentelemetry

Start the receiver

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.

Send telemetry

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"

Tip: OpenTelemetry: Connect Your App… gives you these with your actual ports filled in, or opens a terminal with them already set.

AI investigation · optional

Ask Copilot why it's slow

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.
  • Off by default. Enable the otel.ai.enabled user setting; a workspace can't turn it on.
  • Read-only & confirmed. Eleven otel_* tools; VS Code asks before each call.
  • Redacted first. Secrets, tokens and AI prompt text are masked before anything reaches the model.
Learn about AI features →
Chat illustrative example
@otel why is my slowest request slow?
otel_searchTraces · otel_getTrace · otel_compareTraces

POST /api/v2/agent/tasks took 7.55 s (p50 for this route is 2.1 s).

  1. Six sequential chat Mistral-Large-3 calls in llm-gateway account for 4.4 s of the critical path.
  2. execute_tool get_user waited 1.2 s on user-service.
↗ Open trace 6a62ca50… ↗ Span 9f7cbd0e… ↗ View logs
Privacy

Your telemetry never leaves your machine

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.

your app ── OTLP ──▶ 127.0.0.1:4317 (gRPC) / 127.0.0.1:4318 (HTTP) ──▶ in-memory store in VS Code

Localhost only

The receiver binds to 127.0.0.1 by default. Exposing it to a network is an explicit choice via otel.host.

In memory, bounded

Capped by otel.retention.* and dropped on restart or Clear Collected Data. Nothing is written to disk unless you export it.

Untrusted by default

The AI model is told never to follow instructions in telemetry, and buttons are built only from IDs the extension validated.

Read the full privacy and data-handling details →

How it fits

For the develop-and-debug loop

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 CodeJaegerGrafana + Tempo, Loki, Prometheus
Where it runsInside VS CodeSeparate service + web UISeparate services + web UI
Local setupInstall, start the receiverRun a container or binarySeveral containers or an all-in-one image
TracesYesYesYes (Tempo)
LogsYesNoYes (Loki)
MetricsYesSpan-derived onlyYes (Prometheus)
Service mapYesYesYes
Open a span's source line in your editorYesNoNo
Automatic persistent storageNo; live data is in memory, with manual export/import availableYesYes
Production scale & alertingNoScale yes, alerting noYes

Based on each project's public documentation as of September 2026. Spotted something out of date? Open an issue.

FAQ

Questions, answered

Do I need to run an OpenTelemetry Collector?

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.

Which languages and SDKs are supported?

Anything that speaks OTLP over gRPC or HTTP (protobuf or JSON): Java, .NET, Go, Node.js, Python, Rust and more.

My app doesn't run from VS Code. Can I still use it?

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).

Where is my data stored?

In memory only, bounded by the otel.retention.* settings. To keep a copy, use Save Session… and load it later with Load Session….

Does the AI feature send my telemetry anywhere?

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.

Can I open telemetry captured in CI or by a Collector?

Yes. Load Session… accepts saved sessions, bare OTLP/JSON requests and the JSON Lines written by the Collector file exporter.

Can it tell me what my telemetry will cost in production?

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.

Is it free?

Yes — free and open source under the Apache License 2.0. If it helps you, consider sponsoring or starring the repo.

Debug with telemetry, not tabs

Install the extension, start the receiver, and see your first trace in under a minute.