Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Merged
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
7 changes: 6 additions & 1 deletion scripts/analytics/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ class AnalyticsWrapper {

try {
this.analytics = new Analytics({
writeKey: token
writeKey: token,
// Segment node library was built for long running node processes like express.
// Maintain a lower values for flush than library defaults, so that segment does not
// hang CLI node process while waiting for queue to flush.
flushAt: 3,
flushInterval: 100
});
} catch {
// Ignore errors during initialization - TODO: log to sentry
Expand Down