Skip to content

Commit c8f8db9

Browse files
committed
remove rollbar.replay.id event attribute
1 parent e9b9957 commit c8f8db9

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/browser/replay/recorder.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ export default class Recorder {
110110
{
111111
eventType: event.type,
112112
json: JSON.stringify(event.data),
113-
'rollbar.replay.id': replayId,
114113
},
115114
hrtime.fromMillis(event.timestamp),
116115
);
@@ -200,12 +199,10 @@ export default class Recorder {
200199
**/
201200
_addEndEvent(recordingSpan, replayId) {
202201
recordingSpan.addEvent(
203-
204202
'rrweb-replay-events',
205203
{
206204
eventType: 5,
207205
json: JSON.stringify({tag: "replay.end", payload: {}}),
208-
'rollbar.replay.id': replayId,
209206
},
210207
hrtime.fromMillis(Date.now()),
211208
);

test/browser.replay.recorder.test.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,14 @@ describe('Recorder', function () {
159159
const firstCallData = mockSpan.addEvent.firstCall.args[1];
160160
expect(firstCallData.eventType).to.equal('event1');
161161
expect(JSON.parse(firstCallData.json)).to.deep.equal({ a: 1 });
162-
expect(firstCallData['rollbar.replay.id']).to.equal(testReplayId);
163162

164163
const secondCallData = mockSpan.addEvent.secondCall.args[1];
165164
expect(secondCallData.eventType).to.equal('event2');
166165
expect(JSON.parse(secondCallData.json)).to.deep.equal({ b: 2 });
167-
expect(secondCallData['rollbar.replay.id']).to.equal(testReplayId);
168166

169167
const thirdCallData = mockSpan.addEvent.thirdCall.args[1];
170168
expect(thirdCallData.eventType).to.equal(5);
171169
expect(JSON.parse(thirdCallData.json)).to.deep.equal({tag: "replay.end", payload: {}});
172-
expect(thirdCallData['rollbar.replay.id']).to.equal(testReplayId);
173170
});
174171

175172
it('should handle checkout events correctly', function () {
@@ -244,7 +241,6 @@ describe('Recorder', function () {
244241
attributes: {
245242
eventType: EventType.Meta,
246243
json: JSON.stringify({}),
247-
'rollbar.replay.id': testReplayId,
248244
},
249245
timestamp: [3, 50000000],
250246
},
@@ -253,7 +249,6 @@ describe('Recorder', function () {
253249
attributes: {
254250
eventType: EventType.FullSnapshot,
255251
json: JSON.stringify({}),
256-
'rollbar.replay.id': testReplayId,
257252
},
258253
timestamp: [3, 100000000],
259254
},
@@ -262,7 +257,6 @@ describe('Recorder', function () {
262257
attributes: {
263258
eventType: EventType.IncrementalSnapshot,
264259
json: JSON.stringify({ c: 3 }),
265-
'rollbar.replay.id': testReplayId,
266260
},
267261
timestamp: [4, 0],
268262
},
@@ -271,7 +265,6 @@ describe('Recorder', function () {
271265
attributes: {
272266
eventType: EventType.Meta,
273267
json: JSON.stringify({}),
274-
'rollbar.replay.id': testReplayId,
275268
},
276269
timestamp: [4, 500000000],
277270
},
@@ -280,7 +273,6 @@ describe('Recorder', function () {
280273
attributes: {
281274
eventType: EventType.FullSnapshot,
282275
json: JSON.stringify({}),
283-
'rollbar.replay.id': testReplayId,
284276
},
285277
timestamp: [5, 0],
286278
},
@@ -289,7 +281,6 @@ describe('Recorder', function () {
289281
attributes: {
290282
eventType: EventType.IncrementalSnapshot,
291283
json: JSON.stringify({ d: 4 }),
292-
'rollbar.replay.id': testReplayId,
293284
},
294285
timestamp: [6, 0],
295286
},
@@ -361,7 +352,6 @@ describe('Recorder', function () {
361352
'rrweb-replay-events',
362353
`Event at index ${i} should have name "rrweb-replay-events"`
363354
);
364-
expect(eventAttrs['rollbar.replay.id']).to.equal(testReplayId);
365355
}
366356
});
367357

0 commit comments

Comments
 (0)