fix tracker move batch debug to query param (#2052)

This commit is contained in:
Delirium 2024-04-08 09:42:23 +02:00 committed by GitHub
parent 60483499ee
commit bb09e59bf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 3 deletions

Binary file not shown.

View file

@ -1,3 +1,7 @@
# 12.0.9
- moved logging to query
# 12.0.8
- better logging for network batches

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "12.0.8",
"version": "12.0.9",
"keywords": [
"logging",
"replay"

View file

@ -90,7 +90,6 @@ export default class QueueSender {
const headers = {
Authorization: `Bearer ${this.token as string}`,
'X-Openreplay-Batch': `${this.pageNo ?? 'noPageNum'}_${batchNumStr ?? 'noBatchNum'}`,
} as Record<string, string>
if (isCompressed) {
@ -107,7 +106,7 @@ export default class QueueSender {
return
}
fetch(this.ingestURL, {
fetch(`${this.ingestURL}?batch=${this.pageNo ?? 'noPageNum'}_${batchNumStr ?? 'noBatchNum'}`, {
body: batch,
method: 'POST',
headers,