콘텐츠로 이동

MySQL | Next.js용 Sentry

원본 URL: https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/mysql

이 통합은 Node.js 및 Bun 런타임에서만 작동합니다.

가져오기 이름: Sentry.mysqlIntegration

이 통합은 성능 모니터링이 활성화되어 있을 때 기본적으로 활성화됩니다. 기본 통합을 수정하려면 여기를 읽어보세요.

mysqlIntegration@opentelemetry/instrumentation-mysql을 사용해 스팬을 수집할 수 있도록 mysql 라이브러리에 계측을 추가합니다.

Sentry.init({
integrations: [Sentry.mysqlIntegration()],
});
  • mysql: 2.x