mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Echo: Don't notify if PerformanceBackend errors when flushing (#89379)
This commit is contained in:
@@ -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