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

Method RecordUsage

coderd/aiseats/aiseats.go:32–32  ·  view source on GitHub ↗

RecordUsage does not return an error to prevent blocking the user from using AI features. This method is used to record usage, not enforce it.

(ctx context.Context, userID uuid.UUID, reason Reason)

Source from the content-addressed store, hash-verified

30 // RecordUsage does not return an error to prevent blocking the user from using
31 // AI features. This method is used to record usage, not enforce it.
32 RecordUsage(ctx context.Context, userID uuid.UUID, reason Reason)
33}
34
35// Noop is an AGPL seat tracker that does nothing.

Callers 3

RecordInterceptionMethod · 0.65
TestSeatTrackerDBFunction · 0.65

Implementers 2

Noopcoderd/aiseats/aiseats.go
SeatTrackerenterprise/aiseats/tracker.go

Calls

no outgoing calls

Tested by 1

TestSeatTrackerDBFunction · 0.52