Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Canonical runtime diagnostic sanitization. Sanitize the canonical payload before persistence, logging, and display.

Structs§

Diagnostic
DiagnosticAction
DiagnosticObserver

Enums§

DiagnosticSeverity

Functions§

legacy_diagnostic
Adapt legacy styled messages without dropping evidence after the summary. Correlation identity belongs to the producer; this adapter does not authorize actions.
legacy_ui_diagnostic
Legacy calls represent separate incidents. Producers updating one incident supply an explicit correlation identity through Diagnostic instead.
redact_diagnostic
Apply the existing secret redaction to every externally supplied field. Call before emitting a ThreadEvent, not merely when drawing its UI.
stderr
Early-startup/headless diagnostic boundary before a thread event sink exists. Formatting and redaction finish before stderr is touched.
stderr_diagnostic
Render a canonical diagnostic before any terminal UI is available.

Type Aliases§

DiagnosticSink
Session-local observer shared by clones of one inline handle.