mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: add span.SetStatus to codersdk.Request (#6964)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user