Skip to content

[Feature] Dev-mode tracing visualizer (Flame-graph of message flows) #217

Description

@pathosDev

Size / Priority

  • Size: M

Rationale

In production, traces go to Jaeger / Tempo / OTel-Collector. In dev, that setup is overkill. A bundled-in flame-graph / waterfall viewer for the in-process tracer surfaces span data without infra.

Design sketch

Built-in RecordingTracer already captures span data (src/tracing/RecordingTracer.ts). Add:

  • HTTP endpoint: GET /tracing/spans returns recent spans.
  • SPA: /tracing/visualizer renders flame-graph / waterfall.

Integration

Out of scope / non-goals

  • OTel SDK integration — already covered.
  • Long-term storage — in-memory ring buffer only.

Test plan

  1. Run workload; spans captured.
  2. Open visualizer; flame-graph rendered.
  3. Waterfall view alternative.
  4. Bundle size ≤ 100KB.

Acceptance criteria

  • /tracing/visualizer SPA.
  • In-memory span buffer.
  • Flame-graph + waterfall views.
  • Documentation.
  • Test suite.
  • CHANGELOG entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority: lowNice-to-have / niche / demand-driven

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions