Commands & settings
Run commands from the Command Palette (Cmd/Ctrl+Shift+P) and change settings under Settings → search “otel”.
Commands
| Command | Description |
|---|---|
OpenTelemetry: Start / Stop / Restart Receiver | Control the embedded OTLP receiver. |
OpenTelemetry: Get Started | Open 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 Data | Drop all in-memory telemetry. |
OpenTelemetry: Copy OTLP Endpoint | Copy the gRPC or HTTP endpoint. |
OpenTelemetry: Copy OTLP Environment Variables | Copy the endpoint, protocol and exporter variables for your shell. |
OpenTelemetry: Open Terminal With OTLP Environment | New terminal pre-set with the OTLP env vars. |
OpenTelemetry: Show Instrumentation Snippet | Per-language exporter snippets (environment variables for bash/zsh and PowerShell, Node.js, Python, Go, .NET, Java). |
OpenTelemetry: Open Logs / Traces / Metrics | Open a panel for the selected instance. |
OpenTelemetry: Export Logs | Export logs as OTLP/JSON, plain JSON or CSV. |
OpenTelemetry: Import Logs From File | Load 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 Map | Show the live service dependency map. |
OpenTelemetry: Find Trace by ID | Open 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 Now | Capture 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 Baseline | Keep 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 Report | Copy the comparison as a Markdown table. |
OpenTelemetry: Stop Comparing With Baseline | Turn off the active baseline. |
OpenTelemetry: Open Cardinality & Cost Analyzer | Open the analyzer for all live data (also in the Instances view's … menu and on the flame status bar item). |
Analyze Cardinality & Cost | Right-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
| Setting | Default | Description |
|---|---|---|
otel.launchOnStartup | false | Start the receiver when VS Code starts. |
otel.port.mode | fixed | fixed or random port assignment. |
otel.port.grpc | 4317 | OTLP/gRPC port (fixed mode). |
otel.port.http | 4318 | OTLP/HTTP port (fixed mode). |
otel.host | 127.0.0.1 | Bind address. Binding beyond localhost exposes telemetry. |
otel.overwriteEnvVars | true | Inject the OTLP endpoint into launch/debug configs. |
otel.useLocalTime | true | Show Logs, Traces and metric chart timestamps in your local timezone instead of UTC. |
otel.retention.maxLogsPerInstance | 5000 | Log retention cap per instance. |
otel.retention.maxTracesPerInstance | 2000 | Trace retention cap per instance. |
otel.retention.maxMetricPointsPerSeries | 500 | Metric points retained per series (controls graph history depth). |
otel.import.maxFileSize | 200 | Largest file (MB) accepted by Import Logs or Load Session. Checked before the file is read. |
otel.import.maxRecords | 50000 | Most records (spans, logs and metric points) accepted from one import or session. Imported data bypasses retention, so this bounds its memory use. |
otel.serviceMap.latencyWarnMs | 300 | Service map: p95 latency (ms) at or above which a node or call shows a warning. |
otel.serviceMap.latencyCriticalMs | 1000 | Service map: p95 latency (ms) at or above which a node or call is critical. |
otel.serviceMap.errorRateWarn | 0.01 | Service map: error rate (0–1) at or above which a node or call shows a warning. |
otel.serviceMap.errorRateCritical | 0.05 | Service map: error rate (0–1) at or above which a node or call is critical. |
otel.serviceMap.baseline.minSamples | 20 | Baselines: minimum calls on both sides before a service, call or operation is compared (5–1000). |
otel.serviceMap.baseline.minLatencyChangePct | 20 | Baselines: a significant p50 or p95 change counts only if it is at least this many percent (and minLatencyChangeMs). |
otel.serviceMap.baseline.minLatencyChangeMs | 5 | Baselines: a significant p50 or p95 change counts only if it is at least this many milliseconds (and minLatencyChangePct). |
otel.serviceMap.baseline.minErrorRateChangePp | 2 | Baselines: a significant error-rate change counts only if it is at least this many percentage points. |
otel.serviceMap.baseline.minFanoutChange | 1 | Baselines: change in calls per request on a call (e.g. an N+1 query) that counts as a regression or improvement. |
otel.serviceMap.baseline.coverageWarnPct | 30 | Baselines: warn when at least this percentage of the current services and dependencies are missing from the baseline. 0 turns it off. |
otel.cardinality.enabled | true | Count 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.minDistinct | 100 | Unique values an attribute needs to be flagged (10–100000); ten times this can be critical. |
otel.cardinality.minDistinctRatio | 0.1 | Unique values per use (0–1) an attribute also needs to be flagged. |
otel.cardinality.maxSeriesPerMetric | 500 | Series a metric needs to be flagged (10–1000000); ten times this is critical. |
otel.cardinality.maxSpanNamesPerService | 100 | Unique span names a service needs to be flagged (5–100000); ten times this is critical. |
otel.cost.currency | USD | ISO 4217 currency code shown with prices (display only). |
otel.cost.perGbIngested | empty | Price per GB ingested (109 bytes), 0–1000000. Nothing is priced until at least one price is set. |
otel.cost.perMillionSpans | empty | Price per million spans, 0–1000000. |
otel.cost.perMillionLogs | empty | Price per million log records, 0–1000000. |
otel.cost.perSeriesMonth | empty | Price per active metric series per month, 0–1000000. |
otel.cost.perGbMonthRetained | empty | Storage price per GB per month, 0–1000000; needs otel.cost.retentionDays. |
otel.cost.retentionDays | empty | Days your backend keeps data (1–3650). |
otel.cost.sizeModel | protobuf | Which payload size per-GB prices apply to: protobuf or json. |
otel.cost.trafficMultiplier | 1 | Scales local volume to production (e.g. 500), up to 1000000; not applied to metric series. |
otel.ai.enabled | false | Let 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.maxResultItems | 25 | Most 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
}