From 5cc346c7a20ab173b26422aa200b26cb5ca6cb3a Mon Sep 17 00:00:00 2001 From: Ahsan Barkati Date: Mon, 15 Mar 2021 22:11:18 +0530 Subject: [PATCH] Revert "fix(telemetry): Track enterprise feature usage (#7495)" This reverts commit 1cabd8662cfd4db2df0ef6308128c5f779f29116. --- telemetry/telemetry.go | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/telemetry/telemetry.go b/telemetry/telemetry.go index a3400c03cc2..b8f9f1de826 100644 --- a/telemetry/telemetry.go +++ b/telemetry/telemetry.go @@ -25,7 +25,6 @@ import ( "time" "github.com/dgraph-io/dgraph/protos/pb" - "github.com/dgraph-io/dgraph/worker" "github.com/dgraph-io/dgraph/x" "github.com/golang/glog" "github.com/pkg/errors" @@ -33,20 +32,19 @@ import ( // Telemetry holds information about the state of the zero and alpha server. type Telemetry struct { - Arch string `json:",omitempty"` - Cid string `json:",omitempty"` - ClusterSize int `json:",omitempty"` - DiskUsageMB int64 `json:",omitempty"` - NumAlphas int `json:",omitempty"` - NumGroups int `json:",omitempty"` - NumTablets int `json:",omitempty"` - NumZeros int `json:",omitempty"` - OS string `json:",omitempty"` - SinceHours int `json:",omitempty"` - Version string `json:",omitempty"` - NumGraphQLPM uint64 `json:",omitempty"` - NumGraphQL uint64 `json:",omitempty"` - EEFeaturesList []string `json:",omitempty"` + Arch string `json:",omitempty"` + Cid string `json:",omitempty"` + ClusterSize int `json:",omitempty"` + DiskUsageMB int64 `json:",omitempty"` + NumAlphas int `json:",omitempty"` + NumGroups int `json:",omitempty"` + NumTablets int `json:",omitempty"` + NumZeros int `json:",omitempty"` + OS string `json:",omitempty"` + SinceHours int `json:",omitempty"` + Version string `json:",omitempty"` + NumGraphQLPM uint64 `json:",omitempty"` + NumGraphQL uint64 `json:",omitempty"` } const url = "https://ping.dgraph.io/3.0/projects/5b809dfac9e77c0001783ad0/events" @@ -89,7 +87,6 @@ func NewAlpha(ms *pb.MembershipState) *Telemetry { // Post reports the Telemetry to the stats server. func (t *Telemetry) Post() error { - t.EEFeaturesList = worker.GetEEFeaturesList() data, err := json.Marshal(t) if err != nil { return err