Skip to content

Commit edebb78

Browse files
committed
Differentiate unhandled errors in telemetry
1 parent 529c266 commit edebb78

File tree

9 files changed

+20
-18
lines changed

9 files changed

+20
-18
lines changed

lib/analyze-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/autobuild-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/resolve-environment-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/setup-codeql-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/status-report.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,15 +616,17 @@ export async function sendUnhandledErrorStatusReport(
616616
logger: Logger,
617617
): Promise<void> {
618618
try {
619+
// In the future, we may want to add a specific field for unhandled errors so we can
620+
// create a dedicated monitor for them.
619621
const statusReport = await createStatusReportBase(
620622
actionName,
621623
"failure",
622624
actionStartedAt,
623625
undefined,
624626
undefined,
625627
logger,
626-
undefined,
627-
getErrorMessage(error),
628+
`Unhandled error: ${getErrorMessage(error)}`,
629+
error instanceof Error ? error.stack : undefined,
628630
);
629631
if (statusReport !== undefined) {
630632
await sendStatusReport(statusReport);

0 commit comments

Comments
 (0)