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
/*
 * 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())
}