# `Excessibility.TelemetryCapture.Enrichers.Changeset`
[🔗](https://github.com/lessthanseventy/excessibility/blob/v0.18.1/lib/telemetry_capture/enrichers/changeset.ex#L1)

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
