You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
kratos/pkg/net/trace/jaeger/config.go

11 lines
269 B

package jaeger
import (
"github.com/go-kratos/kratos/pkg/conf/env"
"github.com/go-kratos/kratos/pkg/net/trace"
)
func Init() {
c := &Config{Endpoint: "http://127.0.0.1:9191", BatchSize: 120}
trace.SetGlobalTracer(trace.NewTracer(env.AppID, newReport(c), true))
}