MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / logAnalyticsError

Function logAnalyticsError

cli/src/utils/analytics.ts:128–134  ·  view source on GitHub ↗
(error: unknown, context: AnalyticsErrorContext)

Source from the content-addressed store, hash-verified

126}
127
128function logAnalyticsError(error: unknown, context: AnalyticsErrorContext) {
129 try {
130 analyticsErrorLogger?.(error, context)
131 } catch {
132 // Never throw from error reporting
133 }
134}
135
136export function initAnalytics() {
137 const { env, isProd, createClient, generateAnonymousId } = resolveDeps()

Callers 5

initAnalyticsFunction · 0.85
flushAnalyticsFunction · 0.85
trackEventFunction · 0.85
identifyUserFunction · 0.85
logErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected