ilogtail input skywalking v3插件和flusher flusher_grpc插件同时使用程序panic #563
-
|
我用ilogtail 的skywalking v3 插件收集trace 数据,只用flusher_stdout 能正常输出到控制台,我想用flusher_grpc 把收集的数据发走,添加flusher_grpc ilogtail就会panic,我把这个配置文件中的flusher_grpc注释掉后,只要user_yaml_config.d目录下别的配置文件有使用了flusher_grpc 整个ilogtail 也会panic。 goroutine 61 [running]: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
func (Codec) Unmarshal(data []byte, v interface{}) error { /src/pkg/protocol/sls_logs.pb.helper.go:38 看了一下是这里的代码报错,猜测sls_logs 是proto2,skywalking 是proto3,版本不一致导致。 |
Beta Was this translation helpful? Give feedback.
-
|
我把 sls_logs.pb.helper.go 文件中 "github.com/gogo/protobuf/proto" 替换成"github.com/golang/protobuf/proto" 程序不panic了,但是grpc 发送数据还是失败 还是报 ilogtail日志 开始报AlarmType:FLUSH_DATA_ALARM flush data error: :rpc error: code = Internal desc = grpc: error while marshaling: proto: required field sls_logs.Log.Content.Value not set 的错误。 |
Beta Was this translation helpful? Give feedback.
required field sls_logs.Log.Content.Value not set 这个报错是因为skywalking trace 数据有空值导致,处理了空值就不报错了