Writes a running session's buffered events to storage as one chunk.
Runs in a task started by PhoenixReplay.Session.Monitor, which flushes
each session at most once at a time, so a session's chunks are written in
order by one process. The chunk is redacted with the session's
PhoenixReplay.Redactor before it is written, then its events leave the
buffer, keeping memory bounded however long the session runs.
Summary
Functions
@spec flush(PhoenixReplay.Recording.id()) :: :ok | {:error, term()}
Flushes the buffered events of session id.