Repository navigation
Open
Labels
enhancementNew feature or requesthelp wantedExtra attention is neededlanguage-supportRuntime tracing / analysis support for a new language
Description
Goal
Zero-edit runtime tracing for Node.js/TypeScript services.
Likely approach
- A Node loader /
node --import(or--require) hook plus OpenTelemetry Node
auto-instrumentation — no user code changes. - Per-function enter/exit spans with request correlation, timing, and bounded
arg/return summaries. - Honor source maps so spans land on the original TS, not transpiled JS.
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