Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions apps/ui/src/analytics/analytics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,8 @@ describe("$ai_trace_id stamping", () => {
});

test("a trace id arriving AFTER createAnalytics is picked up by a later capture", () => {
// The whole reason the source is a getter over a mutable slot: boot builds
// the transport before analytics, so the first trace id lands later. A
// read-once-at-construction regression would capture undefined forever.
// Boot builds analytics BEFORE the transport, so no trace id exists yet at
// construction; reading once here would capture undefined forever.
const fake = makeFake();
let current: string | undefined;
const analytics = createAnalytics(config, {
Expand Down
Loading