Files
wallet/pkgs/analytics/tsconfig.json
T
Hanzo AI bf5972ffe3 feat(analytics): provider-pluggable AnalyticsDriver, strip direct provider deps
@luxfi/wallet-analytics mirrors the abstraction the parallel exchange Blue
landed at ~/work/lux/exchange/pkgs/utilities/src/telemetry/analytics/backend.ts.
No third-party SDK is imported by this module — delivery is owned by an
AnalyticsDriver registered via setAnalyticsDriver(...). Hanzo Insights is
the intended default driver; white-labels swap drivers at boot.

Public surface (init/track/identify/Identify/getUserId/setDeviceId/flush)
matches what wallet call sites already expect, so swapping providers does
not require diff-ing 200+ sendAnalyticsEvent(...) sites.

Stripped from package.json (zero direct provider deps now in our shipped
manifests):
  apps/extension: @datadog/browser-rum
  apps/mobile:    @amplitude/analytics-react-native
                  @datadog/mobile-react-native
                  @datadog/mobile-react-navigation
                  @datadog/datadog-ci

Both apps now declare workspace deps on @luxfi/wallet-analytics and
@luxfi/wallet-brand. The 6 source files that still call datadogRum / DdSdk
directly are upstream-shaped and broken on other axes (`@universe/*`,
`wallet/*` referenced as bare specifiers); they will be replaced with
@luxfi/wallet-analytics calls during the apps refactor.
2026-04-30 11:47:26 -07:00

12 lines
234 B
JSON

{
"extends": "../../tsconfig.base.json",
"include": ["src/**/*.ts"],
"exclude": ["node_modules"],
"compilerOptions": {
"moduleResolution": "Bundler",
"lib": ["dom", "esnext"],
"noEmit": true,
"types": []
}
}