Skip to content

Commit

Permalink
Merge pull request #2443 from lebauce/flow-fields
Browse files Browse the repository at this point in the history
Fix generation of Flow fields
  • Loading branch information
lebauce committed Apr 2, 2024
2 parents 8b57f4f + ce76c44 commit 836bde8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flow/flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 836bde8

Please sign in to comment.