GeezerVison is showing github.com — Ingest OpenCode and Cursor OpenTelemetry once their exports are stable · Issue #335 · traceroost/core
Ingest OpenCode and Cursor OpenTelemetry once their exports are stable #335DescriptionTraceRoost reads OpenCode's SQLite database and Cursor CLI's transcripts. Both tools now have some OpenTelemetry route, but neither is stable enough to build on yet. This issue tracks when to revisit and what the work is.
Where each stands (checked 2026-10-18)
OpenCode
- A maintainer says OpenCode exports natively with the standard
OTEL_EXPORTER_OTLP_* variables (anomalyco/opencode#5245). Another commenter reports experimental.openTelemetry is also needed. It is undocumented, and the request for proper native export is still open (#14697).
- The documented route is a community plugin, DEVtheOPS/opencode-plugin-otel, which mirrors Claude Code's signals.
- What it would add: span timing only (time to first token, per-tool latency, streaming speed). The database already carries prompts, tokens and tool errors.
Cursor
- Native export is in Cursor's enterprise docs (wire reference) and covers the CLI (
cursor.surface = cli). It is unclear whether an individual user can turn it on.
- The other route is third-party hooks registered in
~/.cursor/hooks.json, for example o11y-dev/opentelemetry-hooks. The CLI fires fewer hook events than the IDE.
- What it would add: the biggest gain. Cursor CLI's local files have no tokens, model or workspace, so its traces are unpriced today.
When to revisit
- OpenCode: when it documents its native export, ideally as stable rather than
experimental.
- Cursor: when it offers OpenTelemetry export to individual (non-enterprise) users, or puts its hook events on the CLI on a par with the IDE.
The work, when it's time
- Capture. On a test machine, turn the export on, point it at a raw OTLP sink and save real payloads as fixtures, redacted with
scripts/redact-spans.js.
- Summarize. Add a summarizer per agent, mapping their span and attribute names to TraceRoost's trace and span model. Merge with the log-sourced trace of the same session, the way Claude Code's OTEL and transcript are joined.
- Set up.
- Add each to
autoConfigNode.ts and to the agent-setup question (src/agentSetupText.ts).
- Never touch a config that already exports to another collector.
- Only automate a built-in setting, never a third-party plugin or hook. A plugin is something the user installs themselves.
- Document. Update README, Help, docs
data-sources, and the cloud wire mapping (toWireAgent already has opencode and cursor).
- Test. Add fixture tests, and extend
tests/e2e/real-agents.mjs where the agent can run in CI.
Until then, README and Help say TraceRoost reads their local history, not their telemetry (#336).
🤖 Generated with Claude Code
Generated by Claude Code ActivityRogerReed commented on Nov 9, 2026 CollaboratorAuthor More actions Re-checked 2026-11-08. Neither revisit condition is met, so this stays open as the tracker.
OpenCode: the native-export request (anomalyco/opencode#14697) was auto-closed as stale in April 2026, not implemented. The source reads the standard OTEL_EXPORTER_OTLP_* variables (packages/util/src/observability.ts), but the docs still don't mention OpenTelemetry at all, so it remains undocumented and unstable to build on.
Cursor: export is still Enterprise-only (https://cursor.com/docs/enterprise/opentelemetry-export). SigNoz's guide notes the CLI emits nothing through the hook route in non-interactive mode, so the hook workaround doesn't cover the CLI either.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|