MCPcopy
hub / github.com/grafana/tempo / buildReport

Function buildReport

pkg/usagestats/stats.go:75–82  ·  view source on GitHub ↗

buildReport builds the report to be sent to the stats server, this report includes the cluster seed data.

(seed *ClusterSeed, interval time.Time)

Source from the content-addressed store, hash-verified

73// buildReport builds the report to be sent to the stats server,
74// this report includes the cluster seed data.
75func buildReport(seed *ClusterSeed, interval time.Time) Report {
76 report := BuildStats()
77 report.ClusterID = seed.UID
78 report.CreatedAt = seed.CreatedAt
79 report.Interval = interval
80
81 return report
82}
83
84// BuildStats builds the report without cluster seed data
85func BuildStats() Report {

Callers 2

Test_BuildReportFunction · 0.85
sendReportFunction · 0.85

Calls 1

BuildStatsFunction · 0.85

Tested by 1

Test_BuildReportFunction · 0.68