debian-mirror-gitlab/app/assets/javascripts/pipelines/components/graph_shared/api.js
2021-04-29 21:17:54 +05:30

8 lines
253 B
JavaScript

import axios from '~/lib/utils/axios_utils';
import { reportToSentry } from '../../utils';
export const reportPerformance = (path, stats) => {
axios.post(path, stats).catch((err) => {
reportToSentry('links_inner_perf', `error: ${err}`);
});
};