2021-04-17 20:07:23 +05:30
|
|
|
import axios from '~/lib/utils/axios_utils';
|
2021-04-29 21:17:54 +05:30
|
|
|
import { reportToSentry } from '../../utils';
|
2021-04-17 20:07:23 +05:30
|
|
|
|
|
|
|
export const reportPerformance = (path, stats) => {
|
2021-06-08 01:23:25 +05:30
|
|
|
// FIXME: https://gitlab.com/gitlab-org/gitlab/-/issues/330245
|
|
|
|
if (!path) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
axios.post(path, stats).catch((err) => {
|
|
|
|
reportToSentry('links_inner_perf', `error: ${err}`);
|
|
|
|
});
|
|
|
|
};
|