Filters sensitive data from assigns before recording.
By default, strips internal LiveView keys and common sensitive fields, compacts Ecto structs and Phoenix form structs for minimal storage.
Configure with:
config :phoenix_replay,
sanitizer: MyApp.ReplaySanitizerCustom sanitizers must implement sanitize_assigns/1 and sanitize_delta/2.
They may also implement sanitize_params/1; otherwise params are sanitized
with sanitize_assigns/1.
Summary
Functions
Remove internal and sensitive keys from assigns, compact structs.
Sanitize only the changed keys (delta).
Sanitize params or session data before recording.
Callbacks
Functions
Remove internal and sensitive keys from assigns, compact structs.
Drops internal LiveView keys and sensitive fields, then compacts
Phoenix.HTML.Form, Ecto.Changeset, and Ecto schema structs
to remove runtime-only data (changeset types, validations, schema metadata).
Sanitize only the changed keys (delta).
Sanitize params or session data before recording.