Skip to content

Commit

Permalink
fix tracker move batch debug to query param (openreplay#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-delirium authored Apr 8, 2024
1 parent 6048349 commit bb09e59
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Binary file modified tracker/tracker-assist/bun.lockb
Binary file not shown.
4 changes: 4 additions & 0 deletions tracker/tracker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 12.0.9

- moved logging to query

# 12.0.8

- better logging for network batches
Expand Down
2 changes: 1 addition & 1 deletion tracker/tracker/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "12.0.8",
"version": "12.0.9",
"keywords": [
"logging",
"replay"
Expand Down
3 changes: 1 addition & 2 deletions tracker/tracker/src/webworker/QueueSender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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,
Expand Down

0 comments on commit bb09e59

Please sign in to comment.