class RubyEventStore::Mappers::InstrumentedBatchMapper
Attributes
Public Class Methods
Source
# File lib/ruby_event_store/mappers/instrumented_batch_mapper.rb, line 6 def initialize(mapper, instrumentation) @mapper = mapper @instrumentation = instrumentation end
Public Instance Methods
Source
# File lib/ruby_event_store/mappers/instrumented_batch_mapper.rb, line 11 def events_to_records(events) instrumentation.instrument("events_to_records.mapper.rails_event_store", domain_events: events) do mapper.events_to_records(events) end end
Source
# File lib/ruby_event_store/mappers/instrumented_batch_mapper.rb, line 17 def records_to_events(records) instrumentation.instrument("records_to_events.mapper.rails_event_store", records: records) do mapper.records_to_events(records) end end