Skip to content

Commit

Permalink
Test errot
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Nov 28, 2023
1 parent 017c17a commit 97dc979
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/cli/src/alto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 97dc979

Please sign in to comment.