# encoding: utf-8 module OneApm module Agent class CrossAppSamplesSender # this class should be abandoned def initialize(events, agent) # @agent = agent # events.subscribe(:cross_sample_buffer_added, &method(:send_sample)) end def send_sample(sample) # OneApm::Manager.logger.debug "Send Cross App samples..." # @agent.harvest_lock.synchronize do # @agent.service.transaction_sample_data([sample]) # end # OneApm::Manager.logger.debug "Send Cross App samples successful." end end end end