pub fn panic_record(
location: Option<(&str, u32, u32)>,
message: Option<&str>,
backtrace: Option<&str>,
)Expand description
Best-effort panic capture, safe to call from a panic hook.
Marks the capture incomplete before touching any lock, then admits one
panic record without ever blocking: if a producer died holding the
admission lock the record is skipped, not waited for. Raw message and
backtrace text are included only under ContentPolicy::Full — even
when the caller supplies them — and are capped so admitting this record
can never trip the record cap. On successful admission the writer gets
a bounded window to flush it to disk.