diff --git a/flow/flow.go b/flow/flow.go index dcf3599ea..45aa3b2a7 100644 --- a/flow/flow.go +++ b/flow/flow.go @@ -1500,8 +1500,9 @@ func structFieldKeys(t reflect.Type, prefix string) []string { vField := t.Field(i) tField := vField.Type - // ignore XXX fields as they are considered as private - if strings.HasPrefix(vField.Name, "XXX_") { + // ignore both XXX fields - as they are considered as private - and internal fields + protoTag := vField.Tag.Get("protobuf") + if strings.HasPrefix(vField.Name, "XXX_") || protoTag == "" { continue }