mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat: enable agent connection reports by default, remove flag (#16778)
This change enables agent connection reports by default and removes the experimental flag for enabling them. Updates #15139
This commit is contained in:
committed by
GitHub
parent
95347b2b93
commit
dfcd93b26e
14
cli/agent.go
14
cli/agent.go
@ -54,7 +54,6 @@ func (r *RootCmd) workspaceAgent() *serpent.Command {
|
||||
agentHeaderCommand string
|
||||
agentHeader []string
|
||||
|
||||
experimentalConnectionReports bool
|
||||
experimentalDevcontainersEnabled bool
|
||||
)
|
||||
cmd := &serpent.Command{
|
||||
@ -327,10 +326,6 @@ func (r *RootCmd) workspaceAgent() *serpent.Command {
|
||||
containerLister = agentcontainers.NewDocker(execer)
|
||||
}
|
||||
|
||||
if experimentalConnectionReports {
|
||||
logger.Info(ctx, "experimental connection reports enabled")
|
||||
}
|
||||
|
||||
agnt := agent.New(agent.Options{
|
||||
Client: client,
|
||||
Logger: logger,
|
||||
@ -359,7 +354,6 @@ func (r *RootCmd) workspaceAgent() *serpent.Command {
|
||||
ContainerLister: containerLister,
|
||||
|
||||
ExperimentalDevcontainersEnabled: experimentalDevcontainersEnabled,
|
||||
ExperimentalConnectionReports: experimentalConnectionReports,
|
||||
})
|
||||
|
||||
promHandler := agent.PrometheusMetricsHandler(prometheusRegistry, logger)
|
||||
@ -489,14 +483,6 @@ func (r *RootCmd) workspaceAgent() *serpent.Command {
|
||||
Description: "Allow the agent to automatically detect running devcontainers.",
|
||||
Value: serpent.BoolOf(&experimentalDevcontainersEnabled),
|
||||
},
|
||||
{
|
||||
Flag: "experimental-connection-reports-enable",
|
||||
Hidden: true,
|
||||
Default: "false",
|
||||
Env: "CODER_AGENT_EXPERIMENTAL_CONNECTION_REPORTS_ENABLE",
|
||||
Description: "Enable experimental connection reports.",
|
||||
Value: serpent.BoolOf(&experimentalConnectionReports),
|
||||
},
|
||||
}
|
||||
|
||||
return cmd
|
||||
|
Reference in New Issue
Block a user