From 00e45ebe481bc7908301b5ef7610651f30253111 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Thu, 17 Aug 2017 21:10:13 -0400 Subject: [PATCH] Send 100% traffic to JS error tracker (#10988) * Send 100% traffic to JS error tracker * Add comment --- tools/errortracker/errortracker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/errortracker/errortracker.go b/tools/errortracker/errortracker.go index 20cb14059c56..97a8b7d225b7 100644 --- a/tools/errortracker/errortracker.go +++ b/tools/errortracker/errortracker.go @@ -172,7 +172,8 @@ func handle(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "THROTTLED\n") return } - if rand.Float64() < 0.1 { + // We're temporarily forwarding 100% of traffic to the JS error tracker. + if rand.Float64() < 1 { urlString := strings.Replace(r.URL.String(), "amp-error-reporting", "amp-error-reporting-js", 1) client := urlfetch.Client(c) req, err := http.NewRequest("GET", urlString, nil)