func StartWebTransaction() TTransactionId {
	result := C.newrelic_transaction_begin()
	return TTransactionId(result)
}
func BeginTransaction() int64 {
	id := C.newrelic_transaction_begin()
	return int64(id)
}
示例#3
0
文件: sdk.go 项目: frewsxcv/empire
/*
 * Identify the beginning of a transaction. By default, transaction type is set
 * to 'WebTransaction' and transaction category is set to 'Uri'. You can change
 * the transaction type using newrelic_transaction_set_type_other or
 * newrelic_transaction_set_type_web. You can change the transaction category
 * using newrelic_transaction_set_category.
 *
 * @return  transaction id on success, else negative warning code or error code
 */
func TransactionBegin() (int64, error) {
	return errNoLong(C.newrelic_transaction_begin())
}