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

writer: add transaction stream to trace-writer, dupe of #346 #347

Merged
merged 10 commits into from
Jan 12, 2018
Merged

Conversation

talwai
Copy link

@talwai talwai commented Jan 12, 2018

No description provided.

if s.engine.Sample(t.Trace, t.Root, t.Env) {
s.keptTraceCount++
s.sampled <- &t.Trace
}

// inspect the WeightedTrace so that we can identify top-level spans
for _, span := range t.WeightedTrace {

Choose a reason for hiding this comment

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

Neat, it actually plugs easily into the code.

@@ -118,6 +126,10 @@ func (w *TraceWriter) Run() {
continue
}
w.handleTrace(trace)
case transaction := <-w.InTransactions:
// no need for lock for now as flush is sequential

Choose a reason for hiding this comment

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

Outdated comment as #344 got merged?

@LotharSee LotharSee requested a review from AlexJF January 12, 2018 21:19
Copy link

@LotharSee LotharSee left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link

@AlexJF AlexJF left a comment

Choose a reason for hiding this comment

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

LGTM too!

@talwai talwai merged commit eafca4a into master Jan 12, 2018
@dtilghman dtilghman deleted the talwai/tw2 branch January 13, 2018 05:17
@palazzem palazzem added this to the 5.21.1 milestone Jan 27, 2018
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.

4 participants