Skip to content

Pre-throttle error reports from Stable client#28181

Merged
rcebulko merged 3 commits intoampproject:masterfrom
rcebulko:prethrottle
May 4, 2020
Merged

Pre-throttle error reports from Stable client#28181
rcebulko merged 3 commits intoampproject:masterfrom
rcebulko:prethrottle

Conversation

@rcebulko
Copy link
Copy Markdown
Contributor

@rcebulko rcebulko commented May 4, 2020

Part of ampproject/error-tracker#129

Must not reach stable before the accompanying change in the error-tracker repo.

Comment thread src/error.js

// TODO(https://github.com/ampproject/error-tracker/issues/129): Remove once
// all clients are serving a version with pre-throttling.
if (data['rt'] === 'production') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we can ever remove this, since we don't wan the reporting function to throttle canary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As in, we can remove the "prethrottle" param and just use data['rt'] directly in the conditional above. We only need to explicitly provide "prethrottle" while some versions aren't doing it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ahh

@rcebulko rcebulko merged commit 6409019 into ampproject:master May 4, 2020
@rcebulko rcebulko deleted the prethrottle branch May 4, 2020 21:34
ldoroshe pushed a commit to ldoroshe/amphtml that referenced this pull request May 8, 2020
* Pre-throttle error reports from Stable client

* Use runtime field instead of RTV

* Shorten throttled --> pt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants