diff --git a/codersdk/client.go b/codersdk/client.go index e726eaf7aeb8c..795896f008b59 100644 --- a/codersdk/client.go +++ b/codersdk/client.go @@ -183,6 +183,7 @@ func (c *Client) Request(ctx context.Context, method, path string, body interfac } span.SetAttributes(httpconv.ClientResponse(resp)...) + span.SetStatus(httpconv.ClientStatus(resp.StatusCode)) // Copy the response body so we can log it if it's a loggable mime type. var respBody []byte