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

Method Push

pkg/livetraces/livetraces.go:82–84  ·  view source on GitHub ↗
(traceID []byte, batch T, maxLiveTraces uint64)

Source from the content-addressed store, hash-verified

80}
81
82func (l *LiveTraces[T]) Push(traceID []byte, batch T, maxLiveTraces uint64) bool {
83 return l.PushWithTimestampAndLimits(time.Now(), traceID, batch, maxLiveTraces, 0) == nil
84}
85
86func (l *LiveTraces[T]) PushWithTimestampAndLimits(ts time.Time, traceID []byte, batch T, maxLiveTraces, maxTraceSize uint64) error {
87 token := l.token(traceID)

Calls 2

NowMethod · 0.65

Tested by 4

BenchmarkLiveTracesWriteFunction · 0.36
BenchmarkLiveTracesReadFunction · 0.36