Excessibility.TelemetryCapture.Enrichers.ComponentTree (Excessibility v0.14.0)

View Source

Enriches timeline events with LiveComponent structure information.

Tracks:

  • Count of LiveComponents in assigns
  • Component IDs (CIDs) present
  • Stateful component count
  • Maximum nesting depth to components

Detection

Identifies Phoenix.LiveComponent.CID structs which represent component IDs. These appear in assigns when using @myself or when component references are stored.

Example Output

%{
  sequence: 3,
  event: "handle_event:click",
  component_count: 2,
  component_ids: [1, 5],
  stateful_components: 2,
  component_depth: 2
}

Summary

Functions

cost()

Callback implementation for Excessibility.TelemetryCapture.Enricher.cost/0.

enrich(assigns, opts)

Callback implementation for Excessibility.TelemetryCapture.Enricher.enrich/2.

name()

Callback implementation for Excessibility.TelemetryCapture.Enricher.name/0.