mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Echo: Don't notify if PerformanceBackend errors when flushing (#89379)
This commit is contained in:
@@ -32,8 +32,16 @@ export class PerformanceBackend implements EchoBackend<PerformanceEvent, Perform
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
backendSrv.post('/api/frontend-metrics', {
|
backendSrv
|
||||||
|
.post(
|
||||||
|
'/api/frontend-metrics',
|
||||||
|
{
|
||||||
events: this.buffer,
|
events: this.buffer,
|
||||||
|
},
|
||||||
|
{ showErrorAlert: false }
|
||||||
|
)
|
||||||
|
.catch(() => {
|
||||||
|
// Just swallow this error - it's non-critical
|
||||||
});
|
});
|
||||||
|
|
||||||
this.buffer = [];
|
this.buffer = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user