Skip to content

Instantly share code, notes, and snippets.

@antklim
Created January 20, 2023 23:41
Show Gist options
  • Save antklim/254e73e16936feddb78093dd6e029182 to your computer and use it in GitHub Desktop.
Save antklim/254e73e16936feddb78093dd6e029182 to your computer and use it in GitHub Desktop.
import * as Sentry from "npm:@sentry/node";
const SENTRY_DSN = Deno.env.get("SENTRY_DSN");
if (SENTRY_DSN) {
Sentry.init({
dsn: SENTRY_DSN,
tracesSampleRate: 1.0,
});
}
// these functions do not perform any action before init() is called
Sentry.captureMessage("Starting app!");
Sentry.captureException(new Error("Test error!"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment