Commands & settings

Run commands from the Command Palette (Cmd/Ctrl+Shift+P) and change settings under Settings → search “otel”.

Commands

CommandDescription
OpenTelemetry: Start / Stop / Restart ReceiverControl the embedded OTLP receiver.
OpenTelemetry: Get StartedOpen the getting-started walkthrough.
OpenTelemetry: Connect Your App…Every way to point an app at the receiver: F5, a terminal with the OTLP environment, copied environment variables or endpoints, code snippets.
OpenTelemetry: Clear Collected DataDrop all in-memory telemetry.
OpenTelemetry: Copy OTLP EndpointCopy the gRPC or HTTP endpoint.
OpenTelemetry: Copy OTLP Environment VariablesCopy the endpoint, protocol and exporter variables for your shell.
OpenTelemetry: Open Terminal With OTLP EnvironmentNew terminal pre-set with the OTLP env vars.
OpenTelemetry: Show Instrumentation SnippetPer-language exporter snippets (environment variables for bash/zsh and PowerShell, Node.js, Python, Go, .NET, Java).
OpenTelemetry: Open Logs / Traces / MetricsOpen a panel for the selected instance.
OpenTelemetry: Export LogsExport logs as OTLP/JSON, plain JSON or CSV.
OpenTelemetry: Import Logs From FileLoad an OTLP/JSON, JSON Lines (.jsonl/.ndjson) or exported plain JSON file as a read-only instance.
OpenTelemetry: Save Session…Save all traces, logs and metrics to one .otel.json file. Each section is an OTLP Export*ServiceRequest.
OpenTelemetry: Load Session…Load a saved session, an OTLP/JSON request, or Collector file-exporter JSON Lines under Imported.
OpenTelemetry: Save Instance…Save one instance's traces, logs and metrics.
OpenTelemetry: Open Service MapShow the live service dependency map.
OpenTelemetry: Find Trace by IDOpen a trace's waterfall from a trace ID or W3C traceparent.
OpenTelemetry: Baselines…All baseline actions in one menu (also in the Instances view's … menu and the map's Baseline… button).
OpenTelemetry: Mark Baseline NowCapture everything collected so far; calls after this point are compared with it.
OpenTelemetry: Capture Baseline From a Recent Window…Capture the last 1 min … 2 hours, or all retained data.
OpenTelemetry: Capture Baseline Up To a Time…Capture everything up to a time you pick or type (HH:MM:SS).
OpenTelemetry: Use a Loaded Session as Baseline…Use a loaded session file as the baseline for live data.
OpenTelemetry: Switch Active Baseline…Choose which baseline the map compares with.
OpenTelemetry: Compare Two Baselines…Open a read-only map of one baseline against another.
OpenTelemetry: Save BaselineKeep the active baseline across reloads.
OpenTelemetry: Rename Baseline… / Delete Baseline…Manage baselines.
OpenTelemetry: Export Baseline… / Import Baseline…Write a baseline to a .json file, or load one (validated, up to 8 MB).
OpenTelemetry: Copy Baseline Comparison ReportCopy the comparison as a Markdown table.
OpenTelemetry: Stop Comparing With BaselineTurn off the active baseline.
OpenTelemetry: Open Cardinality & Cost AnalyzerOpen the analyzer for all live data (also in the Instances view's … menu and on the flame status bar item).
Analyze Cardinality & CostRight-click a service, instance or loaded file in the Instances view to open the analyzer for it.

Instances in the tree also expose inline Logs / Traces / Metrics icons and a Remove Instance action. Right-click a trace in the Traces panel for Export Trace….

Settings

SettingDefaultDescription
otel.launchOnStartupfalseStart the receiver when VS Code starts.
otel.port.modefixedfixed or random port assignment.
otel.port.grpc4317OTLP/gRPC port (fixed mode).
otel.port.http4318OTLP/HTTP port (fixed mode).
otel.host127.0.0.1Bind address. Binding beyond localhost exposes telemetry.
otel.overwriteEnvVarstrueInject the OTLP endpoint into launch/debug configs.
otel.useLocalTimetrueShow Logs, Traces and metric chart timestamps in your local timezone instead of UTC.
otel.retention.maxLogsPerInstance5000Log retention cap per instance.
otel.retention.maxTracesPerInstance2000Trace retention cap per instance.
otel.retention.maxMetricPointsPerSeries500Metric points retained per series (controls graph history depth).
otel.import.maxFileSize200Largest file (MB) accepted by Import Logs or Load Session. Checked before the file is read.
otel.import.maxRecords50000Most records (spans, logs and metric points) accepted from one import or session. Imported data bypasses retention, so this bounds its memory use.
otel.serviceMap.latencyWarnMs300Service map: p95 latency (ms) at or above which a node or call shows a warning.
otel.serviceMap.latencyCriticalMs1000Service map: p95 latency (ms) at or above which a node or call is critical.
otel.serviceMap.errorRateWarn0.01Service map: error rate (0–1) at or above which a node or call shows a warning.
otel.serviceMap.errorRateCritical0.05Service map: error rate (0–1) at or above which a node or call is critical.
otel.serviceMap.baseline.minSamples20Baselines: minimum calls on both sides before a service, call or operation is compared (5–1000).
otel.serviceMap.baseline.minLatencyChangePct20Baselines: a significant p50 or p95 change counts only if it is at least this many percent (and minLatencyChangeMs).
otel.serviceMap.baseline.minLatencyChangeMs5Baselines: a significant p50 or p95 change counts only if it is at least this many milliseconds (and minLatencyChangePct).
otel.serviceMap.baseline.minErrorRateChangePp2Baselines: a significant error-rate change counts only if it is at least this many percentage points.
otel.serviceMap.baseline.minFanoutChange1Baselines: change in calls per request on a call (e.g. an N+1 query) that counts as a regression or improvement.
otel.serviceMap.baseline.coverageWarnPct30Baselines: warn when at least this percentage of the current services and dependencies are missing from the baseline. 0 turns it off.
otel.cardinality.enabledtrueCount attribute values, metric series, log patterns and bytes for the cardinality and cost analyzer. Off frees the counters; on counts from that moment.
otel.cardinality.minDistinct100Unique values an attribute needs to be flagged (10–100000); ten times this can be critical.
otel.cardinality.minDistinctRatio0.1Unique values per use (0–1) an attribute also needs to be flagged.
otel.cardinality.maxSeriesPerMetric500Series a metric needs to be flagged (10–1000000); ten times this is critical.
otel.cardinality.maxSpanNamesPerService100Unique span names a service needs to be flagged (5–100000); ten times this is critical.
otel.cost.currencyUSDISO 4217 currency code shown with prices (display only).
otel.cost.perGbIngestedemptyPrice per GB ingested (109 bytes), 0–1000000. Nothing is priced until at least one price is set.
otel.cost.perMillionSpansemptyPrice per million spans, 0–1000000.
otel.cost.perMillionLogsemptyPrice per million log records, 0–1000000.
otel.cost.perSeriesMonthemptyPrice per active metric series per month, 0–1000000.
otel.cost.perGbMonthRetainedemptyStorage price per GB per month, 0–1000000; needs otel.cost.retentionDays.
otel.cost.retentionDaysemptyDays your backend keeps data (1–3650).
otel.cost.sizeModelprotobufWhich payload size per-GB prices apply to: protobuf or json.
otel.cost.trafficMultiplier1Scales local volume to production (e.g. 500), up to 1000000; not applied to metric series.
otel.ai.enabledfalseLet Copilot and @otel read collected telemetry through the otel_* tools. User setting only.
otel.ai.redactAttributeKeys[]Extra attribute keys to mask before data is sent to a model (added to the built-in list).
otel.ai.maxResultItems25Most items one AI tool call may return (1–200).

Example settings.json

{
  "otel.launchOnStartup": true,
  "otel.port.mode": "fixed",
  "otel.port.grpc": 4317,
  "otel.port.http": 4318
}

Pricing for the cost estimate, e.g. in a workspace .vscode/settings.json (example values, not real prices):

{
  "otel.cost.currency": "EUR",
  "otel.cost.perGbIngested": 0.25,
  "otel.cost.perSeriesMonth": 0.05,
  "otel.cost.perGbMonthRetained": 0.03,
  "otel.cost.retentionDays": 30,
  "otel.cost.trafficMultiplier": 500
}