-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate common fields #4446
Duplicate common fields #4446
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
model/error/_meta/fields.yml
Outdated
- name: data_stream.namespace | ||
type: keyword | ||
description: User-defined data stream namespace. | ||
example: production |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big thing, but as soon as we add the data_stream
fields here they will be in the template and show up at the docs. Do we really want this at this point? Why do we need the fields here already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comes from merging @axw changes, so I'll summon him to answer this questions :)
(I personally think it is ok thou, as that is always the case for any new fields added - they show up in the master docs before the actual release)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, we already have the fields in the templates. I got confused with having the fields in the dedicated base-field.yml in the other PR.
Will take this to an offline discussion about why we introduced the fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got confused with having the fields in the dedicated base-field.yml in the other PR.
Totally reasonable!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I probably should not have added those fields as they're really only meaningful when running under Agent. We can remove them in a followup, as there will probably be some fallout in tests.
… into duplicate-common-fields
cc @bmorelli25 field reference docs will look different because of this, there is no longer a "common fields" section, instead all fields are duplicated for each type (transaction, span, etc) - Like beats does. Let me know if you spot something odd! |
# Conflicts: # include/fields.go
I ran
|
Opened #4576 |
Motivation/summary
This copies all the fields in
fields.common.yml
to the_meta/fields.yml
files of each type.This is needed for the APM integration, particularly for docs as they will be generated out of the
fields.yml
files of each type.This results in duplicated fields.
Checklist
I have considered changes for:
How to test these changes
Run
setup template
and check that is unchanged.Related issues