[−][src]Function newrelic_sys::newrelic_end_segment
pub unsafe extern "C" fn newrelic_end_segment(
transaction: *mut newrelic_txn_t,
segment_ptr: *mut *mut newrelic_segment_t
) -> bool
@brief Record the completion of a segment in a transaction.
Given an active transaction, this function records the segment's metrics on the transaction.
@param [in] transaction An active transaction. @param [in,out] segment_ptr The address of a valid segment. Before the function returns, any segment_ptr memory is freed; segment_ptr is set to NULL to avoid any potential double free errors.
@return true if the parameters represented an active transaction and custom segment to record as complete; false otherwise. If an error occurred, a log message will be written to the SDK log at LOG_ERROR level.