-
Notifications
You must be signed in to change notification settings - Fork 303
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
Add initial lime tracing #2706
Add initial lime tracing #2706
Conversation
b22b816
to
081f031
Compare
We're soon going to be implementing streaming traces alongside the current in-memory traces. We'd need to figure out how these spans fit into that model. |
4231b37
to
e34cfb5
Compare
I suggest we introduce a single |
b375e4f
to
98cb057
Compare
Created two structs to track both span builders/span parents. I deliberately did not make this a fully-fledged class since places where the spans will be used are expected to remain somewhat disparate, but it does make passing through parameters in |
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 get naming sorted out while I review the rest of the code.
I also worry that Lime
as in limeSpans
wouldn't age well. How about user tracing
framework: UserSpanBuilder
and userSpans
?
src/workerd/io/trace.h
Outdated
private: | ||
PipelineLogLevel pipelineLogLevel; | ||
kj::Own<Trace> trace; | ||
|
||
// own an instance of the pipeline to make sure it doesn't get destroyed | ||
// before we're finished tracing | ||
kj::Maybe<kj::Own<PipelineTracer>> parentPipeline; | ||
kj::Own<WeakRef<WorkerTracer>> weakRef; |
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.
also let's document this since you're saying yourself it is tricky.
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.
Added a comment describing my current understanding of the issue.
b83ec32
to
1805899
Compare
Updated this based on the review comments, documentation should look quite a bit better now. Changing the name to user tracing will be done in a follow-up PR. workerd side is ready for review. |
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.
lg. Lime rename can happen in a follow-up
1805899
to
94b14a3
Compare
94b14a3
to
4ecd0d2
Compare
See downstream PR for discussion.