All files / app/assets/javascripts/pipelines/components/graph_shared api.js

60% Statements 3/5
50% Branches 1/2
50% Functions 1/2
60% Lines 3/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14      15x   1x       1x        
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
  Iif (!path) {
    return;
  }
 
  axios.post(path, stats).catch((err) => {
    reportToSentry('links_inner_perf', `error: ${err}`);
  });
};