func TransactionSetMaxTraceSegments(id int64, max int) (int, error) {
	return errNo(C.newrelic_transaction_set_max_trace_segments(C.long(id), C.int(max)))
}
func TransactionSetMaxTraceSegments(id int64, max int) (int, error) {
	return errNo(C.newrelic_transaction_set_max_trace_segments(C.long(id), C.int(max)))
}
/*
 * Set the maximum number of trace segments allowed in a transaction trace. By
 * default, the maximum is set to 2000, which means the first 2000 segments in a
 * transaction will create trace segments if the transaction exceeds the
 * trace threshold (4 x apdex_t).
 *
 * @param transaction_id  id of transaction
 * @param max_trace_segments  maximum number of trace segments
 * @return  0 on success, else negative warning code or error code
 */