Skip to content

Commit f4d16a1

Browse files
authored
fix: add span.SetStatus to codersdk.Request (coder#6964)
1 parent 47afafa commit f4d16a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codersdk/client.go

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ func (c *Client) Request(ctx context.Context, method, path string, body interfac
183183
}
184184

185185
span.SetAttributes(httpconv.ClientResponse(resp)...)
186+
span.SetStatus(httpconv.ClientStatus(resp.StatusCode))
186187

187188
// Copy the response body so we can log it if it's a loggable mime type.
188189
var respBody []byte

0 commit comments

Comments
 (0)