mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): add workspace timings endpoint (#14648)
This commit is contained in:
@@ -192,6 +192,9 @@ func prefixLines(prefix, s []byte) []byte {
|
||||
// Request performs a HTTP request with the body provided. The caller is
|
||||
// responsible for closing the response body.
|
||||
func (c *Client) Request(ctx context.Context, method, path string, body interface{}, opts ...RequestOption) (*http.Response, error) {
|
||||
if ctx == nil {
|
||||
return nil, xerrors.Errorf("context should not be nil")
|
||||
}
|
||||
ctx, span := tracing.StartSpanWithName(ctx, tracing.FuncNameSkip(1))
|
||||
defer span.End()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user