Skip to content

Commit 64defe8

Browse files
committed
connect experiments to coderd
1 parent 83db44d commit 64defe8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

coderd/agentapi/api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
"github.com/coder/coder/v2/coderd/schedule"
2626
"github.com/coder/coder/v2/coderd/tracing"
2727
"github.com/coder/coder/v2/coderd/workspacestats"
28+
"github.com/coder/coder/v2/codersdk"
2829
"github.com/coder/coder/v2/codersdk/agentsdk"
2930
"github.com/coder/coder/v2/tailnet"
3031
tailnetproto "github.com/coder/coder/v2/tailnet/proto"
@@ -64,6 +65,7 @@ type Options struct {
6465
AppearanceFetcher *atomic.Pointer[appearance.Fetcher]
6566
PublishWorkspaceUpdateFn func(ctx context.Context, workspaceID uuid.UUID)
6667
PublishWorkspaceAgentLogsUpdateFn func(ctx context.Context, workspaceAgentID uuid.UUID, msg agentsdk.LogsNotifyMessage)
68+
Experiments codersdk.Experiments
6769

6870
AccessURL *url.URL
6971
AppHostname string
@@ -118,6 +120,7 @@ func New(opts Options) *API {
118120
Log: opts.Log,
119121
StatsReporter: opts.StatsReporter,
120122
AgentStatsRefreshInterval: opts.AgentStatsRefreshInterval,
123+
Experiments: opts.Experiments,
121124
}
122125

123126
api.LifecycleAPI = &LifecycleAPI{

coderd/workspaceagentsrpc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ func (api *API) workspaceAgentRPC(rw http.ResponseWriter, r *http.Request) {
135135
StatsReporter: api.statsReporter,
136136
PublishWorkspaceUpdateFn: api.publishWorkspaceUpdate,
137137
PublishWorkspaceAgentLogsUpdateFn: api.publishWorkspaceAgentLogsUpdate,
138+
Experiments: api.Experiments,
138139

139140
AccessURL: api.AccessURL,
140141
AppHostname: api.AppHostname,

0 commit comments

Comments
 (0)