📜  sentry 忽略错误 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:20.679000             🧑  作者: Mango

代码示例1
// List of errors you want to ignore

Sentry.init({
  dsn: "sentry_dsn",
  ignoreErrors: [
    'TypeError: Failed to fetch',
    'TypeError: NetworkError when attempting to fetch resource.',
    'TypeError: Cancelled',
    'TypeError: cancelado',
  ],
});