Echo: Don't notify if PerformanceBackend errors when flushing (#89379)

This commit is contained in:
Josh Hunt
2024-06-19 10:00:49 +01:00
committed by GitHub
parent a9736cf7dc
commit b43411631b
@@ -32,9 +32,17 @@ export class PerformanceBackend implements EchoBackend<PerformanceEvent, Perform
return;
}
backendSrv.post('/api/frontend-metrics', {
events: this.buffer,
});
backendSrv
.post(
'/api/frontend-metrics',
{
events: this.buffer,
},
{ showErrorAlert: false }
)
.catch(() => {
// Just swallow this error - it's non-critical
});
this.buffer = [];
};