Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions packages/cli-kit/src/public/node/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async function buildPayload({config, errorMessage, exitMode}: ReportAnalyticsEve
const wallClockElapsed = currentTime - startTime
const totalTimeWithoutSubtimers = wallClockElapsed - totalTimeFromSubtimers

let payload = {
const payload = {
public: {
command: startCommand,
time_start: startTime,
Expand Down Expand Up @@ -192,9 +192,6 @@ async function buildPayload({config, errorMessage, exitMode}: ReportAnalyticsEve
}
})

// strip undefined fields -- they make up the majority of payloads due to wide metadata structure.
payload = JSON.parse(JSON.stringify(payload))

return sanitizePayload(payload)
}

Expand Down
Loading