Skip to main content

create_diagnostic_bundle

Function create_diagnostic_bundle 

Source
pub fn create_diagnostic_bundle(
    config_path: &Path,
    database_path: &Path,
    output_path: &Path,
) -> Result<DiagnosticBundle, ApplicationError>
Expand description

Creates a redacted, source-free diagnostic bundle only at an explicit output path.

Existing files are never overwritten. On Unix, the file is created with owner-only permissions before any diagnostic data is serialized.

ยงErrors

Returns ApplicationError when diagnostics cannot be collected, the destination already exists, time cannot be represented, or the bundle cannot be durably written.