Skip to content

Commit

Permalink
Send 100% traffic to JS error tracker (#10988)
Browse files Browse the repository at this point in the history
* Send 100% traffic to JS error tracker

* Add comment
  • Loading branch information
jridgewell authored and erwinmombay committed Aug 18, 2017
1 parent 1ef6ae4 commit 00e45eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/errortracker/errortracker.go
Expand Up @@ -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)
Expand Down

0 comments on commit 00e45eb

Please sign in to comment.