PhoenixReplay.Session.Flusher (PhoenixReplay v0.6.2)

Copy Markdown View Source

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

Flushes the buffered events of session id.

Functions

flush(id)

@spec flush(PhoenixReplay.Recording.id()) :: :ok | {:error, term()}

Flushes the buffered events of session id.