MCPcopy
hub / github.com/ampproject/amphtml / chooseReportingUrl_

Function chooseReportingUrl_

src/error-reporting.js:371–375  ·  view source on GitHub ↗

* Determines the error reporting endpoint which should be used. * If changing this URL, keep `docs/spec/amp-errors.md` in sync. * @return {string} error reporting endpoint URL.

()

Source from the content-addressed store, hash-verified

369 * @return {string} error reporting endpoint URL.
370 */
371function chooseReportingUrl_() {
372 return Math.random() < REPORT_ERROR_TO_BETA_ENDPOINT_THRESHOLD
373 ? urls.betaErrorReporting
374 : urls.errorReporting;
375}
376
377/**
378 * Passes the given error data to either server or viewer.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected