Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Diagnostics an app sends to its server for the admin to read (feature spoolframe:diagnostics): Settings › About › “Send diagnostics”.

A report is one request, and a request is one frame of at most MAX_FRAME (1 MiB). So the log is capped below that, at MAX_LOG_BYTES, with room left for the rest. A report over any limit is refused whole, saying which part and by how much: nothing is cut on the way, so what the admin reads is what the app sent. The app keeps the newest lines when it trims its own log.

Structs§

DiagnosticsReport
What an app sends (SendDiagnostics): what it runs on, its playback log, and what the user wrote. Its Debug gives the log’s length, not the log.

Constants§

MAX_FIELD_BYTES
The most bytes of each of a report’s names and versions.
MAX_LOG_BYTES
The most bytes of log a report carries: 960 KiB.
MAX_NOTE_BYTES
The most bytes of note a report carries: 8 KiB.