File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -130,12 +130,12 @@ func New(options *Options) *API {
130
130
})
131
131
},
132
132
httpmw .Prometheus (options .PrometheusRegistry ),
133
- tracing .HTTPMW (api .TracerProvider , "coderd.http" ),
134
133
)
135
134
136
135
apps := func (r chi.Router ) {
137
136
r .Use (
138
137
httpmw .RateLimitPerMinute (options .APIRateLimit ),
138
+ tracing .HTTPMW (api .TracerProvider , "coderd.http" ),
139
139
httpmw .ExtractAPIKey (options .Database , oauthConfigs , true ),
140
140
httpmw .ExtractUserParam (api .Database ),
141
141
// Extracts the <workspace.agent> from the url
@@ -159,6 +159,7 @@ func New(options *Options) *API {
159
159
// Specific routes can specify smaller limits.
160
160
httpmw .RateLimitPerMinute (options .APIRateLimit ),
161
161
debugLogRequest (api .Logger ),
162
+ tracing .HTTPMW (api .TracerProvider , "coderd.http" ),
162
163
)
163
164
r .Get ("/" , func (w http.ResponseWriter , r * http.Request ) {
164
165
httpapi .Write (w , http .StatusOK , codersdk.Response {
You can’t perform that action at this time.
0 commit comments