feat(analytics): build-time bake + telemetry depth (#336)

Bake PostHog + Sentry into the published Docker image (SNAPOTTER_ANALYTICS
build arg, codegen script). Delete entire consent system. Move event emission
to BullMQ worker. Add cross-tier identity stitching, Sentry performance
tracing on both tiers, frontend funnel events. Fix stateful regex bug.

86 files changed, 1593 insertions(+), 3747 deletions(-)
This commit is contained in:
SnapOtter
2026-06-24 11:05:39 +08:00
committed by GitHub
parent a53038ed96
commit 5d36ac06d8
86 changed files with 1594 additions and 3748 deletions
@@ -261,6 +261,7 @@ function createMockRequest(opts: {
for (const p of parts) yield p;
},
}),
headers: {},
log: { warn: vi.fn(), error: vi.fn(), info: vi.fn() },
};
}
@@ -599,6 +600,7 @@ describe("createToolRoute", () => {
};
},
}),
headers: {},
log: { warn: vi.fn(), error: vi.fn(), info: vi.fn() },
};
@@ -644,6 +646,7 @@ describe("createToolRoute", () => {
};
},
}),
headers: {},
log: { warn: vi.fn(), error: vi.fn(), info: vi.fn() },
};
@@ -677,6 +680,7 @@ describe("createToolRoute", () => {
};
},
}),
headers: {},
log: { warn: vi.fn(), error: vi.fn(), info: vi.fn() },
};
@@ -709,6 +713,7 @@ describe("createToolRoute", () => {
};
},
}),
headers: {},
log: { warn: vi.fn(), error: vi.fn(), info: vi.fn() },
};