Skip to content

Commit 003ddb4

Browse files
committed
also track replayId so we can dedupe unique objects
1 parent a3cf67b commit 003ddb4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

static/app/utils/analytics/replayAnalyticsEvents.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export type ReplayEventParameters = {
88
finished_at_delta: number; // Log the change (positive number==later date) in finished_at
99
project_platform: string;
1010
replay_errors: number;
11-
started_at_delta: number; // Log the change (negative number==earlier date) in finished_at
11+
replay_id: string;
12+
started_at_delta: number; // Log the change (negative number==earlier date) in started_at
1213
total_errors: number;
1314
};
1415
'replay.details-layout-changed': {

static/app/utils/replays/hooks/useLogReplayDataLoaded.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function useLogReplayDataLoaded({fetchError, fetching, projectSlug, replay}: Pro
3535
total_errors: allErrors.length,
3636
started_at_delta: replay.timestampDeltas.startedAtDelta,
3737
finished_at_delta: replay.timestampDeltas.finishedAtDelta,
38+
replay_id: replay.getReplay().id,
3839
});
3940
}, [organization, project, fetchError, fetching, projectSlug, replay]);
4041
}

0 commit comments

Comments
 (0)