- Notifications
You must be signed in to change notification settings - Fork927
feat: add telemetry support for workspace agent subsystem#7579
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
90c8509
9ca40fc
d6d8009
7ef6911
2b4140f
8888c2e
bdf3ff3
0eff611
284dfee
451d0f0
bb8f67c
39cd792
ef207c3
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -26,6 +26,7 @@ import ( | ||
"github.com/coder/coder/agent/reaper" | ||
"github.com/coder/coder/buildinfo" | ||
"github.com/coder/coder/cli/clibase" | ||
"github.com/coder/coder/codersdk" | ||
"github.com/coder/coder/codersdk/agentsdk" | ||
) | ||
@@ -197,6 +198,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd { | ||
return xerrors.Errorf("add executable to $PATH: %w", err) | ||
} | ||
subsystem := inv.Environ.Get(agent.EnvAgentSubsystem) | ||
sreya marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
agnt := agent.New(agent.Options{ | ||
Client: client, | ||
Logger: logger, | ||
@@ -218,6 +220,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd { | ||
}, | ||
IgnorePorts: ignorePorts, | ||
SSHMaxTimeout: sshMaxTimeout, | ||
Subsystem: codersdk.AgentSubsystem(subsystem), | ||
}) | ||
debugSrvClose := ServeHandler(ctx, logger, agnt.HTTPDebug(), debugAddress, "debug") | ||
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
BEGIN; | ||
ALTER TABLE workspace_agents DROP COLUMN subsystem; | ||
DROP TYPE workspace_agent_subsystem; | ||
COMMIT; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
BEGIN; | ||
CREATE TYPE workspace_agent_subsystem AS ENUM ('envbuilder', 'envbox', 'none'); | ||
ALTER TABLE workspace_agents ADD COLUMN subsystem workspace_agent_subsystem NOT NULL default 'none'; | ||
COMMIT; |
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.