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

Function RecordPubSubMessage

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

RecordPubSubMessage records a Pub/Sub message sent or received.

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

Source from the content-addressed store, hash-verified

235
236// RecordPubSubMessage records a Pub/Sub message sent or received.
237func RecordPubSubMessage(ctx context.Context, cn *pool.Conn, direction, channel string, sharded bool) {
238 getRecorder().RecordPubSubMessage(ctx, cn, direction, channel, sharded)
239}
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) {

Callers 3

PublishMethod · 0.92
SPublishMethod · 0.92
newMessageMethod · 0.92

Calls 2

getRecorderFunction · 0.85
RecordPubSubMessageMethod · 0.65

Tested by

no test coverage detected