RecordPubSubMessage records a Pub/Sub message sent or received.
(ctx context.Context, cn *pool.Conn, direction, channel string, sharded bool)
| 235 | |
| 236 | // RecordPubSubMessage records a Pub/Sub message sent or received. |
| 237 | func 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. |
| 242 | func RecordStreamLag(ctx context.Context, lag time.Duration, cn *pool.Conn, streamName, consumerGroup, consumerName string) { |
no test coverage detected