Skip to content

Commit a05fad4

Browse files
authored
fix: stop tracing static file server (#3683)
1 parent 6e49607 commit a05fad4

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,14 +130,14 @@ 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),
139138
httpmw.ExtractAPIKey(options.Database, oauthConfigs, true),
140139
httpmw.ExtractUserParam(api.Database),
140+
tracing.HTTPMW(api.TracerProvider, "coderd.http"),
141141
)
142142
r.HandleFunc("/*", api.workspaceAppsProxyPath)
143143
}
@@ -157,6 +157,7 @@ func New(options *Options) *API {
157157
// Specific routes can specify smaller limits.
158158
httpmw.RateLimitPerMinute(options.APIRateLimit),
159159
debugLogRequest(api.Logger),
160+
tracing.HTTPMW(api.TracerProvider, "coderd.http"),
160161
)
161162
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
162163
httpapi.Write(w, http.StatusOK, codersdk.Response{

0 commit comments

Comments
 (0)