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

allow setting attrs at the end of a backgrounded trace #255

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

dtbell91
Copy link
Contributor

I wanted to be able to add additional attributes at the end of a backgrounded span, so that outputs from whatever was run during the span could be included.

With this change, attributes which are defined at the start of the span are added to and overwritten by attributes supplied at the end of the span.

Copy link
Collaborator

@tobert tobert left a comment

Choose a reason for hiding this comment

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

Perfect, no notes. Thank you!

@tobert
Copy link
Collaborator

tobert commented Sep 13, 2023

OK one note: we should add a test in data_for_test.go to validate this behavior. This will prevent me from breaking it in the future :)

@tobert tobert merged commit 3bbb923 into equinix-labs:main Sep 13, 2023
1 check passed
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.

2 participants