Skip to content

Commit

Permalink
Merge pull request influxdata#518 from influxdata/nc-report-on-startup
Browse files Browse the repository at this point in the history
Report usage stats on startup
  • Loading branch information
Nathaniel Cook committed May 5, 2016
2 parents 63fbb29 + 51634c8 commit 1375eb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/reporting/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ func (s *Service) Open() error {
s.tags["arch"] = runtime.GOARCH
s.tags["os"] = runtime.GOOS

// Send report on startup
err := s.sendUsageReport()
if err != nil {
s.logger.Println("E! error while sending usage report on startup:", err)
}

// Send periodic anonymous usage stats
s.usageTicker = time.NewTicker(reportingInterval)
s.wg.Add(1)
Expand Down

0 comments on commit 1375eb8

Please sign in to comment.