Skip to content

Commit

Permalink
fix(Telemetry): Correctly report outcome for interactive setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrzesik committed Jul 6, 2021
1 parent 502f7e7 commit 0c5b8dd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/serverless.js
Expand Up @@ -72,7 +72,7 @@ process.on('SIGINT', () => {
serverless,
commandUsage,
});
storeTelemetryLocally({ ...telemetryPayload, outcome: 'interrupted' });
storeTelemetryLocally({ ...telemetryPayload, outcome: 'interrupt' });
}
process.exit(1);
});
Expand Down Expand Up @@ -445,16 +445,17 @@ const processSpanPromise = (async () => {

hasTelemetryBeenReported = true;
if (!isTelemetryDisabled) {
storeTelemetryLocally(
generateTelemetryPayload({
storeTelemetryLocally({
...generateTelemetryPayload({
command,
options,
commandSchema,
serviceDir,
configuration: configurationFromInteractive,
commandUsage,
})
);
}),
outcome: 'success',
});
await sendTelemetry({ serverlessExecutionSpan: processSpanPromise });
}
return;
Expand Down

0 comments on commit 0c5b8dd

Please sign in to comment.