Skip to main content

export_for_reason

Function export_for_reason 

Source
pub fn export_for_reason(reason: ExportReason) -> bool
Expand description

Reason-aware idempotent export. Like export_once but consults the per-path enable flag in AutoExportConfig before consuming the idempotency latch, so a disabled exit path (e.g. on_exit: false) does NOT prevent a later enabled path (e.g. on_panic: true) from exporting.

ยงReturns

true if THIS call performed the export; false if a prior call already exported, the path is disabled, or no tracker/cfg is installed.