summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipelines/components/graph_shared/api.js
blob: 04ac15ae24cc1cdd875e4a3f955744081b7b6308 (plain)
1
2
3
4
5
6
7
8
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}`);
  });
};