Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Send metadata until at least one payload is successfully delivered #182

Merged
merged 3 commits into from
May 5, 2020

Conversation

tonyredondo
Copy link
Contributor

This PR enables the recorder to send the metadata in the payload until at least one span is delivered successfully.

"spans": spans,
"events": events,
tags.AgentID: r.agentId,
}
// We send the metadata only if not spans are sent successfully
if atomic.LoadInt64(&r.stats.sendSpansOk) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

So if sendSpansOK > 0, the metadata will not be sent, right?
Is this already supported in the backend?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not released yet in the backend, I made this PR because @AdrianLC need it to test the feature in the backend. We will merge it when the backend gets ready.

Copy link
Member

@fermayo fermayo left a comment

Choose a reason for hiding this comment

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

Pending backend release

@tonyredondo tonyredondo merged commit f7b0970 into master May 5, 2020
@tonyredondo tonyredondo deleted the once-metadata branch May 5, 2020 08:09
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.

3 participants