Skip to content

Commit bc275ee

Browse files
feat: Expose library versions used to capture session replay data (#809)
1 parent 92d864c commit bc275ee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/features/session_replay/aggregate/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export class Aggregate extends AggregateBase {
312312
hasError: this.hasError,
313313
isFirstChunk: agentRuntime.session.state.sessionReplaySentFirstChunk === false,
314314
decompressedBytes: this.payloadBytesEstimation,
315-
'nr.rrweb.version': RRWEB_VERSION
315+
'rrweb.version': RRWEB_VERSION
316316
}, MAX_PAYLOAD_SIZE - this.payloadBytesEstimation).substring(1) // remove the leading '&'
317317
},
318318
body: this.events

src/loaders/configure/nonce.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
__webpack_require__.nc = (() => {
44
try {
5-
if (document.currentScript && document.currentScript.nonce) {
5+
if (document && document.currentScript && document.currentScript.nonce) {
66
return document.currentScript.nonce
77
}
88
} catch (ex) {

tests/specs/session-replay/helpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function testExpectedReplay ({ data, session, hasMeta, hasSnapshot, hasEr
3737
agentVersion: expect.any(String),
3838
isFirstChunk: isFirstChunk || expect.any(Boolean),
3939
decompressedBytes: decompressedBytes || expect.any(Number),
40-
'nr.rrweb.version': expect.any(String)
40+
'rrweb.version': expect.any(String)
4141
})
4242

4343
expect(data.body).toEqual(expect.any(Array))

0 commit comments

Comments
 (0)