Skip to content

Commit

Permalink
Introduce priority for fields.go (elastic#9703)
Browse files Browse the repository at this point in the history
The problem with fields.go is that the initialisation is based on the init() statement. It is not fully predicable the order the init statements are executed. But for the fields it is important that they are in the right order if fields should be overwritten. To ensure this two things were introduce: Priority to ensure libbeat fields are added first, alphabetical sorting to make sure the generated content is always the same.

More work is need as soon as the ECS and processor files have their own fields.go files to also assign them different priorites.
  • Loading branch information
ruflin committed Dec 27, 2018
1 parent 054bfcd commit 77abb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 77abb1c

Please sign in to comment.