Skip to content

Commit 9b95a90

Browse files
author
myxy99
committed
xtrace
1 parent cd9bc39 commit 9b95a90

File tree

3 files changed

+2
-57
lines changed

3 files changed

+2
-57
lines changed

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ require (
99
github.com/aliyun/aliyun-oss-go-sdk v2.1.6+incompatible
1010
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f // indirect
1111
github.com/coder2z/g-saber v1.0.1
12-
github.com/davecgh/go-spew v1.1.1
1312
github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
1413
github.com/go-redis/redis/v8 v8.7.1
1514
github.com/golang/protobuf v1.4.3
1615
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
17-
github.com/mitchellh/mapstructure v1.4.1
1816
github.com/opentracing/opentracing-go v1.2.0
1917
github.com/philchia/agollo/v4 v4.1.3
2018
github.com/pkg/errors v0.9.1

xmonitor/xmonitor_test.go

Lines changed: 0 additions & 51 deletions
This file was deleted.

xtrace/xtrace.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ import (
1414
"google.golang.org/grpc/metadata"
1515
)
1616

17-
func Init(cfgKey string) {
17+
func JaegerBuild(cfgKey string) {
1818
cfg := jaeger.RawConfig(cfgKey)
19-
SetGlobalTracer(
20-
cfg.Build(),
21-
)
19+
SetGlobalTracer(cfg.Build())
2220
xconsole.Greenf("trace init:", cfg.Reporter.LocalAgentHostPort)
2321
}
2422

0 commit comments

Comments
 (0)