class Hanami::Events::CloudPubsub::Middleware::Client::RequestId
Broadcasts events with current request id
Public Instance Methods
call(payload, attributes = {}) { |payload, **attributes| ... }
click to toggle source
# File lib/hanami/events/cloud_pubsub/middleware/client/request_id.rb, line 10 def call(payload, attributes = {}) attributes.merge!( request_id: ::RequestId.request_id || SecureRandom.uuid ) yield(payload, **attributes) end