Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ TrackUsage
Method
TrackUsage
coderd/workspacestats/reporter.go:233–235 ·
view source on GitHub ↗
(workspaceID uuid.UUID)
Source
from the content-addressed store, hash-verified
231
}
232
233
func
(r *Reporter) TrackUsage(workspaceID uuid.UUID) {
234
r.opts.UsageTracker.Add(workspaceID)
235
}
236
237
func
(r *Reporter) Close() error {
238
return
r.opts.UsageTracker.Close()
Callers
1
postWorkspaceUsage
Method · 0.80
Implementers
1
CoderReporter
site/e2e/reporter.ts
Calls
1
Add
Method · 0.65
Tested by
no test coverage detected