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

Function NewLogSender

codersdk/agentsdk/logs.go:290–296  ·  view source on GitHub ↗
(logger slog.Logger)

Source from the content-addressed store, hash-verified

288}
289
290func NewLogSender(logger slog.Logger) *LogSender {
291 return &LogSender{
292 Cond: sync.NewCond(&sync.Mutex{}),
293 logger: logger,
294 queues: make(map[uuid.UUID]*logQueue),
295 }
296}
297
298func (l *LogSender) Enqueue(src uuid.UUID, logs ...Log) {
299 logger := l.logger.With(slog.F("log_source_id", src))

Callers 9

NewFunction · 0.92
TestLogSender_MainlineFunction · 0.85
TestLogSender_BatchFunction · 0.85
TestLogSender_SendErrorFunction · 0.85

Calls

no outgoing calls