Created
January 20, 2023 23:41
-
-
Save antklim/254e73e16936feddb78093dd6e029182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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