We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f25613 commit b6f14acCopy full SHA for b6f14ac
1 file changed
packages/nextjs/src/server/vercelCronsMonitoring.ts
@@ -92,7 +92,8 @@ export function maybeCompleteCronCheckIn(span: Span): void {
92
93
const duration = _INTERNAL_safeDateNow() / 1000 - startTime;
94
const spanStatus = spanToJSON(span).status;
95
- const checkInStatus = spanStatus === 'error' ? 'error' : 'ok';
+ // Span status is 'ok' for success, undefined for unset, or an error message like 'internal_error'
96
+ const checkInStatus = spanStatus && spanStatus !== 'ok' ? 'error' : 'ok';
97
98
captureCheckIn({
99
checkInId: checkInId as string,
0 commit comments