func EndDatastoreStatement(transactionId TTransactionId, segmentId SegmentId) int {
	result := C.newrelic_segment_end(C.long(transactionId), C.long(segmentId))
	return int(result)
}
Exemplo n.º 2
0
func EndSegment(txnID int64, parentID int64) error {
	rv := C.newrelic_segment_end(C.long(txnID), C.long(parentID))
	return nrError(rv, "end segment")
}
Exemplo n.º 3
0
/*
 * Identify the end of a segment
 *
 * @param transaction_id  id of transaction
 * @param egment_id  id of the segment to end
 * @return  0 on success, else negative warning code or error code
 */
func SegmentEnd(id, segId int64) (int, error) {
	return errNo(C.newrelic_segment_end(C.long(id), C.long(segId)))
}