Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use fetch to send commercial metrics #1382

Merged
merged 3 commits into from
May 17, 2024
Merged

use fetch to send commercial metrics #1382

merged 3 commits into from
May 17, 2024

Conversation

Jakeii
Copy link
Member

@Jakeii Jakeii commented May 16, 2024

What does this change?

replace sendBeacon with fetch for sending commercial metrics

Why?

fetch should be more reliable than sendBeacon

Upon testing fetch will go through on the occasions that sendBeacon is blocked.

@emma-imber also did some testing on this a while back and determined fetch to be more reliable.

Copy link

changeset-bot bot commented May 16, 2024

🦋 Changeset detected

Latest commit: d368947

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@guardian/commercial Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

changeset-bot bot commented May 16, 2024

🦋 Changeset detected

Latest commit: ebfb7dd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@guardian/commercial Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Jakeii Jakeii added the [beta] @guardian/commercial Add this label to publish an @guardian/commercial beta npm release from a PR label May 16, 2024
Copy link
Contributor

🚀 0.0.0-beta-20240516153736 published to npm as a beta release

@Jakeii Jakeii marked this pull request as ready for review May 16, 2024 16:07
@Jakeii Jakeii requested a review from a team as a code owner May 16, 2024 16:07
Copy link
Member

@arelra arelra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@emma-imber emma-imber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! 🚀

@Jakeii Jakeii merged commit 6580399 into main May 17, 2024
11 checks passed
@Jakeii Jakeii deleted the jlk/fetch-for-metrics branch May 17, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[beta] @guardian/commercial Add this label to publish an @guardian/commercial beta npm release from a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants