Skip to content

Commit 5401e70

Browse files
committed
Merge remote-tracking branch 'origin/main' into stevenmasley/select_agent
2 parents 4058665 + a05fad4 commit 5401e70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/coderd.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ func New(options *Options) *API {
130130
})
131131
},
132132
httpmw.Prometheus(options.PrometheusRegistry),
133-
tracing.HTTPMW(api.TracerProvider, "coderd.http"),
134133
)
135134

136135
apps := func(r chi.Router) {
137136
r.Use(
138137
httpmw.RateLimitPerMinute(options.APIRateLimit),
138+
tracing.HTTPMW(api.TracerProvider, "coderd.http"),
139139
httpmw.ExtractAPIKey(options.Database, oauthConfigs, true),
140140
httpmw.ExtractUserParam(api.Database),
141141
// Extracts the <workspace.agent> from the url
@@ -159,6 +159,7 @@ func New(options *Options) *API {
159159
// Specific routes can specify smaller limits.
160160
httpmw.RateLimitPerMinute(options.APIRateLimit),
161161
debugLogRequest(api.Logger),
162+
tracing.HTTPMW(api.TracerProvider, "coderd.http"),
162163
)
163164
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
164165
httpapi.Write(w, http.StatusOK, codersdk.Response{

0 commit comments

Comments
 (0)