-
Notifications
You must be signed in to change notification settings - Fork 18
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
Change Span to refer to SpanStack, rather than TracingContext. #39
Conversation
Codecov Report
@@ Coverage Diff @@
## master #39 +/- ##
==========================================
+ Coverage 43.11% 43.62% +0.50%
==========================================
Files 14 14
Lines 385 392 +7
==========================================
+ Hits 166 171 +5
- Misses 219 221 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. |
src/context/trace_context.rs
Outdated
span_stack: Arc<SpanStack>, | ||
segment_link: Option<PropagationContext>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is a segment link? Segment reference should be inside a span, and it should be multiple references.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field existed before I was involved in this project. 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's check why it exists. and try to remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, actually I also think this field is not very right.
Remove TracingContext |
This is good. A tip, trace ID could be generated as a new trace, and then do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Feel free to merge, notice, please clear the commits in the merge message.
OK, I'll take a look later. |
In order to improve the performance of
TracingContext
, reduce the usage of Arc and Lock.