class ElasticAPM::Transport::Base
def submit(resource)
def submit(resource) if @stopped.true? warn '%s: Transport stopping, no new events accepted', pid_str return false end ensure_watcher_running queue.push(resource, true) true rescue ThreadError throttled_queue_full_warning nil rescue Exception => e error '%s: Failed adding to the transport queue: %p', pid_str, e.inspect nil end