complete performance and reliability follow-ups
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user