PhoenixReplay.Recording.Label (PhoenixReplay v0.6.2)

Copy Markdown View Source

One-line descriptions of recorded events, as the player's event list and PhoenixReplay.Trace show them: save → Cart#3: qty=2, navigate → /orders, assigns form, tasks, a query's summary, a log's level and message.

Summary

Functions

A LiveComponent as Module#id.

One line describing event, as the player's event list shows it.

An event's params as name and value pairs, nested ones flattened, without LiveView's own (_target, _unused_…) or empty values.

Functions

component(module, id)

@spec component(module(), term()) :: String.t()

A LiveComponent as Module#id.

of(event)

One line describing event, as the player's event list shows it.

params(params)

@spec params(map()) :: [{String.t(), String.t()}]

An event's params as name and value pairs, nested ones flattened, without LiveView's own (_target, _unused_…) or empty values.