Closed qxs820624 closed 4 years ago
@withlin Take a look?
@withlin give me a hand please
Sorry, late reply for you. yeah. i think that it is bug. i will try fix it.
@withlin okey, thanks!
New clues, recording in ES, there are differences between go2sky and javaagent. first, the value of key 'properties' has 'ipv4s' only in go2sky, such as {"ipv4s":"[]"}, but much more information for javaagent, {"os_name":"Linux","host_name":"server-10-10-17-180","process_no":"26310","language":"java","ipv4s":"[\"10.10.17.180\"]"}. second, the value of key 'name' is different.
Describe the bug A clear and concise description of what the bug is. Do reporter.NewGRPCReporter with the go2sky.TracerOption go2sky.WithInstance("instance@hostname")
but can not found the instance name "instance@hostname" at http://127.0.0.1:8080/trace on dropdown menu instance
To Reproduce
import ( "context" "log" "time"
)
func main() { report, err := reporter.NewGRPCReporter("127.0.0.1:11800") if err != nil { log.Fatalf("new reporter error %v \n", err) } tracer, err := go2sky.NewTracer("serverName", go2sky.WithReporter(report), go2sky.WithInstance("instance@hostname")) if err != nil { log.Fatalf("create tracer error %v \n", err) } tracer.WaitUntilRegister() defer report.Close()
}
go run testtracer.go go2sky-gRPC2019/08/20 15:12:47 the id of service 'serverName' is 5 go2sky-gRPC2019/08/20 15:12:47 the id of instance 'instance@hostname' id is 6
Expected behavior I can found the instance "instance@hostname" at http://127.0.0.1:8080/trace in the dropdown menu "instance"
Screenshots
Desktop (please complete the following information):
Additional context Add any other context about the problem here.