debian-mirror-gitlab/app/assets/javascripts/pipelines/components/graph_shared/api.js

9 lines
256 B
JavaScript
Raw Normal View History

2021-04-17 20:07:23 +05:30
import axios from '~/lib/utils/axios_utils';
import { reportToSentry } from '../graph/utils';
export const reportPerformance = (path, stats) => {
axios.post(path, stats).catch((err) => {
reportToSentry('links_inner_perf', `error: ${err}`);
});
};