Const
Adds Sentry tracing instrumentation for Express.
If you also want to capture errors, you need to call setupExpressErrorHandler(app) after you set up your Express server.
setupExpressErrorHandler(app)
For more information, see the express documentation.
const Sentry = require('@sentry/node');Sentry.init({ integrations: [Sentry.expressIntegration()],}) Copy
const Sentry = require('@sentry/node');Sentry.init({ integrations: [Sentry.expressIntegration()],})
Adds Sentry tracing instrumentation for Express.
If you also want to capture errors, you need to call
setupExpressErrorHandler(app)after you set up your Express server.For more information, see the express documentation.