Excessibility.TelemetryCapture.Timeline (Excessibility v0.14.0)

View Source

Generates timeline data from telemetry snapshots.

Extracts key state, computes diffs, and formats timeline entries for human and AI consumption.

Summary

Functions

Builds a complete timeline from snapshots.

Builds a single timeline entry from a snapshot and its predecessor.

Functions

build_timeline(list, test_name)

Builds a complete timeline from snapshots.

Returns a map with:

  • :test - test name
  • :duration_ms - total test duration
  • :timeline - list of timeline entries

build_timeline(snapshots, test_name, opts \\ [])

build_timeline_entry(snapshot, previous, sequence, opts \\ [])

Builds a single timeline entry from a snapshot and its predecessor.

extract_key_state(assigns, highlight_fields \\ [:current_user, :live_action, :errors, :form])

Extracts key state from assigns for timeline display.

Includes:

  • Highlighted fields (from config)
  • Small primitive values (< 100 chars)
  • List counts (products: [3 items] -> products_count: 3)
  • Auto-detected important fields (status, action, etc.)