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

feat: extract decision span from full span #1338

Merged
merged 12 commits into from
Sep 30, 2024
Merged

Conversation

VinozzZ
Copy link
Contributor

@VinozzZ VinozzZ commented Sep 17, 2024

Which problem is this PR solving?

Extract only necessary information that's needed for trace decision from a full span so that we can forward only the key fields to peers later
part of #1318

Short description of the changes

  • add a method on Span to extract only necessary information into a new types.Event
  • add a method to differentiate a full span from a decision span
  • store IsRoot information on Span
  • simplify naming for span annotation types

@VinozzZ VinozzZ requested a review from a team as a code owner September 17, 2024 19:48
@VinozzZ VinozzZ self-assigned this Sep 17, 2024
@VinozzZ VinozzZ added this to the v2.9 milestone Sep 17, 2024
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

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

I think this mostly makes sense, but would like to see the rename of AnnotationType to SpanType moved into a separate PR to help make this one a little more concise.

types/event.go Show resolved Hide resolved
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @VinozzZ

@VinozzZ VinozzZ merged commit 1d70862 into main Sep 30, 2024
5 checks passed
@VinozzZ VinozzZ deleted the yingrong.decision_span branch September 30, 2024 18:01
TylerHelmuth pushed a commit that referenced this pull request Oct 16, 2024
Extract only necessary information that's needed for trace decision from
a full span so that we can forward only the key fields to peers later
part of #1318

- add a method on `Span` to extract only necessary information into a
new types.Event
- add a method to differentiate a full span from a decision span
- store `IsRoot` information on `Span`
- simplify naming for span annotation types
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