diff --git a/example/trace/grpc_with_db/client/main.go b/example/trace/grpc_with_db/client/main.go index 24f379def..5a68dacf5 100644 --- a/example/trace/grpc_with_db/client/main.go +++ b/example/trace/grpc_with_db/client/main.go @@ -74,5 +74,4 @@ func StartRequests() { return } g.Log().Info(ctx, "delete id:", -1) - } diff --git a/example/trace/grpc_with_db/protobuf/user/client.go b/example/trace/grpc_with_db/protobuf/user/client.go index f373b1167..50accd9db 100644 --- a/example/trace/grpc_with_db/protobuf/user/client.go +++ b/example/trace/grpc_with_db/protobuf/user/client.go @@ -7,7 +7,7 @@ import ( ) const ( - AppID = "demo" + ServiceName = "demo" ) type Client struct { @@ -15,7 +15,7 @@ type Client struct { } func NewClient(options ...grpc.DialOption) (*Client, error) { - conn, err := krpc.Client.NewGrpcClientConn(AppID, options...) + conn, err := krpc.Client.NewGrpcClientConn(ServiceName, options...) if err != nil { return nil, err }