- Introduced a trace manager in the context struct for lazy initialization and management of trace operations. - Implemented the Trace method in the context to facilitate trace object creation and management within JavaScript. - Enhanced configuration options for trace drivers, including defaults for local and store drivers, and added path and prefix settings. - Updated related tests to verify the functionality of the new trace management features.
27 lines
584 B
Go
27 lines
584 B
Go
package main
|
|
|
|
import (
|
|
_ "github.com/yaoapp/gou/diff"
|
|
_ "github.com/yaoapp/gou/encoding"
|
|
_ "github.com/yaoapp/yao/aigc"
|
|
_ "github.com/yaoapp/yao/crypto"
|
|
_ "github.com/yaoapp/yao/excel"
|
|
_ "github.com/yaoapp/yao/helper"
|
|
_ "github.com/yaoapp/yao/openai"
|
|
_ "github.com/yaoapp/yao/seed"
|
|
_ "github.com/yaoapp/yao/trace/jsapi"
|
|
_ "github.com/yaoapp/yao/wework"
|
|
|
|
"github.com/yaoapp/yao/cmd"
|
|
"github.com/yaoapp/yao/utils"
|
|
//
|
|
// _ "net/http/pprof"
|
|
)
|
|
|
|
func main() {
|
|
// go func() {
|
|
// log.Println(http.ListenAndServe("localhost:6060", nil))
|
|
// }()
|
|
utils.Init()
|
|
cmd.Execute()
|
|
}
|