-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Heartbeat] Remove host.name field from events #14140
Conversation
This field should never have been present, and is a distraction from the observer.* fields. Resolves elastic#12107
Pinging @elastic/uptime (:uptime) |
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.
Definitively needs a changelog as a breaking change.
@@ -34,7 +37,11 @@ var Name = "heartbeat" | |||
var RootCmd *cmd.BeatsRootCmd | |||
|
|||
func init() { | |||
RootCmd = cmd.GenRootCmdWithSettings(beater.New, instance.Settings{Name: Name}) | |||
settings := instance.Settings{ |
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.
Don't remember anymore the full affect of this. Does it only remove the host.*
name fields or any other fields too?
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 should just remove the default host.name
field. In comparison to this line, which I think the default for a beat, the difference is just the lack of WithHost
.
return MakeDefaultSupport(normalize, WithECS, WithHost, WithBeatMeta("agent")) |
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.
That's my understanding as well
@ruflin thanks for the review! Added the CHANGELOG entry, also cleaned up some imports I missed the first time. |
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.
LGTM, but please check CI.
@ruflin CI failures are unrelated |
This field should never have been present, and is a distraction from the observer.* fields. Resolves elastic#12107
This field should never have been present, and is a distraction from the
observer.* fields.
Resolves #12107