import reporter from '@gdyfe/reporter'
import { sentryOptions } from '@/config'
import Vue from 'vue'

if (process.env.NODE_ENV === 'production' && !process.env.private) {
  /* 初始化 */
  const report = reporter({
    ...sentryOptions,
    appid: '',
    isAjax: true,
    isError: true,
    isCookies: true,
    timeOut: 300,
    filterUrls: [],
    apiRules: [],
    usedCookies: ['token']
  })

  Vue.prototype.$report = report
}
