MCPcopy
hub / github.com/grafana/tempo / Log

Method Log

pkg/util/log/rate_limited_logger.go:32–39  ·  view source on GitHub ↗
(keyvals ...interface{})

Source from the content-addressed store, hash-verified

30}
31
32func (l *RateLimitedLogger) Log(keyvals ...interface{}) {
33 if !l.limiter.AllowN(time.Now(), 1) {
34 metricDropedLines.Inc()
35 return
36 }
37
38 _ = l.logger.Log(keyvals...)
39}

Callers 1

TestRateLimitedLoggerFunction · 0.95

Calls 3

NowMethod · 0.65
IncMethod · 0.65
LogMethod · 0.65

Tested by 1

TestRateLimitedLoggerFunction · 0.76