SkyAPM / go2sky

Distributed tracing and monitor SDK in Go for Apache SkyWalking APM
https://skywalking.apache.org/
Apache License 2.0
448 stars 122 forks source link

panic: proto: duplicate enum registered: SpanType #67

Closed ops-cn closed 4 years ago

ops-cn commented 4 years ago

Describe the bug

panic: proto: duplicate enum registered: SpanType

goroutine 1 [running]: github.com/golang/protobuf/proto.RegisterEnum(0x2bb3c53, 0x8, 0xc000289080, 0xc0002890e0) E:/workspace/go/src/pkg/mod/github.com/golang/protobuf@v1.4.2/proto/registry.go:104 +0x125 github.com/SkyAPM/go2sky/reporter/grpc/language-agent.init.0() E:/workspace/go/src/pkg/mod/github.com/!sky!a!p!m/go2sky@v0.4.0/reporter/grpc/language-agent/Tracing.pb.go:520 +0x59

To Reproduce Steps to reproduce the behavior:

with go micro and gin framework

arugal commented 4 years ago

Never encountered, can you provide more information :)

arugal commented 4 years ago

Since go-micro version 2.1.0, go-micro has added a SpanType enum that conflicts with the definition of Skywalking. Please try the previous version.