You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sentry.init({dsn: "MY_DSN",integrations: [// enable HTTP calls tracingnewSentry.Integrations.Http({tracing: true}),// enable Express.js middleware tracingnewSentry.Integrations.Express({ app }),// Automatically instrument Node.js libraries and frameworks
...Sentry.autoDiscoverNodePerformanceMonitoringIntegrations(),environment: config.env,release: process.env.SENTRY_RELEASE||'unknown',],// Set tracesSampleRate to 1.0 to capture 100%// of transactions for performance monitoring.// We recommend adjusting this value in productiontracesSampleRate: 1.0,});// RequestHandler creates a separate execution context, so that all// transactions/spans/breadcrumbs are isolated across requestsapp.use(Sentry.Handlers.requestHandler()asexpress.RequestHandler);// TracingHandler creates a trace for every incoming requestapp.use(Sentry.Handlers.tracingHandler());//...// The error handler must be before any other error middleware and after all controllersapp.use(Sentry.Handlers.errorHandler()asexpress.ErrorRequestHandler);
Steps to Reproduce
It was not working for me on capture errors until I find the documentation that I need to do casting for:
sunshineo
changed the title
Typescript Express server tra
Typescript Express server tracing not working. tracingHandler need casting? How?
Jun 19, 2023
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
7.55.2
Framework Version
No response
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
It was not working for me on capture errors until I find the documentation that I need to do casting for:
After that, I get errors. But tracing still does not work. Could it be because
Also need casting? How? I've tried
Neither works.
Expected Result
Tracing to work
Actual Result
Tracing not working
The text was updated successfully, but these errors were encountered: