Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: env merging and output processing #1489

Merged
merged 1 commit into from
Nov 15, 2022
Merged

fix: env merging and output processing #1489

merged 1 commit into from
Nov 15, 2022

Conversation

mathnogueira
Copy link
Member

This PR fixes the output processor and environment merging when running transactions.

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@@ -66,7 +66,7 @@ func outputProcessor(ctx context.Context, outputs model.OrderedMap[string, model
value := ""
spans.
ForEach(func(_ int, span traces.Span) bool {
value = extractAttr(traces.Span{}, stores, out.expr)
value = extractAttr(span, stores, out.expr)
Copy link
Member Author

Choose a reason for hiding this comment

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

I tried creating an output, but it was always coming as empty. Then I noticed we were passing an empty span instead of using the one selected by the selector.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Shit happens haha

@@ -66,7 +66,7 @@ func outputProcessor(ctx context.Context, outputs model.OrderedMap[string, model
value := ""
spans.
ForEach(func(_ int, span traces.Span) bool {
value = extractAttr(traces.Span{}, stores, out.expr)
value = extractAttr(span, stores, out.expr)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shit happens haha

@mathnogueira mathnogueira merged commit a1f7847 into main Nov 15, 2022
@mathnogueira mathnogueira deleted the fix/env-merging branch November 15, 2022 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants