📜  sentry ignoreerrors - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:18.560000             🧑  作者: 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',
  ],
});