AuditTrailEx
A transaction-safe audit logging library for Ecto, with field-level diffs, actor tracking, and redaction of sensitive fields.
Inside the project
Mutations and their audit events commit atomically in the same transaction, and updates store only the fields that changed. It plugs into Ecto.Multi pipelines and records who made each change, whether a user, an API key, or a background worker. Protected fields are excluded or redacted, telemetry never emits field values, and optional PostgreSQL triggers catch changes made outside the library.
{:audit_trail_ex, "~> 0.1.0"}