Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMessageSink ¶
func NewMessageSink(sink pubsub.MessageSink, counterOpts prometheus.CounterOpts, topic string) pubsub.MessageSink
NewMessageSink constructs a new pubsub MessageSink wrapped in instrumentation The counter vector will have the labels status and topic
func NewMessageSource ¶
func NewMessageSource( source pubsub.MessageSource, counterOpts prometheus.CounterOpts, topic string) pubsub.MessageSource
NewMessageSource returns a new MessageSource
Types ¶
type MessageSink ¶
type MessageSink struct {
// contains filtered or unexported fields
}
MessageSink is an instrumented implementation of the pubsub MessageSink
func (*MessageSink) PutMessage ¶
func (ims *MessageSink) PutMessage(m pubsub.ProducerMessage) error
PutMessage implements pubsub MessageSink interface method wrapped in instrumentation
type MessageSource ¶
type MessageSource struct {
// contains filtered or unexported fields
}
MessageSource is an an Instrumented pubsub MessageSource The counter vector will have the labels "status" and "topic"
func (*MessageSource) ConsumeMessages ¶
func (ims *MessageSource) ConsumeMessages( ctx context.Context, handler pubsub.ConsumerMessageHandler, onError pubsub.ConsumerErrorHandler) error
ConsumeMessages is an implementation of interface method, wrapping the call in instrumentation
Click to show internal directories.
Click to hide internal directories.