sentry cdn으로 연결

루카소·2022년 12월 20일
0
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script
  src="https://browser.sentry-cdn.com/5.29.0/bundle.tracing.min.js"
  integrity="111"
  crossorigin="anonymous"
></script>
<script>
Sentry.init({
  dsn: "111",
  integrations: [new Sentry.Integrations.BrowserTracing()],

  // We recommend adjusting this value in production, or using tracesSampler
  // for finer control
  tracesSampleRate: 1.0,
});
</script>
<script>
  throw new Error('222');
</script>
</head>
<body>
 1 
</body>
</html>

위와 같이 하면 아래처럼 에러가 출력 된다.

신기한 점은 내가 무언가를 던지지 않아도 알아서 핸들링 된다는 점이다.

같은 에러일 경우 최신화 된다.
333은 최신에 일어난 에러이다.

profile
rukkasso

0개의 댓글