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

Function BatcherWithLogger

coderd/workspacestats/batcher.go:81–85  ·  view source on GitHub ↗

BatcherWithLogger sets the logger to use for logging.

(log slog.Logger)

Source from the content-addressed store, hash-verified

79
80// BatcherWithLogger sets the logger to use for logging.
81func BatcherWithLogger(log slog.Logger) BatcherOption {
82 return func(b *DBBatcher) {
83 b.log = log
84 }
85}
86
87// NewBatcher creates a new Batcher and starts it.
88func NewBatcher(ctx context.Context, opts ...BatcherOption) (*DBBatcher, func(), error) {

Callers 7

TestDeploymentInsightsFunction · 0.92
TestAgentStatsFunction · 0.92
NewOptionsFunction · 0.92
ServerMethod · 0.92
TestBatchStatsFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestDeploymentInsightsFunction · 0.74
TestAgentStatsFunction · 0.74
TestBatchStatsFunction · 0.68