Skip to content

Commit 9c8d916

Browse files
committed
feat(replay): Remove replayType from tags and into replay_event
Moves `replayType` from tags to part of `replay_event`. Added in backend in getsentry/replay-backend#210
1 parent 72d77d8 commit 9c8d916

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/replay/src/replay.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ export class ReplayContainer implements ReplayContainerInterface {
936936
urls,
937937
replay_id: replayId,
938938
segment_id,
939+
replay_type: this.session?.sampled,
939940
};
940941

941942
const replayEvent = await getReplayEvent({ scope, client, event: baseEvent });
@@ -951,7 +952,6 @@ export class ReplayContainer implements ReplayContainerInterface {
951952
...replayEvent.tags,
952953
sessionSampleRate: this._options.sessionSampleRate,
953954
errorSampleRate: this._options.errorSampleRate,
954-
replayType: this.session?.sampled,
955955
};
956956

957957
/*
@@ -970,6 +970,7 @@ export class ReplayContainer implements ReplayContainerInterface {
970970
],
971971
"replay_id": "eventId",
972972
"segment_id": 3,
973+
"replay_type": "error",
973974
"platform": "javascript",
974975
"event_id": "generated-uuid",
975976
"environment": "production",
@@ -985,7 +986,6 @@ export class ReplayContainer implements ReplayContainerInterface {
985986
"tags": {
986987
"sessionSampleRate": 1,
987988
"errorSampleRate": 0,
988-
"replayType": "error"
989989
}
990990
}
991991
*/

0 commit comments

Comments
 (0)