[v10.4.x] Echo: Suppress errors from frontend-metrics API call failing (#89498)
Echo: Don't notify if PerformanceBackend errors when flushing (#89379)
(cherry picked from commit b43411631b)
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
This commit is contained in:
co-authored by
Josh Hunt
parent
fec5b421a9
commit
4494519750
@@ -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 = [];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user