Skip to content

Commit

Permalink
[chore] [processor/tailsampling] Remove usage of deprecated MoveTo (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed Feb 9, 2023
1 parent 8464bac commit 9312c51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processor/tailsamplingprocessor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ func (tsp *tailSamplingSpanProcessor) samplingPolicyOnTick() {

// Sampled or not, remove the batches
trace.Lock()
allSpans := ptrace.NewTraces()
allSpans := trace.ReceivedBatches
trace.FinalDecision = decision
trace.ReceivedBatches.MoveTo(allSpans)
trace.ReceivedBatches = ptrace.NewTraces()
trace.Unlock()

if decision == sampling.Sampled {
Expand Down

0 comments on commit 9312c51

Please sign in to comment.