MCPcopy
hub / github.com/codeaashu/claude-code / scheduleFlush

Function scheduleFlush

src/services/analytics/datadog.ts:121–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121function scheduleFlush(): void {
122 if (flushTimer) return
123
124 flushTimer = setTimeout(() => {
125 flushTimer = null
126 void flushLogs()
127 }, getFlushIntervalMs()).unref()
128}
129
130export const initializeDatadog = memoize(async (): Promise<boolean> => {
131 if (isAnalyticsDisabled()) {

Callers 1

trackDatadogEventFunction · 0.70

Calls 2

flushLogsFunction · 0.85
getFlushIntervalMsFunction · 0.85

Tested by

no test coverage detected