From 97dc979a007234eaf849f9febbb8a9dff727678c Mon Sep 17 00:00:00 2001 From: plusminushalf Date: Tue, 28 Nov 2023 22:44:54 +0530 Subject: [PATCH] Test errot --- packages/cli/src/alto.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/cli/src/alto.ts b/packages/cli/src/alto.ts index 43210552..13e1ebc7 100644 --- a/packages/cli/src/alto.ts +++ b/packages/cli/src/alto.ts @@ -17,6 +17,21 @@ if (process.env.SENTRY_DSN) { profilesSampleRate: 1.0, environment: process.env.ENVIRONMENT }) + + const transaction = sentry.startTransaction({ + op: "test", + name: "My First Test Transaction" + }) + + setTimeout(() => { + try { + throw new Error("This is my test Sentry error!") + } catch (e) { + sentry.captureException(e) + } finally { + transaction.finish() + } + }, 99) } export const yarg = yargs((hideBin as (args: string[]) => string[])(process.argv))