lib/newrelic/telemetry_sdk/buffer.rb
# Record a discrete piece of data (e.g. a {Span}) into the {Buffer buffer}.
# @param item [Span, etc.]
#     A piece of data to record into the buffer. Must have a to_h method
#     for transformation.
#
# @api public
Record a discrete piece of data  into the {Buffer buffer}.
Record a discrete piece of data into the { Buffer buffer } .
def record item
        @lock.synchronize { @items << item }
      rescue => e
        log_error "Encountered error while recording in buffer", e
      end
def record item @lock . synchronize { @items << item } rescue => e log_error "Encountered error while recording in buffer" , e end
Record a discrete piece of data (e.g.
Record a discrete piece of data ( e . g .
item
A piece of data to record into the buffer. Must have a to_h method for transformation.
A piece of data to record into the buffer . Must have a to_h method for transformation .
api
None