pub type FailureCallback = dyn Fn(&str) + Send + Sync;
Thread-safe hook for logging or metrics when the SDK surfaces a failure string.