Skip to content

Commit

Permalink
fix(tf): execute extensions before preprocess steps
Browse files Browse the repository at this point in the history
  • Loading branch information
SOF3 committed Aug 10, 2023
1 parent a68ffa5 commit dd4aea7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/frontend/tf/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ func (transformer *Transformer) Transform(
}
}

for _, step := range config.Steps {
step.Run(tree)
}

newSpans, err := extensionProcessor.ProcessExtensions(ctx, transformer, config.Extensions, trace.Spans, start, end)
if err != nil {
return fmt.Errorf("cannot prepare extension trace: %w", err)
Expand All @@ -113,6 +109,10 @@ func (transformer *Transformer) Transform(
newSpans = append(newSpans, tree.GetSpans()...)
tree = tftree.NewSpanTree(newSpans)

for _, step := range config.Steps {
step.Run(tree)
}

trace.Spans = tree.GetSpans()

return nil
Expand Down

0 comments on commit dd4aea7

Please sign in to comment.