Class: Promenade::Waterdrop::MessageSubscriber
- Inherits:
-
Subscriber
- Object
- ActiveSupport::Subscriber
- Subscriber
- Promenade::Waterdrop::MessageSubscriber
- Defined in:
- lib/promenade/waterdrop/message_subscriber.rb
Instance Method Summary collapse
Instance Method Details
#acknowledged(event) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/promenade/waterdrop/message_subscriber.rb', line 28 def acknowledged(event) labels = { client: event.payload[:producer_id], } Promenade.metric(:waterdrop_producer_ack_messages_total).increment(labels) end |