-
Notifications
You must be signed in to change notification settings - Fork 158
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
[receiver/discovery] Update entity events ID fields #4739
Conversation
f6b12bd
to
36f5e80
Compare
} | ||
return entityEvents, failed, err | ||
} | ||
|
||
func entityDeleteEvents(endpoints []observer.Endpoint, ts time.Time) experimentalmetricmetadata.EntityEventsSlice { | ||
func entityDeleteEvents(endpoints []observer.Endpoint, ts time.Time) (ees experimentalmetricmetadata.EntityEventsSlice, failed int, err error) { |
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.
Why we need the failed (int) value? Is it a return code?
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 is just for logging. We do the same for emitEntityStateEvents
, so I kept it the same, but I agree it's not ideal. We can probably move the logging inside the funcs. I can address it separately
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.
Overall LGTM! Just a question left there to understand.
36f5e80
to
80ff86c
Compare
Test failures are unrelated and fixed in #4740 |
Update entity events ID fields according to the latest contract with the inventory service: - `discovery.endpoint.id` is moved from identifying to regular attributes - The following attributes now marked as identifying instead: - `k8s.pod.uid` - `k8s.node.uid` - `container.id` - `source.port` - `host.id`
80ff86c
to
4f0f7fa
Compare
Update entity events ID fields according to the latest contract with the inventory service:
discovery.endpoint.id
is moved from identifying to regular attributesk8s.pod.uid
k8s.node.uid
container.id
source.port
host.id