Johnson C

Results 35 comments of Johnson C

Currently v3 plugins and tools were released with v3.7.0, but we cannot update README.md or do bug fixing for v3. The proposal that move into specific dirs may break compatibility,...

I've tested go-micro.dev/v4 import issue(#2321), seams the vanity url of go-micro.dev/v4 is not working fine. ``` curl -v https://go-micro.dev/v4 302 Found 302 Found nginx/1.17.3 ``` Should be like: ``` Go...

Now it works. #2321 and #2271 can be closed.

@charlesvhe you can try: ``` go install github.com/asim/go-micro/cmd/protoc-gen-micro/v4@latest ```

``` if err := micro.RegisterHandler(srv.Server(), etag.Handler(app, config.HttpETagWeak)); err != nil { logger.Fatal(err) } ```

Can you print your etcd registry key info? ```shell etcdctl get /micro/registry/go.micro.hello.ds --prefix ``` If your service name is go.micro.hello.ds, and endpoint is Ds.GetClass, then the error tip is correct.

What do you mean changed HTTP transport? ``` micro call --help NAME: micro call - Call a service e.g micro call greeter Say.Hello '{"name": "John"} USAGE: micro call [command options]...

unknown service go.micro.hello.ds.Ds micro v2版的call也是内部的grpc client去调用的,这个错误应该是grpc server端返回的,可以查一下注册handler的代码。 micro v2因为quic-go的问题,我跑不起来。 你可以用我的这个库测试一下:https://github.com/xpunch/go-micro-example/tree/main/v2/gateway

先梳理一下,go.micro.hello.ds是整个服务的名字,用于服务发现。Ds.GetClass是endpoint的名字,其中Ds是proto文件中定义的service,GetClass是proto文件中定义的rpc函数。 新版本go-micro中的grpc server,会先找去注册中心找go.micro.hello.ds,然后在本地serviceMap里找Ds这个service。 如果是go.micro.hello.ds找不到,应该会提示service go.micro.hello.ds: not found 如果是Ds找不到,应该会提示unknown service ds 你的那个错误提示unknown service go.micro.hello.ds.Ds,不知道你用的是哪个版本的go-micro grpc server,最好可以写一个example跑一下。 因为micro现在已经不兼容go-micro,你用的版本我也跑不起来,没法测试你遇到的问题。你的修改我跑了一下,原来正常的程序反而报错了。生成路径的算法,client端和server端是一致的,你改了client端可以了,说明你的server端与之前的client端不兼容。 最近新增加了一个gomu,支持原来micro支持的一些功能,你可以试试这个: https://github.com/asim/go-micro/tree/master/cmd/gomu

https://github.com/go-micro/plugins/tree/main/v4/wrapper/trace/opentelemetry