Foundry.TestScenario.AshTracer (foundry v0.1.6)

Copy Markdown

Ash.Tracer implementation for Foundry scenario tracing.

Captures action spans and routes them to the test process via message passing, enabling cross-process instrumentation of LiveView handlers without modifying application code.

When tracing a LiveView test:

  1. The LiveViewHook on_mount callback registers the LV channel PID with the test PID
  2. When Ash actions fire in the LV handler, this tracer captures them
  3. The tracer looks up the test PID and sends events back to it
  4. RuntimeCapture.drain_liveview_events() collects these events after each LV interaction