Excessibility.TelemetryCapture.Diff (Excessibility v0.14.0)

View Source

Computes differences between sequential telemetry snapshots.

Identifies added, changed, and removed assigns to highlight what actually changed between LiveView events.

Summary

Functions

Computes the diff between current and previous assigns.

Extracts changes from a diff into a simple map format.

Functions

compute_diff(current, previous)

Computes the diff between current and previous assigns.

Returns nil if previous is nil (first snapshot). Returns a map with :added, :changed, :removed keys.

extract_changes(arg1)

Extracts changes from a diff into a simple map format.

Converts added/changed/removed into a flat map of field => {old, new} tuples.