Skip to content

Commit

Permalink
chore: skip rate limiting of snapshot events (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Aug 27, 2024
1 parent 82fd839 commit 5b3894d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/__tests__/extensions/replay/sessionrecording.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ describe('SessionRecording', () => {
_url: 'https://test.com/s/',
_noTruncate: true,
_batchKey: 'recordings',
skip_client_rate_limiting: true,
}
)
})
Expand Down Expand Up @@ -767,6 +768,7 @@ describe('SessionRecording', () => {
_url: 'https://test.com/s/',
_noTruncate: true,
_batchKey: 'recordings',
skip_client_rate_limiting: true,
}
)
})
Expand Down Expand Up @@ -849,6 +851,7 @@ describe('SessionRecording', () => {
_url: 'https://test.com/s/',
_noTruncate: true,
_batchKey: 'recordings',
skip_client_rate_limiting: true,
}
)

Expand Down Expand Up @@ -1514,6 +1517,7 @@ describe('SessionRecording', () => {
_batchKey: 'recordings',
_noTruncate: true,
_url: 'https://test.com/s/',
skip_client_rate_limiting: true,
}
)

Expand Down Expand Up @@ -1607,6 +1611,7 @@ describe('SessionRecording', () => {
_batchKey: 'recordings',
_noTruncate: true,
_url: 'https://test.com/s/',
skip_client_rate_limiting: true,
}
)

Expand Down Expand Up @@ -1635,6 +1640,7 @@ describe('SessionRecording', () => {
_batchKey: 'recordings',
_noTruncate: true,
_url: 'https://test.com/s/',
skip_client_rate_limiting: true,
}
)
expect(sessionRecording['buffer']).toEqual({
Expand Down
1 change: 1 addition & 0 deletions src/extensions/replay/sessionrecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ export class SessionRecording {
_url: this.instance.requestRouter.endpointFor('api', this._endpoint),
_noTruncate: true,
_batchKey: SESSION_RECORDING_BATCH_KEY,
skip_client_rate_limiting: true,
})
}

Expand Down

0 comments on commit 5b3894d

Please sign in to comment.