Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Add ECS metadata to CollectorProc payload #28

Merged
merged 1 commit into from
Aug 2, 2017
Merged

Conversation

conorbranagan
Copy link
Contributor

The bulk of the interesting work is in DataDog/datadog-agent#420 and DataDog/agent-payload#10. Both are still pending but appear to be passing so we'll wait until those are merged in.

@conorbranagan conorbranagan force-pushed the conor/ecs branch 2 times, most recently from 4d45c89 to 3ca5cd6 Compare August 2, 2017 15:28
@conorbranagan
Copy link
Contributor Author

This is ready to now as the other PRs are both merged

util/ecs/ecs.go Outdated
globalECSUtil *ecsUtil
)

// InitKubeUtil initializes a global kubeUtil used by later function calls.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Wrong comment :)


func (e *ecsUtil) getMetadata() *agentpayload.ECSMetadataPayload {
payload, err := agentecs.GetPayload()
if err != nil && err.Error() != lastErr {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this is on purpose but if err != nil && err.Error() == lastErr, would the last return statement make sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we're logging and swallowing the error on purpose. I'll add a note on that

@conorbranagan conorbranagan merged commit f94f1a8 into master Aug 2, 2017
@conorbranagan conorbranagan deleted the conor/ecs branch August 2, 2017 18:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants