MCPcopy Index your code
hub / github.com/coder/coder / NewReporter

Function NewReporter

coderd/workspacestats/reporter.go:61–63  ·  view source on GitHub ↗
(opts ReporterOptions)

Source from the content-addressed store, hash-verified

59}
60
61func NewReporter(opts ReporterOptions) *Reporter {
62 return &Reporter{opts: opts}
63}
64
65func (r *Reporter) ReportAppStats(ctx context.Context, stats []workspaceapps.StatsReport) error {
66 err := r.opts.Database.InTx(func(tx database.Store) error {

Callers 5

NewFunction · 0.92
TestCollectInsightsFunction · 0.92
TestUpdateStatsFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestCollectInsightsFunction · 0.74
TestUpdateStatsFunction · 0.74