From f4d16a1ae50b054c2260e41dab2b42147d73ea39 Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Mon, 3 Apr 2023 00:52:42 -0500 Subject: [PATCH] fix: add `span.SetStatus` to `codersdk.Request` (#6964) --- codersdk/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/codersdk/client.go b/codersdk/client.go index e726eaf7ae..795896f008 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