Skip to content

Commit e161110

Browse files
committed
Capture sentry errors when workflow trigger fails
1 parent 1036cf2 commit e161110

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/instance/instance.service.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as Sentry from "@sentry/nestjs";
12
import {
23
BadRequestException,
34
ConflictException,
@@ -72,6 +73,9 @@ export class InstanceService {
7273
this.logger.warn("Test");
7374

7475
this.triggerPulumiUp().catch((err) => {
76+
Sentry.captureException(
77+
new Error("Failed to trigger pulumi-up workflow", { cause: err }),
78+
);
7579
this.logger.warn(`Failed to trigger pulumi-up workflow: ${err.message}`);
7680
});
7781

‎tsconfig.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"experimentalDecorators": true,
88
"allowSyntheticDefaultImports": true,
99
"target": "ES2021",
10+
"lib": ["ESNext"],
1011
"sourceMap": true,
1112
"outDir": "./dist",
1213
"rootDir": "./",

0 commit comments

Comments
 (0)