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

Function TrackerWithLogger

coderd/workspacestats/tracker.go:72–76  ·  view source on GitHub ↗

TrackerWithLogger sets the logger to be used by Tracker.

(log slog.Logger)

Source from the content-addressed store, hash-verified

70
71// TrackerWithLogger sets the logger to be used by Tracker.
72func TrackerWithLogger(log slog.Logger) TrackerOption {
73 return func(h *UsageTracker) {
74 h.log = log
75 }
76}
77
78// TrackerWithFlushInterval allows configuring the flush interval of Tracker.
79func TrackerWithFlushInterval(d time.Duration) TrackerOption {

Callers 6

NewFunction · 0.92
NewOptionsFunction · 0.92
TestTrackerFunction · 0.92
ServerMethod · 0.92

Calls

no outgoing calls

Tested by 3

TestTrackerFunction · 0.74