complete performance and reliability follow-ups

This commit is contained in:
Clintchiz committed 2026-08-09 23:04:36 +05:30
1 parent 8f19a5eb2b
commit 232d8e6734
31 files changed
+525 -726

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
export type ObservabilityDiagnostic = (message: string, error: unknown) => void;
/** Report exporter failures without feeding them back through the exporter. */
export function reportObservabilityFailure(
message: string,
error: unknown,
diagnostic?: ObservabilityDiagnostic,
): void {
if (diagnostic) {
diagnostic(message, error);
return;
}
console.warn(`[wrnexus:observability] ${message}`, error);
}