Skip to main content

set_safe_custom_backtrace_provider

Function set_safe_custom_backtrace_provider 

Source
pub fn set_safe_custom_backtrace_provider<F>(provider: F) -> Result<(), Error>
where F: Fn() -> String + Send + Sync + 'static,
Expand description

Overrides backtrace capture. The returned string lands verbatim in the stacktrace field of service.1 records and is treated as safe-to-log. Used for platforms like wasm with that backtrace::Backtrace doesn’t support.