Skip to content

Commit

Permalink
internal/telemetry: unconditionally trigger upload logic
Browse files Browse the repository at this point in the history
Change-Id: Ib035753d3c292ba0dd360447884bb46ae8ec409c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/524535
Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Robert Findley <[email protected]>
  • Loading branch information
hyangah committed Aug 30, 2023
1 parent 9658d2e commit e3671fc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gopls/internal/telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package telemetry

import (
"fmt"
"os"
"time"

"golang.org/x/telemetry/counter"
Expand All @@ -20,9 +19,7 @@ import (
// Start starts telemetry instrumentation.
func Start() {
counter.Open()
if os.Getenv("GOPLS_TELEMETRY_EXP") != "" {
go packAndUpload()
}
go packAndUpload()
}

func packAndUpload() {
Expand Down

0 comments on commit e3671fc

Please sign in to comment.