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

Method RecordPubSubMessage

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

RecordPubSubMessage records a Pub/Sub message direction: "sent" or "received" channel: channel name (may be hidden for cardinality reduction) sharded: true for sharded pub/sub (SPUBLISH/SSUBSCRIBE)

(ctx context.Context, cn *pool.Conn, direction, channel string, sharded bool)

Source from the content-addressed store, hash-verified

78 // channel: channel name (may be hidden for cardinality reduction)
79 // sharded: true for sharded pub/sub (SPUBLISH/SSUBSCRIBE)
80 RecordPubSubMessage(ctx context.Context, cn *pool.Conn, direction, channel string, sharded bool)
81
82 // RecordStreamLag records the lag for stream consumer group processing
83 // lag: time difference between message creation and consumption

Callers 1

RecordPubSubMessageFunction · 0.65

Implementers 3

metricsRecorderextra/redisotel-native/metrics.go
noopRecorderinternal/otel/metrics.go

Calls

no outgoing calls

Tested by

no test coverage detected