Welcome to mirror list, hosted at ThFree Co, Russian Federation.

api_utils.js « graph « pipeline_details « ci « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f9f47d1ea15a0e6ba703eb8c711144ddf8ccf727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import axios from '~/lib/utils/axios_utils';
import { reportToSentry } from '~/ci/utils';

export const reportPerformance = (path, stats) => {
  // FIXME: https://gitlab.com/gitlab-org/gitlab/-/issues/330245
  if (!path) {
    return;
  }

  axios.post(path, stats).catch((err) => {
    reportToSentry('links_inner_perf', `error: ${err}`);
  });
};