Skip to content

Commit 91464b5

Browse files
committed
ref(replay): Stop calling _updateSessionFromEvent
This can't really have an impact, as that only does stuff when the event has `exception`, which a replay does not.
1 parent 241f784 commit 91464b5

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

packages/replay/src/util/getReplayEvent.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ export async function getReplayEvent({
1818
// @ts-ignore private api
1919
const preparedEvent: Event = await client._prepareEvent(event, { event_id }, scope);
2020

21-
const session = scope && scope.getSession();
22-
if (session) {
23-
// @ts-ignore private api
24-
client._updateSessionFromEvent(session, preparedEvent);
25-
}
26-
2721
preparedEvent.sdk = {
2822
...preparedEvent.sdk,
2923
...REPLAY_SDK_INFO,

rollup/plugins/bundlePlugins.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ export function makeTerserPlugin() {
106106
'_support',
107107
// TODO: Get rid of these once we use the SDK to send replay events
108108
'_prepareEvent', // replay uses client._prepareEvent
109-
'_updateSessionFromEvent', // replay client._updateSessionFromEvent
110109
],
111110
},
112111
},

0 commit comments

Comments
 (0)