-
Notifications
You must be signed in to change notification settings - Fork 264
[trace] Add trace for Devbox methods #1098
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
Conversation
The PR is still working in progress. Is it a good idea to trace them all? @savil @mikeland86 |
@gcurtis do you have thoughts on this? I know you'd added the initial tracing infra, and dashboards. My concern would be that adding to each method may get overwhelming to track in the dashboards, but i'm not sure where to look for them. |
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 looks good to me. There aren't any dashboards for the CLI, it's just for devbox -trace
which generates a go tool trace
file to help track down performance issues.
ae475fa
to
8682745
Compare
The rest methods are so simple that I don't think it's necessary to add trace. PTAL @gcurtis |
457eec2
to
9511ec1
Compare
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.
Thanks for cleaning all this up!
internal/impl/update.go
Outdated
// Copyright 2023 Jetpack Technologies Inc and contributors. All rights reserved. | ||
// Use of this source code is governed by the license in the LICENSE file. | ||
|
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.
Duplicate?
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.
Yeah. That's weird. I removed it.
@hezhizhen thanks! if you could resolve the conflcts, I can help merge. |
Done. PTAL @savil |
Summary
ctx
parameter for most Devbox methodsHow was it tested?