-
Notifications
You must be signed in to change notification settings - Fork 344
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
Adding Distributed Tracing and Smart Apply to cody #6178
Conversation
9d23bde
to
5b3c62f
Compare
|
||
await this.saveSession() | ||
signal.throwIfAborted() | ||
return context.with(extractedContext, () => { |
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.
Adding distributed tracing in chat so now the trace looks like
This has both UX and extension host stuff together. See related comment
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.
0c1d653
to
eea1d94
Compare
eea1d94
to
40a36d0
Compare
|
if (rootSpan === null) { | ||
// the child of the root is sampled but root is not and the span is continued | ||
const rootChildSpan = getRootChildSpan(spanMap, span) | ||
if (rootChildSpan && isSampled(rootChildSpan) && isContinued(rootChildSpan)) { |
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.
The naming conventions in this part could use some improvement because the logic I’m applying here is essential for linking the traces where the root is actually located in the webview. The key idea is that if the root isn’t present in the traces here, I want to measure the child of the root (the trace located in the extension host) and then send that one, as it effectively serves as the ‘root’ in this context. Hopefully, that clarifies things.
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.
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.
Some feedback inline.
It is GREAT that we're joining traces across these domains.
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.
Looks good, nice cleanup.
Can you remove the questions and concerns from the PR description? (If you still have questions and concerns, let's go through those.)
Removed |
This reverts commit 5686699.
This PR introduces distributed tracing to connect traces originating in the UX with those starting in the extension host. This ensures unified and all-encompassing traces for operations spanning both the web view and the extension host.
NOTE: this PR has been rebased to the main and is ready for review
Changes Made
These changes are in alignment with the milestone goals and aim to deliver foundational support for distributed tracing in these areas.
Next Steps
Test plan
sg start otel
http://localhost:16686
to see if Jaegar is runningchat-interaction
this is a collection of spans that show a single trace for spans from both webview and extension hostChangelog