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

View Source

Enriches timeline events with Ecto changeset information.

Detects Ecto.Changeset structs in assigns and extracts:

  • Validity status
  • Error count and fields with errors
  • Changed fields

Also detects changesets nested in Phoenix.HTML.Form structs.

Output

Adds to each timeline event:

  • changeset_count - Number of changesets found
  • changesets - List of changeset info maps with:
    • key - The assign key
    • valid? - Whether changeset is valid
    • error_count - Number of errors
    • error_fields - List of fields with errors
    • changed_fields - List of fields that were changed