Skip to content

Commit

Permalink
[v10.4.x] Echo: Suppress errors from frontend-metrics API call failing (
Browse files Browse the repository at this point in the history
#89498)

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

(cherry picked from commit b434116)

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
  • Loading branch information
grafana-delivery-bot[bot] and joshhunt authored Jun 21, 2024
1 parent fec5b42 commit 17cbd42
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions public/app/core/services/echo/backends/PerformanceBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
};
Expand Down

0 comments on commit 17cbd42

Please sign in to comment.