diff --git a/pkg/router/analytics.go b/pkg/router/analytics.go index 9c28ed47..76c4a1cf 100644 --- a/pkg/router/analytics.go +++ b/pkg/router/analytics.go @@ -17,7 +17,7 @@ type ( url string } AnalyticsData struct { - id string + ID string `json:"ID"` FunctionCallCount uint64 `json:"FunctionCallCount"` } ) @@ -49,14 +49,14 @@ func (a *Analytics) run() { ticker := time.NewTicker(24 * time.Hour) for range ticker.C { msg := a.gatherData() - msg.id = a.id + msg.ID = a.id msgbytes, err := json.Marshal(*msg) if err != nil { continue } - resp, err := http.Post(a.url, "application/json", bytes.NewReader(msgbytes)) + resp, _ := http.Post(a.url, "application/json", bytes.NewReader(msgbytes)) if resp != nil { // close response body to prevent resources leak resp.Body.Close()