add service traces

This commit is contained in:
Jeff
2019-04-09 00:57:42 +08:00
committed by zryfish
parent 6dd03b3df6
commit 4fb5388176
4 changed files with 77 additions and 3 deletions

View File

@@ -10,7 +10,14 @@ type ServerRunOptions struct {
// istio pilot discovery service url
IstioPilotServiceURL string
OpenPitrixServer string
// jaeger query service url
JaegerQueryServiceUrl string
// openpitrix api gateway service url
OpenPitrixServer string
// openpitrix service token
OpenPitrixProxyToken string
}
@@ -19,6 +26,7 @@ func NewServerRunOptions() *ServerRunOptions {
s := ServerRunOptions{
GenericServerRunOptions: genericoptions.NewServerRunOptions(),
IstioPilotServiceURL: "http://istio-pilot.istio-system.svc:8080/version",
JaegerQueryServiceUrl: "http://jaeger-query.istio-system.svc:16686/jaeger",
}
return &s
@@ -29,4 +37,6 @@ func (s *ServerRunOptions) AddFlags(fs *pflag.FlagSet) {
s.GenericServerRunOptions.AddFlags(fs)
fs.StringVar(&s.IstioPilotServiceURL, "istio-pilot-service-url", "http://istio-pilot.istio-system.svc:8080/version", "istio pilot discovery service url")
fs.StringVar(&s.JaegerQueryServiceUrl, "jaeger-query-service-url", "http://jaeger-query.istio-system.svc:16686/jaeger", "jaeger query service url")
}