Toucan API - Correct way to use it?

I have been creating my sentry instance as such:
const sentry = new Toucan({
      dsn: env.SENTRY_DSN,
      context: ctx,
      request,
      tracesSampleRate: 1.0,
      debug: false,
    });

Then calling sentry.captureException(message | error);

However it appears this method is now (for a while) deprecated. Are there any instructions on the new correct way to use toucan?
Was this page helpful?