Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ WithLogger
Function
WithLogger
coderd/agentapi/metadatabatcher/metadata_batcher.go:120–124 ·
view source on GitHub ↗
(log slog.Logger)
Source
from the content-addressed store, hash-verified
118
}
119
120
func
WithLogger(log slog.Logger) Option {
121
return
func
(b *Batcher) {
122
b.log = log
123
}
124
}
125
126
func
WithClock(clock quartz.Clock) Option {
127
return
func
(b *Batcher) {
Callers
8
New
Function · 0.92
TestBatchUpdateMetadata
Function · 0.92
TestMetadataBatcher
Function · 0.70
TestMetadataBatcher_DropsWhenFull
Function · 0.70
TestMetadataBatcher_Deduplication
Function · 0.70
TestMetadataBatcher_TimestampOrdering
Function · 0.70
TestMetadataBatcher_PubsubChunking
Function · 0.70
TestMetadataBatcher_ConcurrentAddsToSameAgent
Function · 0.70
Calls
no outgoing calls
Tested by
7
TestBatchUpdateMetadata
Function · 0.74
TestMetadataBatcher
Function · 0.56
TestMetadataBatcher_DropsWhenFull
Function · 0.56
TestMetadataBatcher_Deduplication
Function · 0.56
TestMetadataBatcher_TimestampOrdering
Function · 0.56
TestMetadataBatcher_PubsubChunking
Function · 0.56
TestMetadataBatcher_ConcurrentAddsToSameAgent
Function · 0.56