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