v0.3.3 pipeline rate limiter added
This commit is contained in:
@ -65,12 +65,6 @@ func (s *StdinSource) GetStats() SourceStats {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *StdinSource) ApplyRateLimit(entry LogEntry) (LogEntry, bool) {
|
||||
// TODO: Implement source-side rate limiting for aggregation/summarization
|
||||
// For now, just pass through unchanged
|
||||
return entry, true
|
||||
}
|
||||
|
||||
func (s *StdinSource) readLoop() {
|
||||
scanner := bufio.NewScanner(os.Stdin)
|
||||
for scanner.Scan() {
|
||||
@ -90,12 +84,6 @@ func (s *StdinSource) readLoop() {
|
||||
Level: extractLogLevel(line),
|
||||
}
|
||||
|
||||
// Apply rate limiting
|
||||
entry, allowed := s.ApplyRateLimit(entry)
|
||||
if !allowed {
|
||||
continue
|
||||
}
|
||||
|
||||
s.publish(entry)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user