コード例 #1
0
func StartWebTransaction() TTransactionId {
	result := C.newrelic_transaction_begin()
	return TTransactionId(result)
}
コード例 #2
0
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())
}