MCPcopy
hub / github.com/redis/go-redis / RecordStreamLag

Function RecordStreamLag

internal/otel/metrics.go:242–244  ·  view source on GitHub ↗

RecordStreamLag records the lag between message creation and consumption in a stream.

(ctx context.Context, lag time.Duration, cn *pool.Conn, streamName, consumerGroup, consumerName string)

Source from the content-addressed store, hash-verified

240
241// RecordStreamLag records the lag between message creation and consumption in a stream.
242func RecordStreamLag(ctx context.Context, lag time.Duration, cn *pool.Conn, streamName, consumerGroup, consumerName string) {
243 getRecorder().RecordStreamLag(ctx, lag, cn, streamName, consumerGroup, consumerName)
244}
245
246type noopRecorder struct{}
247

Callers 1

XReadGroupMethod · 0.92

Calls 2

getRecorderFunction · 0.85
RecordStreamLagMethod · 0.65

Tested by

no test coverage detected