func EndDatastoreStatement(transactionId TTransactionId, segmentId SegmentId) int {
	result := C.newrelic_segment_end(C.long(transactionId), C.long(segmentId))
	return int(result)
}
예제 #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")
}
예제 #3
0
파일: sdk.go 프로젝트: frewsxcv/empire
/*
 * 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)))
}