Repository navigation
Open
Labels
enhancementNew feature or requesthelp wantedExtra attention is neededlanguage-supportRuntime tracing / analysis support for a new language
Description
Goal
Runtime tracing for Go services.
Why this one is hard
Go has no runtime monkey-patching, so zero-edit is the central challenge —
hand-written OTel-Go spans would force users to edit their code. Options to weigh:
- eBPF / uprobes on the compiled binary (ties into the eBPF collector issue) —
fully external, Linux/privileged. - Compile-time weaving (e.g. an
orchestrion-style tool) injecting
instrumentation duringgo buildwithout hand-editing source. - A wrapped
go buildstep that stays zero-source-edit even if it changes the build.
Shared contract (every language tracer)
Vinv's index, Code Graph, and grounded Q&A already work across languages — the gap
is runtime evidence. A new tracer only has to emit the same event contract the
Python tracer does, and everything downstream (the trace↔source join,
values_of/slice/rank_suspects, flamegraphs, verified-fix replay) works unchanged:
- Emit the
SpanEventJSONL contract —contracts/src/lens_contracts/span_event.py
andcontracts/src/lens_contracts/schemas/span_event.schema.json(enter/exit,
request_id,component,duration_ms, bounded arg/return summaries, errors). - Feed
identification's trace↔source join, keyed on the qualified symbol name the
index already extracts for this language. - Zero-edit is a hard ground rule (
CONTRIBUTING.md): users must not modify
their own code to be traced — use runtime/agent instrumentation, not manual spans. - Reference implementation:
tracelens/(Python — AST import-hook /sys.monitoring- OTel contrib auto-instrumentation).
Acceptance criteria
- A sample service in this language runs under the tracer with no code changes
and produces validSpanEventJSONL. identificationjoins the spans to indexed symbols;rank_suspects/values_of
/slicework against a run.- Any platform/privilege constraints are documented and degrade cleanly.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requesthelp wantedExtra attention is neededlanguage-supportRuntime tracing / analysis support for a new language
Activity