debian-mirror-gitlab/app/assets/javascripts/pipelines/components/graph_shared/api.js
2021-06-08 01:23:25 +05:30

13 lines
350 B
JavaScript

import axios from '~/lib/utils/axios_utils';
import { reportToSentry } from '../../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}`);
});
};