Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf4d16a1

Browse files
authored
fix: addspan.SetStatus tocodersdk.Request (#6964)
1 parent47afafa commitf4d16a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎codersdk/client.go

Lines changed: 1 addition & 0 deletions
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
varrespBody []byte

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp