Skip to content

Commit 6ffe2b9

Browse files
authored
chore: use fetch() instead of sendBeacon() in smoke tests (#643)
1 parent fadc526 commit 6ffe2b9

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

app/smoke.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
endpoint: $ENDPOINT,
3434
telemetries: ['performance', 'errors', 'http', 'interaction'],
3535
allowCookies: true,
36-
enableXRay: true
36+
enableXRay: true,
37+
useBeacon: false
3738
});
3839
</script>
3940

smoke/smoke-test-application-CDN/smoke.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
Authorization: `Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c`,
3939
'x-api-key': 'a1b2c3d4e5f6',
4040
'content-type': 'application/json'
41-
}
41+
},
42+
useBeacon: false
4243
});
4344
</script>
4445

smoke/smoke-test-application-NPM-CJS/src/loader-npm-rum-2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ try {
1313
enableXRay: true,
1414
cookieAttributes: {
1515
unique: true
16-
}
16+
},
17+
useBeacon: false
1718
};
1819

1920
const APPLICATION_ID: string = $MONITOR_ID_2;

smoke/smoke-test-application-NPM-CJS/src/loader-npm-rum.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ try {
2020
Authorization: `Bearer ${token}`,
2121
'x-api-key': 'a1b2c3d4e5f6',
2222
'content-type': 'application/json'
23-
}
23+
},
24+
useBeacon: false
2425
};
2526

2627
const APPLICATION_ID: string = $MONITOR_ID;

smoke/smoke-test-application-NPM-ES/src/loader-npm-rum-2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ try {
1313
enableXRay: true,
1414
cookieAttributes: {
1515
unique: true
16-
}
16+
},
17+
useBeacon: false
1718
};
1819

1920
const APPLICATION_ID: string = $MONITOR_ID_2;

smoke/smoke-test-application-NPM-ES/src/loader-npm-rum.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ try {
2020
Authorization: `Bearer ${token}`,
2121
'x-api-key': 'a1b2c3d4e5f6',
2222
'content-type': 'application/json'
23-
}
23+
},
24+
useBeacon: false
2425
};
2526

2627
const APPLICATION_ID: string = $MONITOR_ID;

0 commit comments

Comments
 (0)