func StartWebTransaction() TTransactionId {
	result := C.newrelic_transaction_begin()
	return TTransactionId(result)
}
Ejemplo n.º 2
0
func BeginTransaction() int64 {
	id := C.newrelic_transaction_begin()
	return int64(id)
}
Ejemplo n.º 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())
}