feat: opentelemetry integration, removed self designed tracing (#1111)
* feat: opentelemetry integration, removed self designed tracing * feat: support zipkin on opentelemetry integration * feat: support zipkin on opentelemetry integration, enable it in conf * style: format code * fix: support logx without exporter configured * fix: check return values * refactor: simplify code * refactor: simplify opentelemetry integration * ci: fix staticcheck errors
This commit is contained in:
@@ -52,7 +52,7 @@ func TestServer(t *testing.T) {
|
||||
}, func(server *grpc.Server) {
|
||||
})
|
||||
srv.AddOptions(grpc.ConnectionTimeout(time.Hour))
|
||||
srv.AddUnaryInterceptors(serverinterceptors.UnaryCrashInterceptor())
|
||||
srv.AddUnaryInterceptors(serverinterceptors.UnaryCrashInterceptor)
|
||||
srv.AddStreamInterceptors(serverinterceptors.StreamCrashInterceptor)
|
||||
go srv.Start()
|
||||
srv.Stop()
|
||||
@@ -94,7 +94,7 @@ func TestServer_HasEtcd(t *testing.T) {
|
||||
}, func(server *grpc.Server) {
|
||||
})
|
||||
srv.AddOptions(grpc.ConnectionTimeout(time.Hour))
|
||||
srv.AddUnaryInterceptors(serverinterceptors.UnaryCrashInterceptor())
|
||||
srv.AddUnaryInterceptors(serverinterceptors.UnaryCrashInterceptor)
|
||||
srv.AddStreamInterceptors(serverinterceptors.StreamCrashInterceptor)
|
||||
go srv.Start()
|
||||
srv.Stop()
|
||||
|
||||
Reference in New Issue
Block a user