diff --git a/examples/ex_2ch/oas_client_gen.go b/examples/ex_2ch/oas_client_gen.go index 6eccb29d8..4a0943bbc 100644 --- a/examples/ex_2ch/oas_client_gen.go +++ b/examples/ex_2ch/oas_client_gen.go @@ -195,7 +195,7 @@ func (c *Client) sendAPICaptcha2chcaptchaIDGet(ctx context.Context, params APICa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -304,7 +304,7 @@ func (c *Client) sendAPICaptcha2chcaptchaShowGet(ctx context.Context, params API defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -397,7 +397,7 @@ func (c *Client) sendAPICaptchaAppIDPublicKeyGet(ctx context.Context, params API defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -524,7 +524,7 @@ func (c *Client) sendAPICaptchaInvisibleRecaptchaIDGet(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -633,7 +633,7 @@ func (c *Client) sendAPICaptchaInvisibleRecaptchaMobileGet(ctx context.Context) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -704,7 +704,7 @@ func (c *Client) sendAPICaptchaRecaptchaIDGet(ctx context.Context, params APICap defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -813,7 +813,7 @@ func (c *Client) sendAPICaptchaRecaptchaMobileGet(ctx context.Context) (res *API defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -884,7 +884,7 @@ func (c *Client) sendAPIDislikeGet(ctx context.Context, params APIDislikeGetPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -987,7 +987,7 @@ func (c *Client) sendAPILikeGet(ctx context.Context, params APILikeGetParams) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1092,7 +1092,7 @@ func (c *Client) sendAPIMobileV2AfterBoardThreadNumGet(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1219,7 +1219,7 @@ func (c *Client) sendAPIMobileV2BoardsGet(ctx context.Context) (res Boards, err defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1290,7 +1290,7 @@ func (c *Client) sendAPIMobileV2InfoBoardThreadGet(ctx context.Context, params A defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1398,7 +1398,7 @@ func (c *Client) sendAPIMobileV2PostBoardNumGet(ctx context.Context, params APIM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1506,7 +1506,7 @@ func (c *Client) sendUserPassloginPost(ctx context.Context, request OptUserPassl defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1598,7 +1598,7 @@ func (c *Client) sendUserPostingPost(ctx context.Context, request OptUserPosting defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1672,7 +1672,7 @@ func (c *Client) sendUserReportPost(ctx context.Context, request OptUserReportPo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_2ch/oas_handlers_gen.go b/examples/ex_2ch/oas_handlers_gen.go index 427dab624..850774226 100644 --- a/examples/ex_2ch/oas_handlers_gen.go +++ b/examples/ex_2ch/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handleAPICaptcha2chcaptchaIDGetRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handleAPICaptcha2chcaptchaIDGetRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -217,7 +213,7 @@ func (s *Server) handleAPICaptcha2chcaptchaShowGetRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -228,12 +224,8 @@ func (s *Server) handleAPICaptcha2chcaptchaShowGetRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -362,7 +354,7 @@ func (s *Server) handleAPICaptchaAppIDPublicKeyGetRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -373,12 +365,8 @@ func (s *Server) handleAPICaptchaAppIDPublicKeyGetRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -511,7 +499,7 @@ func (s *Server) handleAPICaptchaInvisibleRecaptchaIDGetRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -522,12 +510,8 @@ func (s *Server) handleAPICaptchaInvisibleRecaptchaIDGetRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -656,7 +640,7 @@ func (s *Server) handleAPICaptchaInvisibleRecaptchaMobileGetRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -667,12 +651,8 @@ func (s *Server) handleAPICaptchaInvisibleRecaptchaMobileGetRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -778,7 +758,7 @@ func (s *Server) handleAPICaptchaRecaptchaIDGetRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -789,12 +769,8 @@ func (s *Server) handleAPICaptchaRecaptchaIDGetRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -923,7 +899,7 @@ func (s *Server) handleAPICaptchaRecaptchaMobileGetRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -934,12 +910,8 @@ func (s *Server) handleAPICaptchaRecaptchaMobileGetRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1045,7 +1017,7 @@ func (s *Server) handleAPIDislikeGetRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1056,12 +1028,8 @@ func (s *Server) handleAPIDislikeGetRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1190,7 +1158,7 @@ func (s *Server) handleAPILikeGetRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1201,12 +1169,8 @@ func (s *Server) handleAPILikeGetRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1337,7 +1301,7 @@ func (s *Server) handleAPIMobileV2AfterBoardThreadNumGetRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1348,12 +1312,8 @@ func (s *Server) handleAPIMobileV2AfterBoardThreadNumGetRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1486,7 +1446,7 @@ func (s *Server) handleAPIMobileV2BoardsGetRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1497,12 +1457,8 @@ func (s *Server) handleAPIMobileV2BoardsGetRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1608,7 +1564,7 @@ func (s *Server) handleAPIMobileV2InfoBoardThreadGetRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1619,12 +1575,8 @@ func (s *Server) handleAPIMobileV2InfoBoardThreadGetRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1753,7 +1705,7 @@ func (s *Server) handleAPIMobileV2PostBoardNumGetRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1764,12 +1716,8 @@ func (s *Server) handleAPIMobileV2PostBoardNumGetRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1898,7 +1846,7 @@ func (s *Server) handleUserPassloginPostRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1909,12 +1857,8 @@ func (s *Server) handleUserPassloginPostRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2054,7 +1998,7 @@ func (s *Server) handleUserPostingPostRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2065,12 +2009,8 @@ func (s *Server) handleUserPostingPostRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2195,7 +2135,7 @@ func (s *Server) handleUserReportPostRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2206,12 +2146,8 @@ func (s *Server) handleUserReportPostRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_ent/oas_client_gen.go b/examples/ex_ent/oas_client_gen.go index f6de8a6da..f7840fda0 100644 --- a/examples/ex_ent/oas_client_gen.go +++ b/examples/ex_ent/oas_client_gen.go @@ -167,7 +167,7 @@ func (c *Client) sendCreatePet(ctx context.Context, request *CreatePetReq) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -242,7 +242,7 @@ func (c *Client) sendCreatePetCategories(ctx context.Context, request *CreatePet defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -336,7 +336,7 @@ func (c *Client) sendCreatePetFriends(ctx context.Context, request *CreatePetFri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -430,7 +430,7 @@ func (c *Client) sendCreatePetOwner(ctx context.Context, request *CreatePetOwner defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -524,7 +524,7 @@ func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -614,7 +614,7 @@ func (c *Client) sendDeletePetOwner(ctx context.Context, params DeletePetOwnerPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -705,7 +705,7 @@ func (c *Client) sendListPet(ctx context.Context, params ListPetParams) (res Lis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -815,7 +815,7 @@ func (c *Client) sendListPetCategories(ctx context.Context, params ListPetCatego defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -944,7 +944,7 @@ func (c *Client) sendListPetFriends(ctx context.Context, params ListPetFriendsPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1073,7 +1073,7 @@ func (c *Client) sendReadPet(ctx context.Context, params ReadPetParams) (res Rea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1163,7 +1163,7 @@ func (c *Client) sendReadPetOwner(ctx context.Context, params ReadPetOwnerParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1254,7 +1254,7 @@ func (c *Client) sendUpdatePet(ctx context.Context, request *UpdatePetReq, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_ent/oas_handlers_gen.go b/examples/ex_ent/oas_handlers_gen.go index b0f94e465..4959d32fe 100644 --- a/examples/ex_ent/oas_handlers_gen.go +++ b/examples/ex_ent/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleCreatePetRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleCreatePetRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -216,7 +212,7 @@ func (s *Server) handleCreatePetCategoriesRequest(args [1]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -227,12 +223,8 @@ func (s *Server) handleCreatePetCategoriesRequest(args [1]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -373,7 +365,7 @@ func (s *Server) handleCreatePetFriendsRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -384,12 +376,8 @@ func (s *Server) handleCreatePetFriendsRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -530,7 +518,7 @@ func (s *Server) handleCreatePetOwnerRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -541,12 +529,8 @@ func (s *Server) handleCreatePetOwnerRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -687,7 +671,7 @@ func (s *Server) handleDeletePetRequest(args [1]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -698,12 +682,8 @@ func (s *Server) handleDeletePetRequest(args [1]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -829,7 +809,7 @@ func (s *Server) handleDeletePetOwnerRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -840,12 +820,8 @@ func (s *Server) handleDeletePetOwnerRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -971,7 +947,7 @@ func (s *Server) handleListPetRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -982,12 +958,8 @@ func (s *Server) handleListPetRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1117,7 +1089,7 @@ func (s *Server) handleListPetCategoriesRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1128,12 +1100,8 @@ func (s *Server) handleListPetCategoriesRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1267,7 +1235,7 @@ func (s *Server) handleListPetFriendsRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1278,12 +1246,8 @@ func (s *Server) handleListPetFriendsRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1417,7 +1381,7 @@ func (s *Server) handleReadPetRequest(args [1]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1428,12 +1392,8 @@ func (s *Server) handleReadPetRequest(args [1]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1559,7 +1519,7 @@ func (s *Server) handleReadPetOwnerRequest(args [1]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1570,12 +1530,8 @@ func (s *Server) handleReadPetOwnerRequest(args [1]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1701,7 +1657,7 @@ func (s *Server) handleUpdatePetRequest(args [1]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1712,12 +1668,8 @@ func (s *Server) handleUpdatePetRequest(args [1]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_firecracker/oas_client_gen.go b/examples/ex_firecracker/oas_client_gen.go index 76cebd058..a6ef4fe59 100644 --- a/examples/ex_firecracker/oas_client_gen.go +++ b/examples/ex_firecracker/oas_client_gen.go @@ -269,7 +269,7 @@ func (c *Client) sendCreateSnapshot(ctx context.Context, request *SnapshotCreate defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -344,7 +344,7 @@ func (c *Client) sendCreateSyncAction(ctx context.Context, request *InstanceActi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -419,7 +419,7 @@ func (c *Client) sendDescribeBalloonConfig(ctx context.Context) (res DescribeBal defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -491,7 +491,7 @@ func (c *Client) sendDescribeBalloonStats(ctx context.Context) (res DescribeBall defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -563,7 +563,7 @@ func (c *Client) sendDescribeInstance(ctx context.Context) (res *InstanceInfo, e defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -635,7 +635,7 @@ func (c *Client) sendGetExportVmConfig(ctx context.Context) (res *FullVmConfigur defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -709,7 +709,7 @@ func (c *Client) sendGetMachineConfiguration(ctx context.Context) (res *MachineC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -782,7 +782,7 @@ func (c *Client) sendLoadSnapshot(ctx context.Context, request *SnapshotLoadPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -856,7 +856,7 @@ func (c *Client) sendMmdsConfigPut(ctx context.Context, request *MmdsConfig) (re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -930,7 +930,7 @@ func (c *Client) sendMmdsGet(ctx context.Context) (res MmdsGetRes, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1001,7 +1001,7 @@ func (c *Client) sendMmdsPatch(ctx context.Context, request *MmdsPatchReq) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1075,7 +1075,7 @@ func (c *Client) sendMmdsPut(ctx context.Context, request *MmdsPutReq) (res Mmds defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1151,7 +1151,7 @@ func (c *Client) sendPatchBalloon(ctx context.Context, request *BalloonUpdate) ( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1227,7 +1227,7 @@ func (c *Client) sendPatchBalloonStatsInterval(ctx context.Context, request *Bal defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1303,7 +1303,7 @@ func (c *Client) sendPatchGuestDriveByID(ctx context.Context, request *PartialDr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1396,7 +1396,7 @@ func (c *Client) sendPatchGuestNetworkInterfaceByID(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1490,7 +1490,7 @@ func (c *Client) sendPatchMachineConfiguration(ctx context.Context, request OptM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1565,7 +1565,7 @@ func (c *Client) sendPatchVm(ctx context.Context, request *VM) (res PatchVmRes, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1641,7 +1641,7 @@ func (c *Client) sendPutBalloon(ctx context.Context, request *Balloon) (res PutB defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1717,7 +1717,7 @@ func (c *Client) sendPutGuestBootSource(ctx context.Context, request *BootSource defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1793,7 +1793,7 @@ func (c *Client) sendPutGuestDriveByID(ctx context.Context, request *Drive, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1886,7 +1886,7 @@ func (c *Client) sendPutGuestNetworkInterfaceByID(ctx context.Context, request * defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1980,7 +1980,7 @@ func (c *Client) sendPutGuestVsock(ctx context.Context, request *Vsock) (res Put defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2055,7 +2055,7 @@ func (c *Client) sendPutLogger(ctx context.Context, request *Logger) (res PutLog defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2133,7 +2133,7 @@ func (c *Client) sendPutMachineConfiguration(ctx context.Context, request OptMac defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2208,7 +2208,7 @@ func (c *Client) sendPutMetrics(ctx context.Context, request *Metrics) (res PutM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_firecracker/oas_handlers_gen.go b/examples/ex_firecracker/oas_handlers_gen.go index 9c53277ca..5e0b2ac98 100644 --- a/examples/ex_firecracker/oas_handlers_gen.go +++ b/examples/ex_firecracker/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleCreateSnapshotRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleCreateSnapshotRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -227,7 +223,7 @@ func (s *Server) handleCreateSyncActionRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -238,12 +234,8 @@ func (s *Server) handleCreateSyncActionRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -380,7 +372,7 @@ func (s *Server) handleDescribeBalloonConfigRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -391,12 +383,8 @@ func (s *Server) handleDescribeBalloonConfigRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -514,7 +502,7 @@ func (s *Server) handleDescribeBalloonStatsRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -525,12 +513,8 @@ func (s *Server) handleDescribeBalloonStatsRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -648,7 +632,7 @@ func (s *Server) handleDescribeInstanceRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -659,12 +643,8 @@ func (s *Server) handleDescribeInstanceRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -782,7 +762,7 @@ func (s *Server) handleGetExportVmConfigRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -793,12 +773,8 @@ func (s *Server) handleGetExportVmConfigRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -918,7 +894,7 @@ func (s *Server) handleGetMachineConfigurationRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -929,12 +905,8 @@ func (s *Server) handleGetMachineConfigurationRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1053,7 +1025,7 @@ func (s *Server) handleLoadSnapshotRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1064,12 +1036,8 @@ func (s *Server) handleLoadSnapshotRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1205,7 +1173,7 @@ func (s *Server) handleMmdsConfigPutRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1216,12 +1184,8 @@ func (s *Server) handleMmdsConfigPutRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1357,7 +1321,7 @@ func (s *Server) handleMmdsGetRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1368,12 +1332,8 @@ func (s *Server) handleMmdsGetRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1490,7 +1450,7 @@ func (s *Server) handleMmdsPatchRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1501,12 +1461,8 @@ func (s *Server) handleMmdsPatchRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1642,7 +1598,7 @@ func (s *Server) handleMmdsPutRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1653,12 +1609,8 @@ func (s *Server) handleMmdsPutRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1796,7 +1748,7 @@ func (s *Server) handlePatchBalloonRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1807,12 +1759,8 @@ func (s *Server) handlePatchBalloonRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1950,7 +1898,7 @@ func (s *Server) handlePatchBalloonStatsIntervalRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1961,12 +1909,8 @@ func (s *Server) handlePatchBalloonStatsIntervalRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2104,7 +2048,7 @@ func (s *Server) handlePatchGuestDriveByIDRequest(args [1]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2115,12 +2059,8 @@ func (s *Server) handlePatchGuestDriveByIDRequest(args [1]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2272,7 +2212,7 @@ func (s *Server) handlePatchGuestNetworkInterfaceByIDRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2283,12 +2223,8 @@ func (s *Server) handlePatchGuestNetworkInterfaceByIDRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2441,7 +2377,7 @@ func (s *Server) handlePatchMachineConfigurationRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2452,12 +2388,8 @@ func (s *Server) handlePatchMachineConfigurationRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2594,7 +2526,7 @@ func (s *Server) handlePatchVmRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2605,12 +2537,8 @@ func (s *Server) handlePatchVmRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2748,7 +2676,7 @@ func (s *Server) handlePutBalloonRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2759,12 +2687,8 @@ func (s *Server) handlePutBalloonRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2902,7 +2826,7 @@ func (s *Server) handlePutGuestBootSourceRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2913,12 +2837,8 @@ func (s *Server) handlePutGuestBootSourceRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3056,7 +2976,7 @@ func (s *Server) handlePutGuestDriveByIDRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3067,12 +2987,8 @@ func (s *Server) handlePutGuestDriveByIDRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3224,7 +3140,7 @@ func (s *Server) handlePutGuestNetworkInterfaceByIDRequest(args [1]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3235,12 +3151,8 @@ func (s *Server) handlePutGuestNetworkInterfaceByIDRequest(args [1]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3393,7 +3305,7 @@ func (s *Server) handlePutGuestVsockRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3404,12 +3316,8 @@ func (s *Server) handlePutGuestVsockRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3546,7 +3454,7 @@ func (s *Server) handlePutLoggerRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3557,12 +3465,8 @@ func (s *Server) handlePutLoggerRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3702,7 +3606,7 @@ func (s *Server) handlePutMachineConfigurationRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3713,12 +3617,8 @@ func (s *Server) handlePutMachineConfigurationRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3855,7 +3755,7 @@ func (s *Server) handlePutMetricsRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3866,12 +3766,8 @@ func (s *Server) handlePutMetricsRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_github/oas_client_gen.go b/examples/ex_github/oas_client_gen.go index 3c338c91e..19d4e4cdd 100644 --- a/examples/ex_github/oas_client_gen.go +++ b/examples/ex_github/oas_client_gen.go @@ -7847,7 +7847,7 @@ func (c *Client) sendActionsAddRepoAccessToSelfHostedRunnerGroupInOrg(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7979,7 +7979,7 @@ func (c *Client) sendActionsAddSelectedRepoToOrgSecret(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8112,7 +8112,7 @@ func (c *Client) sendActionsAddSelfHostedRunnerToGroupForOrg(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8244,7 +8244,7 @@ func (c *Client) sendActionsApproveWorkflowRun(ctx context.Context, params Actio defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8375,7 +8375,7 @@ func (c *Client) sendActionsCancelWorkflowRun(ctx context.Context, params Action defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8557,7 +8557,7 @@ func (c *Client) sendActionsCreateOrUpdateEnvironmentSecret(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8741,7 +8741,7 @@ func (c *Client) sendActionsCreateOrUpdateOrgSecret(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8906,7 +8906,7 @@ func (c *Client) sendActionsCreateOrUpdateRepoSecret(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9044,7 +9044,7 @@ func (c *Client) sendActionsCreateRegistrationTokenForOrg(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9143,7 +9143,7 @@ func (c *Client) sendActionsCreateRegistrationTokenForRepo(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9262,7 +9262,7 @@ func (c *Client) sendActionsCreateRemoveTokenForOrg(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9361,7 +9361,7 @@ func (c *Client) sendActionsCreateRemoveTokenForRepo(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9475,7 +9475,7 @@ func (c *Client) sendActionsCreateSelfHostedRunnerGroupForOrg(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9571,7 +9571,7 @@ func (c *Client) sendActionsDeleteArtifact(ctx context.Context, params ActionsDe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9701,7 +9701,7 @@ func (c *Client) sendActionsDeleteEnvironmentSecret(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9831,7 +9831,7 @@ func (c *Client) sendActionsDeleteOrgSecret(ctx context.Context, params ActionsD defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9942,7 +9942,7 @@ func (c *Client) sendActionsDeleteRepoSecret(ctx context.Context, params Actions defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10072,7 +10072,7 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerFromOrg(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10184,7 +10184,7 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerFromRepo(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10316,7 +10316,7 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerGroupFromOrg(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10429,7 +10429,7 @@ func (c *Client) sendActionsDeleteWorkflowRun(ctx context.Context, params Action defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10559,7 +10559,7 @@ func (c *Client) sendActionsDeleteWorkflowRunLogs(ctx context.Context, params Ac defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10693,7 +10693,7 @@ func (c *Client) sendActionsDisableSelectedRepositoryGithubActionsOrganization(c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10808,7 +10808,7 @@ func (c *Client) sendActionsDownloadArtifact(ctx context.Context, params Actions defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10963,7 +10963,7 @@ func (c *Client) sendActionsDownloadJobLogsForWorkflowRun(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11098,7 +11098,7 @@ func (c *Client) sendActionsDownloadWorkflowRunLogs(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11232,7 +11232,7 @@ func (c *Client) sendActionsEnableSelectedRepositoryGithubActionsOrganization(ct defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11346,7 +11346,7 @@ func (c *Client) sendActionsGetAllowedActionsOrganization(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11442,7 +11442,7 @@ func (c *Client) sendActionsGetAllowedActionsRepository(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11554,7 +11554,7 @@ func (c *Client) sendActionsGetArtifact(ctx context.Context, params ActionsGetAr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11685,7 +11685,7 @@ func (c *Client) sendActionsGetEnvironmentPublicKey(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11797,7 +11797,7 @@ func (c *Client) sendActionsGetEnvironmentSecret(ctx context.Context, params Act defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11927,7 +11927,7 @@ func (c *Client) sendActionsGetGithubActionsPermissionsOrganization(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12021,7 +12021,7 @@ func (c *Client) sendActionsGetGithubActionsPermissionsRepository(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12133,7 +12133,7 @@ func (c *Client) sendActionsGetJobForWorkflowRun(ctx context.Context, params Act defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12264,7 +12264,7 @@ func (c *Client) sendActionsGetOrgPublicKey(ctx context.Context, params ActionsG defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12357,7 +12357,7 @@ func (c *Client) sendActionsGetOrgSecret(ctx context.Context, params ActionsGetO defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12469,7 +12469,7 @@ func (c *Client) sendActionsGetRepoPublicKey(ctx context.Context, params Actions defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12581,7 +12581,7 @@ func (c *Client) sendActionsGetRepoSecret(ctx context.Context, params ActionsGet defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12711,7 +12711,7 @@ func (c *Client) sendActionsGetReviewsForRun(ctx context.Context, params Actions defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12841,7 +12841,7 @@ func (c *Client) sendActionsGetSelfHostedRunnerForOrg(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12952,7 +12952,7 @@ func (c *Client) sendActionsGetSelfHostedRunnerForRepo(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13084,7 +13084,7 @@ func (c *Client) sendActionsGetSelfHostedRunnerGroupForOrg(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13195,7 +13195,7 @@ func (c *Client) sendActionsGetWorkflowRun(ctx context.Context, params ActionsGe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13332,7 +13332,7 @@ func (c *Client) sendActionsGetWorkflowRunUsage(ctx context.Context, params Acti defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13463,7 +13463,7 @@ func (c *Client) sendActionsListArtifactsForRepo(ctx context.Context, params Act defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13613,7 +13613,7 @@ func (c *Client) sendActionsListEnvironmentSecrets(ctx context.Context, params A defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13765,7 +13765,7 @@ func (c *Client) sendActionsListJobsForWorkflowRun(ctx context.Context, params A defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13951,7 +13951,7 @@ func (c *Client) sendActionsListOrgSecrets(ctx context.Context, params ActionsLi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14084,7 +14084,7 @@ func (c *Client) sendActionsListRepoAccessToSelfHostedRunnerGroupInOrg(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14234,7 +14234,7 @@ func (c *Client) sendActionsListRepoSecrets(ctx context.Context, params ActionsL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14384,7 +14384,7 @@ func (c *Client) sendActionsListRepoWorkflows(ctx context.Context, params Action defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14533,7 +14533,7 @@ func (c *Client) sendActionsListRunnerApplicationsForOrg(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14625,7 +14625,7 @@ func (c *Client) sendActionsListRunnerApplicationsForRepo(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14738,7 +14738,7 @@ func (c *Client) sendActionsListSelectedReposForOrgSecret(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14891,7 +14891,7 @@ func (c *Client) sendActionsListSelectedRepositoriesEnabledGithubActionsOrganiza defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15024,7 +15024,7 @@ func (c *Client) sendActionsListSelfHostedRunnerGroupsForOrg(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15154,7 +15154,7 @@ func (c *Client) sendActionsListSelfHostedRunnersForOrg(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15284,7 +15284,7 @@ func (c *Client) sendActionsListSelfHostedRunnersForRepo(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15436,7 +15436,7 @@ func (c *Client) sendActionsListSelfHostedRunnersInGroupForOrg(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15586,7 +15586,7 @@ func (c *Client) sendActionsListWorkflowRunArtifacts(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15758,7 +15758,7 @@ func (c *Client) sendActionsListWorkflowRunsForRepo(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15998,7 +15998,7 @@ func (c *Client) sendActionsReRunWorkflow(ctx context.Context, params ActionsReR defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16134,7 +16134,7 @@ func (c *Client) sendActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16266,7 +16266,7 @@ func (c *Client) sendActionsRemoveSelectedRepoFromOrgSecret(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16399,7 +16399,7 @@ func (c *Client) sendActionsRemoveSelfHostedRunnerFromGroupForOrg(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16529,7 +16529,7 @@ func (c *Client) sendActionsRetryWorkflow(ctx context.Context, params ActionsRet defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16659,7 +16659,7 @@ func (c *Client) sendActionsReviewPendingDeploymentsForRun(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16801,7 +16801,7 @@ func (c *Client) sendActionsSetAllowedActionsOrganization(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16904,7 +16904,7 @@ func (c *Client) sendActionsSetAllowedActionsRepository(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17022,7 +17022,7 @@ func (c *Client) sendActionsSetGithubActionsPermissionsOrganization(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17122,7 +17122,7 @@ func (c *Client) sendActionsSetGithubActionsPermissionsRepository(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17240,7 +17240,7 @@ func (c *Client) sendActionsSetRepoAccessToSelfHostedRunnerGroupInOrg(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17357,7 +17357,7 @@ func (c *Client) sendActionsSetSelectedReposForOrgSecret(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17475,7 +17475,7 @@ func (c *Client) sendActionsSetSelectedRepositoriesEnabledGithubActionsOrganizat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17573,7 +17573,7 @@ func (c *Client) sendActionsSetSelfHostedRunnersInGroupForOrg(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17690,7 +17690,7 @@ func (c *Client) sendActionsUpdateSelfHostedRunnerGroupForOrg(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17802,7 +17802,7 @@ func (c *Client) sendActivityCheckRepoIsStarredByAuthenticatedUser(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17913,7 +17913,7 @@ func (c *Client) sendActivityDeleteRepoSubscription(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18027,7 +18027,7 @@ func (c *Client) sendActivityDeleteThreadSubscription(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18132,7 +18132,7 @@ func (c *Client) sendActivityGetFeeds(ctx context.Context) (res *Feed, err error defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18204,7 +18204,7 @@ func (c *Client) sendActivityGetRepoSubscription(ctx context.Context, params Act defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18314,7 +18314,7 @@ func (c *Client) sendActivityGetThread(ctx context.Context, params ActivityGetTh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18407,7 +18407,7 @@ func (c *Client) sendActivityGetThreadSubscriptionForAuthenticatedUser(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18499,7 +18499,7 @@ func (c *Client) sendActivityListEventsForAuthenticatedUser(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18628,7 +18628,7 @@ func (c *Client) sendActivityListNotificationsForAuthenticatedUser(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18806,7 +18806,7 @@ func (c *Client) sendActivityListOrgEventsForAuthenticatedUser(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18954,7 +18954,7 @@ func (c *Client) sendActivityListPublicEvents(ctx context.Context, params Activi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19064,7 +19064,7 @@ func (c *Client) sendActivityListPublicEventsForRepoNetwork(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19212,7 +19212,7 @@ func (c *Client) sendActivityListPublicEventsForUser(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19341,7 +19341,7 @@ func (c *Client) sendActivityListPublicOrgEvents(ctx context.Context, params Act defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19472,7 +19472,7 @@ func (c *Client) sendActivityListReceivedEventsForUser(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19601,7 +19601,7 @@ func (c *Client) sendActivityListReceivedPublicEventsForUser(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19730,7 +19730,7 @@ func (c *Client) sendActivityListRepoEvents(ctx context.Context, params Activity defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19878,7 +19878,7 @@ func (c *Client) sendActivityListRepoNotificationsForAuthenticatedUser(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20096,7 +20096,7 @@ func (c *Client) sendActivityListReposStarredByAuthenticatedUser(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20240,7 +20240,7 @@ func (c *Client) sendActivityListReposWatchedByUser(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20369,7 +20369,7 @@ func (c *Client) sendActivityListWatchedReposForAuthenticatedUser(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20479,7 +20479,7 @@ func (c *Client) sendActivityListWatchersForRepo(ctx context.Context, params Act defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20633,7 +20633,7 @@ func (c *Client) sendActivityMarkNotificationsAsRead(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20714,7 +20714,7 @@ func (c *Client) sendActivityMarkRepoNotificationsAsRead(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20827,7 +20827,7 @@ func (c *Client) sendActivityMarkThreadAsRead(ctx context.Context, params Activi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20920,7 +20920,7 @@ func (c *Client) sendActivitySetRepoSubscription(ctx context.Context, request Op defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21040,7 +21040,7 @@ func (c *Client) sendActivitySetThreadSubscription(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21136,7 +21136,7 @@ func (c *Client) sendActivityStarRepoForAuthenticatedUser(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21245,7 +21245,7 @@ func (c *Client) sendActivityUnstarRepoForAuthenticatedUser(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21359,7 +21359,7 @@ func (c *Client) sendAppsAddRepoToInstallation(ctx context.Context, params AppsA defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21473,7 +21473,7 @@ func (c *Client) sendAppsCheckToken(ctx context.Context, request *AppsCheckToken defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21576,7 +21576,7 @@ func (c *Client) sendAppsCreateContentAttachment(ctx context.Context, request *A defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21711,7 +21711,7 @@ func (c *Client) sendAppsCreateFromManifest(ctx context.Context, request *AppsCr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21814,7 +21814,7 @@ func (c *Client) sendAppsCreateInstallationAccessToken(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21917,7 +21917,7 @@ func (c *Client) sendAppsDeleteAuthorization(ctx context.Context, request *AppsD defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22016,7 +22016,7 @@ func (c *Client) sendAppsDeleteInstallation(ctx context.Context, params AppsDele defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22109,7 +22109,7 @@ func (c *Client) sendAppsDeleteToken(ctx context.Context, request *AppsDeleteTok defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22210,7 +22210,7 @@ func (c *Client) sendAppsGetAuthenticated(ctx context.Context) (res *Integration defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22289,7 +22289,7 @@ func (c *Client) sendAppsGetBySlug(ctx context.Context, params AppsGetBySlugPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22386,7 +22386,7 @@ func (c *Client) sendAppsGetSubscriptionPlanForAccount(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22483,7 +22483,7 @@ func (c *Client) sendAppsGetSubscriptionPlanForAccountStubbed(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22577,7 +22577,7 @@ func (c *Client) sendAppsGetWebhookConfigForApp(ctx context.Context) (res *Webho defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22652,7 +22652,7 @@ func (c *Client) sendAppsGetWebhookDelivery(ctx context.Context, params AppsGetW defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22750,7 +22750,7 @@ func (c *Client) sendAppsListAccountsForPlan(ctx context.Context, params AppsLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22921,7 +22921,7 @@ func (c *Client) sendAppsListAccountsForPlanStubbed(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23090,7 +23090,7 @@ func (c *Client) sendAppsListInstallationReposForAuthenticatedUser(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23224,7 +23224,7 @@ func (c *Client) sendAppsListPlans(ctx context.Context, params AppsListPlansPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23339,7 +23339,7 @@ func (c *Client) sendAppsListPlansStubbed(ctx context.Context, params AppsListPl defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23452,7 +23452,7 @@ func (c *Client) sendAppsListReposAccessibleToInstallation(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23564,7 +23564,7 @@ func (c *Client) sendAppsListSubscriptionsForAuthenticatedUser(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23676,7 +23676,7 @@ func (c *Client) sendAppsListSubscriptionsForAuthenticatedUserStubbed(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23789,7 +23789,7 @@ func (c *Client) sendAppsListWebhookDeliveries(ctx context.Context, params AppsL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23902,7 +23902,7 @@ func (c *Client) sendAppsRedeliverWebhookDelivery(ctx context.Context, params Ap defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23998,7 +23998,7 @@ func (c *Client) sendAppsRemoveRepoFromInstallation(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24112,7 +24112,7 @@ func (c *Client) sendAppsResetToken(ctx context.Context, request *AppsResetToken defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24215,7 +24215,7 @@ func (c *Client) sendAppsRevokeInstallationAccessToken(ctx context.Context) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24292,7 +24292,7 @@ func (c *Client) sendAppsScopeToken(ctx context.Context, request *AppsScopeToken defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24391,7 +24391,7 @@ func (c *Client) sendAppsSuspendInstallation(ctx context.Context, params AppsSus defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24485,7 +24485,7 @@ func (c *Client) sendAppsUnsuspendInstallation(ctx context.Context, params AppsU defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24580,7 +24580,7 @@ func (c *Client) sendAppsUpdateWebhookConfigForApp(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24662,7 +24662,7 @@ func (c *Client) sendBillingGetGithubActionsBillingGhe(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24760,7 +24760,7 @@ func (c *Client) sendBillingGetGithubActionsBillingOrg(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24858,7 +24858,7 @@ func (c *Client) sendBillingGetGithubActionsBillingUser(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24953,7 +24953,7 @@ func (c *Client) sendBillingGetGithubPackagesBillingGhe(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25048,7 +25048,7 @@ func (c *Client) sendBillingGetGithubPackagesBillingOrg(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25143,7 +25143,7 @@ func (c *Client) sendBillingGetGithubPackagesBillingUser(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25238,7 +25238,7 @@ func (c *Client) sendBillingGetSharedStorageBillingGhe(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25333,7 +25333,7 @@ func (c *Client) sendBillingGetSharedStorageBillingOrg(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25428,7 +25428,7 @@ func (c *Client) sendBillingGetSharedStorageBillingUser(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25527,7 +25527,7 @@ func (c *Client) sendChecksCreateSuite(ctx context.Context, request *ChecksCreat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25645,7 +25645,7 @@ func (c *Client) sendChecksGet(ctx context.Context, params ChecksGetParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25778,7 +25778,7 @@ func (c *Client) sendChecksGetSuite(ctx context.Context, params ChecksGetSuitePa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25909,7 +25909,7 @@ func (c *Client) sendChecksListAnnotations(ctx context.Context, params ChecksLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26082,7 +26082,7 @@ func (c *Client) sendChecksListForRef(ctx context.Context, params ChecksListForR defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26322,7 +26322,7 @@ func (c *Client) sendChecksListForSuite(ctx context.Context, params ChecksListFo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26546,7 +26546,7 @@ func (c *Client) sendChecksListSuitesForRef(ctx context.Context, params ChecksLi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26752,7 +26752,7 @@ func (c *Client) sendChecksRerequestSuite(ctx context.Context, params ChecksRere defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26885,7 +26885,7 @@ func (c *Client) sendChecksSetSuitesPreferences(ctx context.Context, request *Ch defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27056,7 +27056,7 @@ func (c *Client) sendCodeScanningDeleteAnalysis(ctx context.Context, params Code defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27211,7 +27211,7 @@ func (c *Client) sendCodeScanningGetAlert(ctx context.Context, params CodeScanni defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27360,7 +27360,7 @@ func (c *Client) sendCodeScanningGetAnalysis(ctx context.Context, params CodeSca defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27493,7 +27493,7 @@ func (c *Client) sendCodeScanningGetSarif(ctx context.Context, params CodeScanni defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27623,7 +27623,7 @@ func (c *Client) sendCodeScanningListAlertInstances(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27820,7 +27820,7 @@ func (c *Client) sendCodeScanningListAlertsForRepo(ctx context.Context, params C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28059,7 +28059,7 @@ func (c *Client) sendCodeScanningListRecentAnalyses(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28289,7 +28289,7 @@ func (c *Client) sendCodeScanningUpdateAlert(ctx context.Context, request *CodeS defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28449,7 +28449,7 @@ func (c *Client) sendCodeScanningUploadSarif(ctx context.Context, request *CodeS defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28562,7 +28562,7 @@ func (c *Client) sendCodesOfConductGetAllCodesOfConduct(ctx context.Context) (re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28634,7 +28634,7 @@ func (c *Client) sendCodesOfConductGetConductCode(ctx context.Context, params Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28724,7 +28724,7 @@ func (c *Client) sendEmojisGet(ctx context.Context) (res EmojisGetRes, err error defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28800,7 +28800,7 @@ func (c *Client) sendEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28930,7 +28930,7 @@ func (c *Client) sendEnterpriseAdminAddSelfHostedRunnerToGroupForEnterprise(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29065,7 +29065,7 @@ func (c *Client) sendEnterpriseAdminCreateRegistrationTokenForEnterprise(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29165,7 +29165,7 @@ func (c *Client) sendEnterpriseAdminCreateRemoveTokenForEnterprise(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29257,7 +29257,7 @@ func (c *Client) sendEnterpriseAdminCreateSelfHostedRunnerGroupForEnterprise(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29352,7 +29352,7 @@ func (c *Client) sendEnterpriseAdminDeleteScimGroupFromEnterprise(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29463,7 +29463,7 @@ func (c *Client) sendEnterpriseAdminDeleteSelfHostedRunnerFromEnterprise(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29573,7 +29573,7 @@ func (c *Client) sendEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterprise(ct defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29683,7 +29683,7 @@ func (c *Client) sendEnterpriseAdminDeleteUserFromEnterprise(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29796,7 +29796,7 @@ func (c *Client) sendEnterpriseAdminDisableSelectedOrganizationGithubActionsEnte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29909,7 +29909,7 @@ func (c *Client) sendEnterpriseAdminEnableSelectedOrganizationGithubActionsEnter defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30022,7 +30022,7 @@ func (c *Client) sendEnterpriseAdminGetAllowedActionsEnterprise(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30114,7 +30114,7 @@ func (c *Client) sendEnterpriseAdminGetAuditLog(ctx context.Context, params Ente defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30329,7 +30329,7 @@ func (c *Client) sendEnterpriseAdminGetGithubActionsPermissionsEnterprise(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30421,7 +30421,7 @@ func (c *Client) sendEnterpriseAdminGetProvisioningInformationForEnterpriseGroup defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30552,7 +30552,7 @@ func (c *Client) sendEnterpriseAdminGetProvisioningInformationForEnterpriseUser( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30662,7 +30662,7 @@ func (c *Client) sendEnterpriseAdminGetSelfHostedRunnerForEnterprise(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30772,7 +30772,7 @@ func (c *Client) sendEnterpriseAdminGetSelfHostedRunnerGroupForEnterprise(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30882,7 +30882,7 @@ func (c *Client) sendEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterp defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31031,7 +31031,7 @@ func (c *Client) sendEnterpriseAdminListProvisionedGroupsEnterprise(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31220,7 +31220,7 @@ func (c *Client) sendEnterpriseAdminListProvisionedIdentitiesEnterprise(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31367,7 +31367,7 @@ func (c *Client) sendEnterpriseAdminListRunnerApplicationsForEnterprise(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31462,7 +31462,7 @@ func (c *Client) sendEnterpriseAdminListSelectedOrganizationsEnabledGithubAction defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31592,7 +31592,7 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnerGroupsForEnterprise(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31722,7 +31722,7 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnersForEnterprise(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31852,7 +31852,7 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnersInGroupForEnterprise(ct defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32004,7 +32004,7 @@ func (c *Client) sendEnterpriseAdminProvisionAndInviteEnterpriseGroup(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32104,7 +32104,7 @@ func (c *Client) sendEnterpriseAdminProvisionAndInviteEnterpriseUser(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32202,7 +32202,7 @@ func (c *Client) sendEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32332,7 +32332,7 @@ func (c *Client) sendEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterprise defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32464,7 +32464,7 @@ func (c *Client) sendEnterpriseAdminSetAllowedActionsEnterprise(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32559,7 +32559,7 @@ func (c *Client) sendEnterpriseAdminSetGithubActionsPermissionsEnterprise(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32659,7 +32659,7 @@ func (c *Client) sendEnterpriseAdminSetInformationForProvisionedEnterpriseGroup( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32780,7 +32780,7 @@ func (c *Client) sendEnterpriseAdminSetInformationForProvisionedEnterpriseUser(c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32894,7 +32894,7 @@ func (c *Client) sendEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33011,7 +33011,7 @@ func (c *Client) sendEnterpriseAdminSetSelectedOrganizationsEnabledGithubActions defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33106,7 +33106,7 @@ func (c *Client) sendEnterpriseAdminSetSelfHostedRunnersInGroupForEnterprise(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33224,7 +33224,7 @@ func (c *Client) sendEnterpriseAdminUpdateAttributeForEnterpriseGroup(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33358,7 +33358,7 @@ func (c *Client) sendEnterpriseAdminUpdateAttributeForEnterpriseUser(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33471,7 +33471,7 @@ func (c *Client) sendEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterprise(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33583,7 +33583,7 @@ func (c *Client) sendGistsCheckIsStarred(ctx context.Context, params GistsCheckI defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33676,7 +33676,7 @@ func (c *Client) sendGistsCreate(ctx context.Context, request *GistsCreateReq) ( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33751,7 +33751,7 @@ func (c *Client) sendGistsCreateComment(ctx context.Context, request *GistsCreat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33845,7 +33845,7 @@ func (c *Client) sendGistsDelete(ctx context.Context, params GistsDeleteParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33935,7 +33935,7 @@ func (c *Client) sendGistsDeleteComment(ctx context.Context, params GistsDeleteC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34044,7 +34044,7 @@ func (c *Client) sendGistsFork(ctx context.Context, params GistsForkParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34135,7 +34135,7 @@ func (c *Client) sendGistsGet(ctx context.Context, params GistsGetParams) (res G defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34225,7 +34225,7 @@ func (c *Client) sendGistsGetComment(ctx context.Context, params GistsGetComment defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34334,7 +34334,7 @@ func (c *Client) sendGistsGetRevision(ctx context.Context, params GistsGetRevisi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34444,7 +34444,7 @@ func (c *Client) sendGistsList(ctx context.Context, params GistsListParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34571,7 +34571,7 @@ func (c *Client) sendGistsListComments(ctx context.Context, params GistsListComm defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34700,7 +34700,7 @@ func (c *Client) sendGistsListCommits(ctx context.Context, params GistsListCommi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34829,7 +34829,7 @@ func (c *Client) sendGistsListForUser(ctx context.Context, params GistsListForUs defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34975,7 +34975,7 @@ func (c *Client) sendGistsListForks(ctx context.Context, params GistsListForksPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35107,7 +35107,7 @@ func (c *Client) sendGistsListPublic(ctx context.Context, params GistsListPublic defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35234,7 +35234,7 @@ func (c *Client) sendGistsListStarred(ctx context.Context, params GistsListStarr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35363,7 +35363,7 @@ func (c *Client) sendGistsStar(ctx context.Context, params GistsStarParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35454,7 +35454,7 @@ func (c *Client) sendGistsUnstar(ctx context.Context, params GistsUnstarParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35545,7 +35545,7 @@ func (c *Client) sendGistsUpdateComment(ctx context.Context, request *GistsUpdat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35657,7 +35657,7 @@ func (c *Client) sendGitCreateBlob(ctx context.Context, request *GitCreateBlobRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35803,7 +35803,7 @@ func (c *Client) sendGitCreateCommit(ctx context.Context, request *GitCreateComm defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35918,7 +35918,7 @@ func (c *Client) sendGitCreateRef(ctx context.Context, request *GitCreateRefReq, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36067,7 +36067,7 @@ func (c *Client) sendGitCreateTag(ctx context.Context, request *GitCreateTagReq, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36186,7 +36186,7 @@ func (c *Client) sendGitCreateTree(ctx context.Context, request *GitCreateTreeRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36299,7 +36299,7 @@ func (c *Client) sendGitDeleteRef(ctx context.Context, params GitDeleteRefParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36428,7 +36428,7 @@ func (c *Client) sendGitGetBlob(ctx context.Context, params GitGetBlobParams) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36589,7 +36589,7 @@ func (c *Client) sendGitGetCommit(ctx context.Context, params GitGetCommitParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36724,7 +36724,7 @@ func (c *Client) sendGitGetRef(ctx context.Context, params GitGetRefParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36883,7 +36883,7 @@ func (c *Client) sendGitGetTag(ctx context.Context, params GitGetTagParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37014,7 +37014,7 @@ func (c *Client) sendGitGetTree(ctx context.Context, params GitGetTreeParams) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37177,7 +37177,7 @@ func (c *Client) sendGitListMatchingRefs(ctx context.Context, params GitListMatc defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37343,7 +37343,7 @@ func (c *Client) sendGitUpdateRef(ctx context.Context, request *GitUpdateRefReq, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37475,7 +37475,7 @@ func (c *Client) sendGitignoreGetAllTemplates(ctx context.Context) (res Gitignor defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37549,7 +37549,7 @@ func (c *Client) sendGitignoreGetTemplate(ctx context.Context, params GitignoreG defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37639,7 +37639,7 @@ func (c *Client) sendInteractionsRemoveRestrictionsForAuthenticatedUser(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37712,7 +37712,7 @@ func (c *Client) sendInteractionsRemoveRestrictionsForOrg(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37806,7 +37806,7 @@ func (c *Client) sendInteractionsRemoveRestrictionsForRepo(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37918,7 +37918,7 @@ func (c *Client) sendInteractionsSetRestrictionsForAuthenticatedUser(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37996,7 +37996,7 @@ func (c *Client) sendInteractionsSetRestrictionsForOrg(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38093,7 +38093,7 @@ func (c *Client) sendInteractionsSetRestrictionsForRepo(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38206,7 +38206,7 @@ func (c *Client) sendIssuesAddAssignees(ctx context.Context, request OptIssuesAd defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38341,7 +38341,7 @@ func (c *Client) sendIssuesCheckUserCanBeAssigned(ctx context.Context, params Is defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38478,7 +38478,7 @@ func (c *Client) sendIssuesCreate(ctx context.Context, request *IssuesCreateReq, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38597,7 +38597,7 @@ func (c *Client) sendIssuesCreateComment(ctx context.Context, request *IssuesCre defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38729,7 +38729,7 @@ func (c *Client) sendIssuesCreateLabel(ctx context.Context, request *IssuesCreat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38842,7 +38842,7 @@ func (c *Client) sendIssuesCreateMilestone(ctx context.Context, request *IssuesC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38955,7 +38955,7 @@ func (c *Client) sendIssuesDeleteComment(ctx context.Context, params IssuesDelet defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39083,7 +39083,7 @@ func (c *Client) sendIssuesDeleteLabel(ctx context.Context, params IssuesDeleteL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39211,7 +39211,7 @@ func (c *Client) sendIssuesDeleteMilestone(ctx context.Context, params IssuesDel defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39357,7 +39357,7 @@ func (c *Client) sendIssuesGet(ctx context.Context, params IssuesGetParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39485,7 +39485,7 @@ func (c *Client) sendIssuesGetComment(ctx context.Context, params IssuesGetComme defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39613,7 +39613,7 @@ func (c *Client) sendIssuesGetEvent(ctx context.Context, params IssuesGetEventPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39741,7 +39741,7 @@ func (c *Client) sendIssuesGetLabel(ctx context.Context, params IssuesGetLabelPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39869,7 +39869,7 @@ func (c *Client) sendIssuesGetMilestone(ctx context.Context, params IssuesGetMil defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40009,7 +40009,7 @@ func (c *Client) sendIssuesList(ctx context.Context, params IssuesListParams) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40290,7 +40290,7 @@ func (c *Client) sendIssuesListAssignees(ctx context.Context, params IssuesListA defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40438,7 +40438,7 @@ func (c *Client) sendIssuesListComments(ctx context.Context, params IssuesListCo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40622,7 +40622,7 @@ func (c *Client) sendIssuesListCommentsForRepo(ctx context.Context, params Issue defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40821,7 +40821,7 @@ func (c *Client) sendIssuesListEventsForRepo(ctx context.Context, params IssuesL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40977,7 +40977,7 @@ func (c *Client) sendIssuesListForAuthenticatedUser(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41197,7 +41197,7 @@ func (c *Client) sendIssuesListForOrg(ctx context.Context, params IssuesListForO defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41436,7 +41436,7 @@ func (c *Client) sendIssuesListForRepo(ctx context.Context, params IssuesListFor defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41737,7 +41737,7 @@ func (c *Client) sendIssuesListLabelsForMilestone(ctx context.Context, params Is defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41904,7 +41904,7 @@ func (c *Client) sendIssuesListLabelsForRepo(ctx context.Context, params IssuesL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42052,7 +42052,7 @@ func (c *Client) sendIssuesListLabelsOnIssue(ctx context.Context, params IssuesL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42219,7 +42219,7 @@ func (c *Client) sendIssuesListMilestones(ctx context.Context, params IssuesList defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42421,7 +42421,7 @@ func (c *Client) sendIssuesLock(ctx context.Context, request OptNilIssuesLockReq defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42553,7 +42553,7 @@ func (c *Client) sendIssuesRemoveAllLabels(ctx context.Context, params IssuesRem defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42682,7 +42682,7 @@ func (c *Client) sendIssuesRemoveAssignees(ctx context.Context, request OptIssue defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42815,7 +42815,7 @@ func (c *Client) sendIssuesRemoveLabel(ctx context.Context, params IssuesRemoveL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42962,7 +42962,7 @@ func (c *Client) sendIssuesUnlock(ctx context.Context, params IssuesUnlockParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43091,7 +43091,7 @@ func (c *Client) sendIssuesUpdate(ctx context.Context, request OptIssuesUpdateRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43222,7 +43222,7 @@ func (c *Client) sendIssuesUpdateComment(ctx context.Context, request *IssuesUpd defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43353,7 +43353,7 @@ func (c *Client) sendIssuesUpdateLabel(ctx context.Context, request OptIssuesUpd defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43484,7 +43484,7 @@ func (c *Client) sendIssuesUpdateMilestone(ctx context.Context, request OptIssue defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43615,7 +43615,7 @@ func (c *Client) sendLicensesGet(ctx context.Context, params LicensesGetParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43705,7 +43705,7 @@ func (c *Client) sendLicensesGetAllCommonlyUsed(ctx context.Context, params Lice defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43836,7 +43836,7 @@ func (c *Client) sendLicensesGetForRepo(ctx context.Context, params LicensesGetF defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43946,7 +43946,7 @@ func (c *Client) sendMarkdownRender(ctx context.Context, request *MarkdownRender defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44024,7 +44024,7 @@ func (c *Client) sendMarkdownRenderRaw(ctx context.Context, request MarkdownRend defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44103,7 +44103,7 @@ func (c *Client) sendMetaGet(ctx context.Context) (res MetaGetRes, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44175,7 +44175,7 @@ func (c *Client) sendMetaGetOctocat(ctx context.Context, params MetaGetOctocatPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44268,7 +44268,7 @@ func (c *Client) sendMetaGetZen(ctx context.Context) (res MetaGetZenOK, err erro defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44340,7 +44340,7 @@ func (c *Client) sendMetaRoot(ctx context.Context) (res *MetaRootOK, err error) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44412,7 +44412,7 @@ func (c *Client) sendMigrationsCancelImport(ctx context.Context, params Migratio defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44526,7 +44526,7 @@ func (c *Client) sendMigrationsDeleteArchiveForAuthenticatedUser(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44618,7 +44618,7 @@ func (c *Client) sendMigrationsDeleteArchiveForOrg(ctx context.Context, params M defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44728,7 +44728,7 @@ func (c *Client) sendMigrationsDownloadArchiveForOrg(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44858,7 +44858,7 @@ func (c *Client) sendMigrationsGetArchiveForAuthenticatedUser(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44956,7 +44956,7 @@ func (c *Client) sendMigrationsGetCommitAuthors(ctx context.Context, params Migr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45139,7 +45139,7 @@ func (c *Client) sendMigrationsGetImportStatus(ctx context.Context, params Migra defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45249,7 +45249,7 @@ func (c *Client) sendMigrationsGetLargeFiles(ctx context.Context, params Migrati defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45366,7 +45366,7 @@ func (c *Client) sendMigrationsGetStatusForAuthenticatedUser(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45491,7 +45491,7 @@ func (c *Client) sendMigrationsGetStatusForOrg(ctx context.Context, params Migra defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45630,7 +45630,7 @@ func (c *Client) sendMigrationsListForAuthenticatedUser(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45740,7 +45740,7 @@ func (c *Client) sendMigrationsListForOrg(ctx context.Context, params Migrations defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45895,7 +45895,7 @@ func (c *Client) sendMigrationsListReposForOrg(ctx context.Context, params Migra defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46043,7 +46043,7 @@ func (c *Client) sendMigrationsListReposForUser(ctx context.Context, params Migr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46173,7 +46173,7 @@ func (c *Client) sendMigrationsMapCommitAuthor(ctx context.Context, request OptM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46307,7 +46307,7 @@ func (c *Client) sendMigrationsSetLfsPreference(ctx context.Context, request *Mi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46420,7 +46420,7 @@ func (c *Client) sendMigrationsStartForAuthenticatedUser(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46495,7 +46495,7 @@ func (c *Client) sendMigrationsStartForOrg(ctx context.Context, request *Migrati defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46589,7 +46589,7 @@ func (c *Client) sendMigrationsStartImport(ctx context.Context, request *Migrati defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46706,7 +46706,7 @@ func (c *Client) sendMigrationsUnlockRepoForAuthenticatedUser(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46818,7 +46818,7 @@ func (c *Client) sendMigrationsUnlockRepoForOrg(ctx context.Context, params Migr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46949,7 +46949,7 @@ func (c *Client) sendMigrationsUpdateImport(ctx context.Context, request OptNilM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47091,7 +47091,7 @@ func (c *Client) sendOAuthAuthorizationsCreateAuthorization(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47175,7 +47175,7 @@ func (c *Client) sendOAuthAuthorizationsDeleteAuthorization(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47277,7 +47277,7 @@ func (c *Client) sendOAuthAuthorizationsDeleteGrant(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47376,7 +47376,7 @@ func (c *Client) sendOAuthAuthorizationsGetAuthorization(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47475,7 +47475,7 @@ func (c *Client) sendOAuthAuthorizationsGetGrant(ctx context.Context, params OAu defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47593,7 +47593,7 @@ func (c *Client) sendOAuthAuthorizationsGetOrCreateAuthorizationForApp(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47709,7 +47709,7 @@ func (c *Client) sendOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerp defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47830,7 +47830,7 @@ func (c *Client) sendOAuthAuthorizationsListAuthorizations(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47977,7 +47977,7 @@ func (c *Client) sendOAuthAuthorizationsListGrants(ctx context.Context, params O defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48117,7 +48117,7 @@ func (c *Client) sendOAuthAuthorizationsUpdateAuthorization(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48210,7 +48210,7 @@ func (c *Client) sendOrgsBlockUser(ctx context.Context, params OrgsBlockUserPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48322,7 +48322,7 @@ func (c *Client) sendOrgsCancelInvitation(ctx context.Context, params OrgsCancel defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48431,7 +48431,7 @@ func (c *Client) sendOrgsCheckBlockedUser(ctx context.Context, params OrgsCheckB defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48540,7 +48540,7 @@ func (c *Client) sendOrgsCheckMembershipForUser(ctx context.Context, params Orgs defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48649,7 +48649,7 @@ func (c *Client) sendOrgsCheckPublicMembershipForUser(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48762,7 +48762,7 @@ func (c *Client) sendOrgsConvertMemberToOutsideCollaborator(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48879,7 +48879,7 @@ func (c *Client) sendOrgsCreateInvitation(ctx context.Context, request OptOrgsCr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48973,7 +48973,7 @@ func (c *Client) sendOrgsCreateWebhook(ctx context.Context, request *OrgsCreateW defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49067,7 +49067,7 @@ func (c *Client) sendOrgsDeleteWebhook(ctx context.Context, params OrgsDeleteWeb defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49184,7 +49184,7 @@ func (c *Client) sendOrgsGet(ctx context.Context, params OrgsGetParams) (res Org defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49279,7 +49279,7 @@ func (c *Client) sendOrgsGetAuditLog(ctx context.Context, params OrgsGetAuditLog defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49493,7 +49493,7 @@ func (c *Client) sendOrgsGetMembershipForAuthenticatedUser(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49585,7 +49585,7 @@ func (c *Client) sendOrgsGetMembershipForUser(ctx context.Context, params OrgsGe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49696,7 +49696,7 @@ func (c *Client) sendOrgsGetWebhook(ctx context.Context, params OrgsGetWebhookPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49809,7 +49809,7 @@ func (c *Client) sendOrgsGetWebhookConfigForOrg(ctx context.Context, params Orgs defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49919,7 +49919,7 @@ func (c *Client) sendOrgsGetWebhookDelivery(ctx context.Context, params OrgsGetW defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50050,7 +50050,7 @@ func (c *Client) sendOrgsList(ctx context.Context, params OrgsListParams) (res O defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50160,7 +50160,7 @@ func (c *Client) sendOrgsListBlockedUsers(ctx context.Context, params OrgsListBl defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50252,7 +50252,7 @@ func (c *Client) sendOrgsListFailedInvitations(ctx context.Context, params OrgsL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50386,7 +50386,7 @@ func (c *Client) sendOrgsListForAuthenticatedUser(ctx context.Context, params Or defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50501,7 +50501,7 @@ func (c *Client) sendOrgsListForUser(ctx context.Context, params OrgsListForUser defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50631,7 +50631,7 @@ func (c *Client) sendOrgsListInvitationTeams(ctx context.Context, params OrgsLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50780,7 +50780,7 @@ func (c *Client) sendOrgsListMembers(ctx context.Context, params OrgsListMembers defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50943,7 +50943,7 @@ func (c *Client) sendOrgsListMembershipsForAuthenticatedUser(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51070,7 +51070,7 @@ func (c *Client) sendOrgsListOutsideCollaborators(ctx context.Context, params Or defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51219,7 +51219,7 @@ func (c *Client) sendOrgsListPendingInvitations(ctx context.Context, params Orgs defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51348,7 +51348,7 @@ func (c *Client) sendOrgsListPublicMembers(ctx context.Context, params OrgsListP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51484,7 +51484,7 @@ func (c *Client) sendOrgsListSamlSSOAuthorizations(ctx context.Context, params O defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51575,7 +51575,7 @@ func (c *Client) sendOrgsListWebhookDeliveries(ctx context.Context, params OrgsL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51723,7 +51723,7 @@ func (c *Client) sendOrgsListWebhooks(ctx context.Context, params OrgsListWebhoo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51853,7 +51853,7 @@ func (c *Client) sendOrgsPingWebhook(ctx context.Context, params OrgsPingWebhook defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51963,7 +51963,7 @@ func (c *Client) sendOrgsRedeliverWebhookDelivery(ctx context.Context, params Or defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52093,7 +52093,7 @@ func (c *Client) sendOrgsRemoveMember(ctx context.Context, params OrgsRemoveMemb defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52206,7 +52206,7 @@ func (c *Client) sendOrgsRemoveMembershipForUser(ctx context.Context, params Org defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52315,7 +52315,7 @@ func (c *Client) sendOrgsRemoveOutsideCollaborator(ctx context.Context, params O defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52424,7 +52424,7 @@ func (c *Client) sendOrgsRemovePublicMembershipForAuthenticatedUser(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52539,7 +52539,7 @@ func (c *Client) sendOrgsRemoveSamlSSOAuthorization(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52661,7 +52661,7 @@ func (c *Client) sendOrgsSetMembershipForUser(ctx context.Context, request OptOr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52777,7 +52777,7 @@ func (c *Client) sendOrgsSetPublicMembershipForAuthenticatedUser(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52886,7 +52886,7 @@ func (c *Client) sendOrgsUnblockUser(ctx context.Context, params OrgsUnblockUser defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52995,7 +52995,7 @@ func (c *Client) sendOrgsUpdateMembershipForAuthenticatedUser(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53092,7 +53092,7 @@ func (c *Client) sendOrgsUpdateWebhook(ctx context.Context, request OptOrgsUpdat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53208,7 +53208,7 @@ func (c *Client) sendOrgsUpdateWebhookConfigForOrg(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53326,7 +53326,7 @@ func (c *Client) sendPackagesDeletePackageForAuthenticatedUser(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53442,7 +53442,7 @@ func (c *Client) sendPackagesDeletePackageForOrg(ctx context.Context, params Pac defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53577,7 +53577,7 @@ func (c *Client) sendPackagesDeletePackageForUser(ctx context.Context, params Pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53710,7 +53710,7 @@ func (c *Client) sendPackagesDeletePackageVersionForAuthenticatedUser(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53845,7 +53845,7 @@ func (c *Client) sendPackagesDeletePackageVersionForOrg(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53999,7 +53999,7 @@ func (c *Client) sendPackagesDeletePackageVersionForUser(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54148,7 +54148,7 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByAuthenticated defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54315,7 +54315,7 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByOrg(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54501,7 +54501,7 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByUser(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54632,7 +54632,7 @@ func (c *Client) sendPackagesGetPackageForAuthenticatedUser(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54743,7 +54743,7 @@ func (c *Client) sendPackagesGetPackageForOrganization(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54873,7 +54873,7 @@ func (c *Client) sendPackagesGetPackageForUser(ctx context.Context, params Packa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55003,7 +55003,7 @@ func (c *Client) sendPackagesGetPackageVersionForAuthenticatedUser(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55133,7 +55133,7 @@ func (c *Client) sendPackagesGetPackageVersionForOrganization(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55283,7 +55283,7 @@ func (c *Client) sendPackagesGetPackageVersionForUser(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55432,7 +55432,7 @@ func (c *Client) sendPackagesListPackagesForAuthenticatedUser(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55541,7 +55541,7 @@ func (c *Client) sendPackagesListPackagesForOrganization(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55669,7 +55669,7 @@ func (c *Client) sendPackagesListPackagesForUser(ctx context.Context, params Pac defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55804,7 +55804,7 @@ func (c *Client) sendPackagesRestorePackageForAuthenticatedUser(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55946,7 +55946,7 @@ func (c *Client) sendPackagesRestorePackageForOrg(ctx context.Context, params Pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56107,7 +56107,7 @@ func (c *Client) sendPackagesRestorePackageForUser(ctx context.Context, params P defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56266,7 +56266,7 @@ func (c *Client) sendPackagesRestorePackageVersionForAuthenticatedUser(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56406,7 +56406,7 @@ func (c *Client) sendPackagesRestorePackageVersionForOrg(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56565,7 +56565,7 @@ func (c *Client) sendPackagesRestorePackageVersionForUser(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56714,7 +56714,7 @@ func (c *Client) sendProjectsAddCollaborator(ctx context.Context, request OptNil defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56826,7 +56826,7 @@ func (c *Client) sendProjectsCreateColumn(ctx context.Context, request *Projects defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56920,7 +56920,7 @@ func (c *Client) sendProjectsCreateForAuthenticatedUser(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56997,7 +56997,7 @@ func (c *Client) sendProjectsCreateForOrg(ctx context.Context, request *Projects defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57093,7 +57093,7 @@ func (c *Client) sendProjectsCreateForRepo(ctx context.Context, request *Project defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57206,7 +57206,7 @@ func (c *Client) sendProjectsDelete(ctx context.Context, params ProjectsDeletePa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57296,7 +57296,7 @@ func (c *Client) sendProjectsDeleteCard(ctx context.Context, params ProjectsDele defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57386,7 +57386,7 @@ func (c *Client) sendProjectsDeleteColumn(ctx context.Context, params ProjectsDe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57478,7 +57478,7 @@ func (c *Client) sendProjectsGet(ctx context.Context, params ProjectsGetParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57568,7 +57568,7 @@ func (c *Client) sendProjectsGetCard(ctx context.Context, params ProjectsGetCard defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57658,7 +57658,7 @@ func (c *Client) sendProjectsGetColumn(ctx context.Context, params ProjectsGetCo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57750,7 +57750,7 @@ func (c *Client) sendProjectsGetPermissionForUser(ctx context.Context, params Pr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57860,7 +57860,7 @@ func (c *Client) sendProjectsListCards(ctx context.Context, params ProjectsListC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58010,7 +58010,7 @@ func (c *Client) sendProjectsListCollaborators(ctx context.Context, params Proje defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58156,7 +58156,7 @@ func (c *Client) sendProjectsListColumns(ctx context.Context, params ProjectsLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58287,7 +58287,7 @@ func (c *Client) sendProjectsListForOrg(ctx context.Context, params ProjectsList defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58435,7 +58435,7 @@ func (c *Client) sendProjectsListForRepo(ctx context.Context, params ProjectsLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58600,7 +58600,7 @@ func (c *Client) sendProjectsListForUser(ctx context.Context, params ProjectsLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58746,7 +58746,7 @@ func (c *Client) sendProjectsMoveCard(ctx context.Context, request *ProjectsMove defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58840,7 +58840,7 @@ func (c *Client) sendProjectsMoveColumn(ctx context.Context, request *ProjectsMo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58935,7 +58935,7 @@ func (c *Client) sendProjectsRemoveCollaborator(ctx context.Context, params Proj defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59046,7 +59046,7 @@ func (c *Client) sendProjectsUpdate(ctx context.Context, request OptProjectsUpda defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59139,7 +59139,7 @@ func (c *Client) sendProjectsUpdateCard(ctx context.Context, request OptProjects defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59232,7 +59232,7 @@ func (c *Client) sendProjectsUpdateColumn(ctx context.Context, request *Projects defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59325,7 +59325,7 @@ func (c *Client) sendPullsCheckIfMerged(ctx context.Context, params PullsCheckIf defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59469,7 +59469,7 @@ func (c *Client) sendPullsCreate(ctx context.Context, request *PullsCreateReq, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59591,7 +59591,7 @@ func (c *Client) sendPullsCreateReplyForReviewComment(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59760,7 +59760,7 @@ func (c *Client) sendPullsCreateReview(ctx context.Context, request OptPullsCrea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59911,7 +59911,7 @@ func (c *Client) sendPullsCreateReviewComment(ctx context.Context, request *Pull defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60043,7 +60043,7 @@ func (c *Client) sendPullsDeletePendingReview(ctx context.Context, params PullsD defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60190,7 +60190,7 @@ func (c *Client) sendPullsDeleteReviewComment(ctx context.Context, params PullsD defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60320,7 +60320,7 @@ func (c *Client) sendPullsDismissReview(ctx context.Context, request *PullsDismi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60504,7 +60504,7 @@ func (c *Client) sendPullsGet(ctx context.Context, params PullsGetParams) (res P defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60632,7 +60632,7 @@ func (c *Client) sendPullsGetReview(ctx context.Context, params PullsGetReviewPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60779,7 +60779,7 @@ func (c *Client) sendPullsGetReviewComment(ctx context.Context, params PullsGetR defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60911,7 +60911,7 @@ func (c *Client) sendPullsList(ctx context.Context, params PullsListParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61144,7 +61144,7 @@ func (c *Client) sendPullsListCommentsForReview(ctx context.Context, params Pull defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61332,7 +61332,7 @@ func (c *Client) sendPullsListCommits(ctx context.Context, params PullsListCommi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61500,7 +61500,7 @@ func (c *Client) sendPullsListFiles(ctx context.Context, params PullsListFilesPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61667,7 +61667,7 @@ func (c *Client) sendPullsListRequestedReviewers(ctx context.Context, params Pul defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61835,7 +61835,7 @@ func (c *Client) sendPullsListReviewComments(ctx context.Context, params PullsLi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62054,7 +62054,7 @@ func (c *Client) sendPullsListReviewCommentsForRepo(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62253,7 +62253,7 @@ func (c *Client) sendPullsListReviews(ctx context.Context, params PullsListRevie defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62426,7 +62426,7 @@ func (c *Client) sendPullsMerge(ctx context.Context, request OptNilPullsMergeReq defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62558,7 +62558,7 @@ func (c *Client) sendPullsRemoveRequestedReviewers(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62690,7 +62690,7 @@ func (c *Client) sendPullsSubmitReview(ctx context.Context, request *PullsSubmit defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62848,7 +62848,7 @@ func (c *Client) sendPullsUpdate(ctx context.Context, request OptPullsUpdateReq, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62980,7 +62980,7 @@ func (c *Client) sendPullsUpdateBranch(ctx context.Context, request OptNilPullsU defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63112,7 +63112,7 @@ func (c *Client) sendPullsUpdateReview(ctx context.Context, request *PullsUpdate defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63262,7 +63262,7 @@ func (c *Client) sendPullsUpdateReviewComment(ctx context.Context, request *Pull defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63396,7 +63396,7 @@ func (c *Client) sendRateLimitGet(ctx context.Context) (res RateLimitGetRes, err defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63470,7 +63470,7 @@ func (c *Client) sendReactionsCreateForCommitComment(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63603,7 +63603,7 @@ func (c *Client) sendReactionsCreateForIssue(ctx context.Context, request *React defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63737,7 +63737,7 @@ func (c *Client) sendReactionsCreateForIssueComment(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63871,7 +63871,7 @@ func (c *Client) sendReactionsCreateForPullRequestReviewComment(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64004,7 +64004,7 @@ func (c *Client) sendReactionsCreateForRelease(ctx context.Context, request *Rea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64142,7 +64142,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionCommentInOrg(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64303,7 +64303,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionCommentLegacy(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64442,7 +64442,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionInOrg(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64585,7 +64585,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionLegacy(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64700,7 +64700,7 @@ func (c *Client) sendReactionsDeleteForCommitComment(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64849,7 +64849,7 @@ func (c *Client) sendReactionsDeleteForIssue(ctx context.Context, params Reactio defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64998,7 +64998,7 @@ func (c *Client) sendReactionsDeleteForIssueComment(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65148,7 +65148,7 @@ func (c *Client) sendReactionsDeleteForPullRequestComment(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65302,7 +65302,7 @@ func (c *Client) sendReactionsDeleteForTeamDiscussion(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65454,7 +65454,7 @@ func (c *Client) sendReactionsDeleteForTeamDiscussionComment(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65629,7 +65629,7 @@ func (c *Client) sendReactionsDeleteLegacy(ctx context.Context, params Reactions defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65719,7 +65719,7 @@ func (c *Client) sendReactionsListForCommitComment(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65903,7 +65903,7 @@ func (c *Client) sendReactionsListForIssue(ctx context.Context, params Reactions defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66087,7 +66087,7 @@ func (c *Client) sendReactionsListForIssueComment(ctx context.Context, params Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66272,7 +66272,7 @@ func (c *Client) sendReactionsListForPullRequestReviewComment(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66460,7 +66460,7 @@ func (c *Client) sendReactionsListForTeamDiscussionCommentInOrg(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66671,7 +66671,7 @@ func (c *Client) sendReactionsListForTeamDiscussionCommentLegacy(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66859,7 +66859,7 @@ func (c *Client) sendReactionsListForTeamDiscussionInOrg(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67051,7 +67051,7 @@ func (c *Client) sendReactionsListForTeamDiscussionLegacy(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67216,7 +67216,7 @@ func (c *Client) sendReposAcceptInvitation(ctx context.Context, params ReposAcce defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67320,7 +67320,7 @@ func (c *Client) sendReposAddAppAccessRestrictions(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67471,7 +67471,7 @@ func (c *Client) sendReposAddCollaborator(ctx context.Context, request OptReposA defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67606,7 +67606,7 @@ func (c *Client) sendReposAddStatusCheckContexts(ctx context.Context, request Op defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67752,7 +67752,7 @@ func (c *Client) sendReposAddTeamAccessRestrictions(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67897,7 +67897,7 @@ func (c *Client) sendReposAddUserAccessRestrictions(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68033,7 +68033,7 @@ func (c *Client) sendReposCheckCollaborator(ctx context.Context, params ReposChe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68164,7 +68164,7 @@ func (c *Client) sendReposCheckVulnerabilityAlerts(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68328,7 +68328,7 @@ func (c *Client) sendReposCompareCommits(ctx context.Context, params ReposCompar defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68494,7 +68494,7 @@ func (c *Client) sendReposCreateAutolink(ctx context.Context, request *ReposCrea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68614,7 +68614,7 @@ func (c *Client) sendReposCreateCommitComment(ctx context.Context, request *Repo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68752,7 +68752,7 @@ func (c *Client) sendReposCreateCommitSignatureProtection(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68883,7 +68883,7 @@ func (c *Client) sendReposCreateCommitStatus(ctx context.Context, request *Repos defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69014,7 +69014,7 @@ func (c *Client) sendReposCreateDeployKey(ctx context.Context, request *ReposCre defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69182,7 +69182,7 @@ func (c *Client) sendReposCreateDeployment(ctx context.Context, request *ReposCr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69297,7 +69297,7 @@ func (c *Client) sendReposCreateDeploymentStatus(ctx context.Context, request *R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69448,7 +69448,7 @@ func (c *Client) sendReposCreateDispatchEvent(ctx context.Context, request *Repo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69567,7 +69567,7 @@ func (c *Client) sendReposCreateForAuthenticatedUser(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69645,7 +69645,7 @@ func (c *Client) sendReposCreateFork(ctx context.Context, request OptNilReposCre defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69765,7 +69765,7 @@ func (c *Client) sendReposCreateInOrg(ctx context.Context, request *ReposCreateI defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69859,7 +69859,7 @@ func (c *Client) sendReposCreateOrUpdateFileContents(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69991,7 +69991,7 @@ func (c *Client) sendReposCreatePagesSite(ctx context.Context, request NilReposC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70111,7 +70111,7 @@ func (c *Client) sendReposCreateRelease(ctx context.Context, request *ReposCreat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70235,7 +70235,7 @@ func (c *Client) sendReposCreateUsingTemplate(ctx context.Context, request *Repo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70350,7 +70350,7 @@ func (c *Client) sendReposCreateWebhook(ctx context.Context, request OptNilRepos defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70463,7 +70463,7 @@ func (c *Client) sendReposDeclineInvitation(ctx context.Context, params ReposDec defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70556,7 +70556,7 @@ func (c *Client) sendReposDelete(ctx context.Context, params ReposDeleteParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70670,7 +70670,7 @@ func (c *Client) sendReposDeleteAccessRestrictions(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70805,7 +70805,7 @@ func (c *Client) sendReposDeleteAdminBranchProtection(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70934,7 +70934,7 @@ func (c *Client) sendReposDeleteAnEnvironment(ctx context.Context, params ReposD defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71063,7 +71063,7 @@ func (c *Client) sendReposDeleteAutolink(ctx context.Context, params ReposDelete defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71195,7 +71195,7 @@ func (c *Client) sendReposDeleteBranchProtection(ctx context.Context, params Rep defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71324,7 +71324,7 @@ func (c *Client) sendReposDeleteCommitComment(ctx context.Context, params ReposD defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71459,7 +71459,7 @@ func (c *Client) sendReposDeleteCommitSignatureProtection(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71589,7 +71589,7 @@ func (c *Client) sendReposDeleteDeployKey(ctx context.Context, params ReposDelet defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71725,7 +71725,7 @@ func (c *Client) sendReposDeleteDeployment(ctx context.Context, params ReposDele defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71860,7 +71860,7 @@ func (c *Client) sendReposDeleteFile(ctx context.Context, request *ReposDeleteFi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71991,7 +71991,7 @@ func (c *Client) sendReposDeleteInvitation(ctx context.Context, params ReposDele defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72119,7 +72119,7 @@ func (c *Client) sendReposDeletePagesSite(ctx context.Context, params ReposDelet defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72233,7 +72233,7 @@ func (c *Client) sendReposDeletePullRequestReviewProtection(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72362,7 +72362,7 @@ func (c *Client) sendReposDeleteRelease(ctx context.Context, params ReposDeleteR defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72490,7 +72490,7 @@ func (c *Client) sendReposDeleteReleaseAsset(ctx context.Context, params ReposDe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72618,7 +72618,7 @@ func (c *Client) sendReposDeleteWebhook(ctx context.Context, params ReposDeleteW defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72748,7 +72748,7 @@ func (c *Client) sendReposDisableAutomatedSecurityFixes(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72858,7 +72858,7 @@ func (c *Client) sendReposDisableLfsForRepo(ctx context.Context, params ReposDis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72971,7 +72971,7 @@ func (c *Client) sendReposDisableVulnerabilityAlerts(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73086,7 +73086,7 @@ func (c *Client) sendReposDownloadTarballArchive(ctx context.Context, params Rep defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73219,7 +73219,7 @@ func (c *Client) sendReposDownloadZipballArchive(ctx context.Context, params Rep defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73349,7 +73349,7 @@ func (c *Client) sendReposEnableAutomatedSecurityFixes(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73459,7 +73459,7 @@ func (c *Client) sendReposEnableLfsForRepo(ctx context.Context, params ReposEnab defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73572,7 +73572,7 @@ func (c *Client) sendReposEnableVulnerabilityAlerts(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73683,7 +73683,7 @@ func (c *Client) sendReposGet(ctx context.Context, params ReposGetParams) (res R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73799,7 +73799,7 @@ func (c *Client) sendReposGetAccessRestrictions(ctx context.Context, params Repo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73932,7 +73932,7 @@ func (c *Client) sendReposGetAdminBranchProtection(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74065,7 +74065,7 @@ func (c *Client) sendReposGetAllStatusCheckContexts(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74194,7 +74194,7 @@ func (c *Client) sendReposGetAllTopics(ctx context.Context, params ReposGetAllTo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74349,7 +74349,7 @@ func (c *Client) sendReposGetAppsWithAccessToProtectedBranch(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74479,7 +74479,7 @@ func (c *Client) sendReposGetAutolink(ctx context.Context, params ReposGetAutoli defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74607,7 +74607,7 @@ func (c *Client) sendReposGetBranch(ctx context.Context, params ReposGetBranchPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74739,7 +74739,7 @@ func (c *Client) sendReposGetBranchProtection(ctx context.Context, params ReposG defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74869,7 +74869,7 @@ func (c *Client) sendReposGetClones(ctx context.Context, params ReposGetClonesPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75000,7 +75000,7 @@ func (c *Client) sendReposGetCodeFrequencyStats(ctx context.Context, params Repo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75111,7 +75111,7 @@ func (c *Client) sendReposGetCollaboratorPermissionLevel(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75248,7 +75248,7 @@ func (c *Client) sendReposGetCombinedStatusForRef(ctx context.Context, params Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75461,7 +75461,7 @@ func (c *Client) sendReposGetCommit(ctx context.Context, params ReposGetCommitPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75628,7 +75628,7 @@ func (c *Client) sendReposGetCommitActivityStats(ctx context.Context, params Rep defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75738,7 +75738,7 @@ func (c *Client) sendReposGetCommitComment(ctx context.Context, params ReposGetC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75875,7 +75875,7 @@ func (c *Client) sendReposGetCommitSignatureProtection(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76013,7 +76013,7 @@ func (c *Client) sendReposGetCommunityProfileMetrics(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76128,7 +76128,7 @@ func (c *Client) sendReposGetContributorsStats(ctx context.Context, params Repos defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76238,7 +76238,7 @@ func (c *Client) sendReposGetDeployKey(ctx context.Context, params ReposGetDeplo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76366,7 +76366,7 @@ func (c *Client) sendReposGetDeployment(ctx context.Context, params ReposGetDepl defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76494,7 +76494,7 @@ func (c *Client) sendReposGetDeploymentStatus(ctx context.Context, params ReposG defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76641,7 +76641,7 @@ func (c *Client) sendReposGetLatestPagesBuild(ctx context.Context, params ReposG defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76754,7 +76754,7 @@ func (c *Client) sendReposGetLatestRelease(ctx context.Context, params ReposGetL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76864,7 +76864,7 @@ func (c *Client) sendReposGetPages(ctx context.Context, params ReposGetPagesPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76974,7 +76974,7 @@ func (c *Client) sendReposGetPagesBuild(ctx context.Context, params ReposGetPage defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77108,7 +77108,7 @@ func (c *Client) sendReposGetPagesHealthCheck(ctx context.Context, params ReposG defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77221,7 +77221,7 @@ func (c *Client) sendReposGetParticipationStats(ctx context.Context, params Repo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77335,7 +77335,7 @@ func (c *Client) sendReposGetPullRequestReviewProtection(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77469,7 +77469,7 @@ func (c *Client) sendReposGetPunchCardStats(ctx context.Context, params ReposGet defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77581,7 +77581,7 @@ func (c *Client) sendReposGetReadme(ctx context.Context, params ReposGetReadmePa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77714,7 +77714,7 @@ func (c *Client) sendReposGetReadmeInDirectory(ctx context.Context, params Repos defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77865,7 +77865,7 @@ func (c *Client) sendReposGetRelease(ctx context.Context, params ReposGetRelease defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77996,7 +77996,7 @@ func (c *Client) sendReposGetReleaseAsset(ctx context.Context, params ReposGetRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78124,7 +78124,7 @@ func (c *Client) sendReposGetReleaseByTag(ctx context.Context, params ReposGetRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78256,7 +78256,7 @@ func (c *Client) sendReposGetStatusChecksProtection(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78390,7 +78390,7 @@ func (c *Client) sendReposGetTeamsWithAccessToProtectedBranch(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78519,7 +78519,7 @@ func (c *Client) sendReposGetTopPaths(ctx context.Context, params ReposGetTopPat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78629,7 +78629,7 @@ func (c *Client) sendReposGetTopReferrers(ctx context.Context, params ReposGetTo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78744,7 +78744,7 @@ func (c *Client) sendReposGetUsersWithAccessToProtectedBranch(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78874,7 +78874,7 @@ func (c *Client) sendReposGetViews(ctx context.Context, params ReposGetViewsPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79007,7 +79007,7 @@ func (c *Client) sendReposGetWebhook(ctx context.Context, params ReposGetWebhook defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79139,7 +79139,7 @@ func (c *Client) sendReposGetWebhookConfigForRepo(ctx context.Context, params Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79268,7 +79268,7 @@ func (c *Client) sendReposGetWebhookDelivery(ctx context.Context, params ReposGe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79416,7 +79416,7 @@ func (c *Client) sendReposListAutolinks(ctx context.Context, params ReposListAut defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79547,7 +79547,7 @@ func (c *Client) sendReposListBranches(ctx context.Context, params ReposListBran defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79717,7 +79717,7 @@ func (c *Client) sendReposListBranchesForHeadCommit(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79850,7 +79850,7 @@ func (c *Client) sendReposListCollaborators(ctx context.Context, params ReposLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80015,7 +80015,7 @@ func (c *Client) sendReposListCommentsForCommit(ctx context.Context, params Repo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80185,7 +80185,7 @@ func (c *Client) sendReposListCommitCommentsForRepo(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80336,7 +80336,7 @@ func (c *Client) sendReposListCommitStatusesForRef(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80534,7 +80534,7 @@ func (c *Client) sendReposListCommits(ctx context.Context, params ReposListCommi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80773,7 +80773,7 @@ func (c *Client) sendReposListContributors(ctx context.Context, params ReposList defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80938,7 +80938,7 @@ func (c *Client) sendReposListDeployKeys(ctx context.Context, params ReposListDe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -81086,7 +81086,7 @@ func (c *Client) sendReposListDeploymentStatuses(ctx context.Context, params Rep defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -81253,7 +81253,7 @@ func (c *Client) sendReposListDeployments(ctx context.Context, params ReposListD defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -81472,7 +81472,7 @@ func (c *Client) sendReposListForAuthenticatedUser(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -81701,7 +81701,7 @@ func (c *Client) sendReposListForOrg(ctx context.Context, params ReposListForOrg defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -81882,7 +81882,7 @@ func (c *Client) sendReposListForUser(ctx context.Context, params ReposListForUs defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82062,7 +82062,7 @@ func (c *Client) sendReposListForks(ctx context.Context, params ReposListForksPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82228,7 +82228,7 @@ func (c *Client) sendReposListInvitations(ctx context.Context, params ReposListI defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82377,7 +82377,7 @@ func (c *Client) sendReposListInvitationsForAuthenticatedUser(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82488,7 +82488,7 @@ func (c *Client) sendReposListLanguages(ctx context.Context, params ReposListLan defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82598,7 +82598,7 @@ func (c *Client) sendReposListPagesBuilds(ctx context.Context, params ReposListP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82752,7 +82752,7 @@ func (c *Client) sendReposListPublic(ctx context.Context, params ReposListPublic defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82850,7 +82850,7 @@ func (c *Client) sendReposListPullRequestsAssociatedWithCommit(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -83017,7 +83017,7 @@ func (c *Client) sendReposListReleaseAssets(ctx context.Context, params ReposLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -83188,7 +83188,7 @@ func (c *Client) sendReposListReleases(ctx context.Context, params ReposListRele defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -83336,7 +83336,7 @@ func (c *Client) sendReposListTags(ctx context.Context, params ReposListTagsPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -83484,7 +83484,7 @@ func (c *Client) sendReposListTeams(ctx context.Context, params ReposListTeamsPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -83632,7 +83632,7 @@ func (c *Client) sendReposListWebhookDeliveries(ctx context.Context, params Repo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -83799,7 +83799,7 @@ func (c *Client) sendReposListWebhooks(ctx context.Context, params ReposListWebh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -83947,7 +83947,7 @@ func (c *Client) sendReposMerge(ctx context.Context, request *ReposMergeReq, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -84061,7 +84061,7 @@ func (c *Client) sendReposMergeUpstream(ctx context.Context, request *ReposMerge defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -84175,7 +84175,7 @@ func (c *Client) sendReposPingWebhook(ctx context.Context, params ReposPingWebho defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -84304,7 +84304,7 @@ func (c *Client) sendReposRedeliverWebhookDelivery(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -84466,7 +84466,7 @@ func (c *Client) sendReposRemoveAppAccessRestrictions(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -84598,7 +84598,7 @@ func (c *Client) sendReposRemoveCollaborator(ctx context.Context, params ReposRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -84730,7 +84730,7 @@ func (c *Client) sendReposRemoveStatusCheckContexts(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -84866,7 +84866,7 @@ func (c *Client) sendReposRemoveStatusCheckProtection(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85009,7 +85009,7 @@ func (c *Client) sendReposRemoveTeamAccessRestrictions(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85154,7 +85154,7 @@ func (c *Client) sendReposRemoveUserAccessRestrictions(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85298,7 +85298,7 @@ func (c *Client) sendReposRenameBranch(ctx context.Context, request OptReposRena defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85430,7 +85430,7 @@ func (c *Client) sendReposReplaceAllTopics(ctx context.Context, request *ReposRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85548,7 +85548,7 @@ func (c *Client) sendReposRequestPagesBuild(ctx context.Context, params ReposReq defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85664,7 +85664,7 @@ func (c *Client) sendReposSetAdminBranchProtection(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85809,7 +85809,7 @@ func (c *Client) sendReposSetAppAccessRestrictions(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85945,7 +85945,7 @@ func (c *Client) sendReposSetStatusCheckContexts(ctx context.Context, request Op defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86092,7 +86092,7 @@ func (c *Client) sendReposSetTeamAccessRestrictions(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86238,7 +86238,7 @@ func (c *Client) sendReposSetUserAccessRestrictions(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86373,7 +86373,7 @@ func (c *Client) sendReposTestPushWebhook(ctx context.Context, params ReposTestP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86506,7 +86506,7 @@ func (c *Client) sendReposTransfer(ctx context.Context, request *ReposTransferRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86620,7 +86620,7 @@ func (c *Client) sendReposUpdate(ctx context.Context, request OptReposUpdateReq, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86739,7 +86739,7 @@ func (c *Client) sendReposUpdateBranchProtection(ctx context.Context, request *R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86871,7 +86871,7 @@ func (c *Client) sendReposUpdateCommitComment(ctx context.Context, request *Repo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87002,7 +87002,7 @@ func (c *Client) sendReposUpdateInvitation(ctx context.Context, request OptRepos defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87140,7 +87140,7 @@ func (c *Client) sendReposUpdatePullRequestReviewProtection(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87272,7 +87272,7 @@ func (c *Client) sendReposUpdateRelease(ctx context.Context, request OptReposUpd defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87403,7 +87403,7 @@ func (c *Client) sendReposUpdateReleaseAsset(ctx context.Context, request OptRep defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87540,7 +87540,7 @@ func (c *Client) sendReposUpdateStatusCheckProtection(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87675,7 +87675,7 @@ func (c *Client) sendReposUpdateWebhook(ctx context.Context, request OptReposUpd defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87810,7 +87810,7 @@ func (c *Client) sendReposUpdateWebhookConfigForRepo(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87967,7 +87967,7 @@ func (c *Client) sendReposUploadReleaseAsset(ctx context.Context, request *Repos defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -88134,7 +88134,7 @@ func (c *Client) sendScimDeleteUserFromOrg(ctx context.Context, params ScimDelet defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -88262,7 +88262,7 @@ func (c *Client) sendSearchCode(ctx context.Context, params SearchCodeParams) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -88430,7 +88430,7 @@ func (c *Client) sendSearchCommits(ctx context.Context, params SearchCommitsPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -88610,7 +88610,7 @@ func (c *Client) sendSearchIssuesAndPullRequests(ctx context.Context, params Sea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -88777,7 +88777,7 @@ func (c *Client) sendSearchLabels(ctx context.Context, params SearchLabelsParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -88964,7 +88964,7 @@ func (c *Client) sendSearchRepos(ctx context.Context, params SearchReposParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -89135,7 +89135,7 @@ func (c *Client) sendSearchTopics(ctx context.Context, params SearchTopicsParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -89270,7 +89270,7 @@ func (c *Client) sendSearchUsers(ctx context.Context, params SearchUsersParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -89431,7 +89431,7 @@ func (c *Client) sendSecretScanningGetAlert(ctx context.Context, params SecretSc defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -89566,7 +89566,7 @@ func (c *Client) sendSecretScanningListAlertsForOrg(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -89732,7 +89732,7 @@ func (c *Client) sendSecretScanningListAlertsForRepo(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -89917,7 +89917,7 @@ func (c *Client) sendSecretScanningUpdateAlert(ctx context.Context, request *Sec defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -90072,7 +90072,7 @@ func (c *Client) sendTeamsAddMemberLegacy(ctx context.Context, params TeamsAddMe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -90202,7 +90202,7 @@ func (c *Client) sendTeamsAddOrUpdateMembershipForUserInOrg(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -90359,7 +90359,7 @@ func (c *Client) sendTeamsAddOrUpdateMembershipForUserLegacy(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -90475,7 +90475,7 @@ func (c *Client) sendTeamsAddOrUpdateProjectPermissionsInOrg(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -90614,7 +90614,7 @@ func (c *Client) sendTeamsAddOrUpdateProjectPermissionsLegacy(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -90737,7 +90737,7 @@ func (c *Client) sendTeamsAddOrUpdateRepoPermissionsInOrg(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -90900,7 +90900,7 @@ func (c *Client) sendTeamsAddOrUpdateRepoPermissionsLegacy(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91034,7 +91034,7 @@ func (c *Client) sendTeamsCheckPermissionsForProjectInOrg(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91169,7 +91169,7 @@ func (c *Client) sendTeamsCheckPermissionsForProjectLegacy(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91286,7 +91286,7 @@ func (c *Client) sendTeamsCheckPermissionsForRepoInOrg(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91442,7 +91442,7 @@ func (c *Client) sendTeamsCheckPermissionsForRepoLegacy(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91577,7 +91577,7 @@ func (c *Client) sendTeamsCreate(ctx context.Context, request *TeamsCreateReq, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91681,7 +91681,7 @@ func (c *Client) sendTeamsCreateDiscussionCommentInOrg(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91826,7 +91826,7 @@ func (c *Client) sendTeamsCreateDiscussionCommentLegacy(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91949,7 +91949,7 @@ func (c *Client) sendTeamsCreateDiscussionInOrg(ctx context.Context, request *Te defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92075,7 +92075,7 @@ func (c *Client) sendTeamsCreateDiscussionLegacy(ctx context.Context, request *T defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92176,7 +92176,7 @@ func (c *Client) sendTeamsCreateOrUpdateIdpGroupConnectionsInOrg(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92300,7 +92300,7 @@ func (c *Client) sendTeamsCreateOrUpdateIdpGroupConnectionsLegacy(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92397,7 +92397,7 @@ func (c *Client) sendTeamsDeleteDiscussionCommentInOrg(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92550,7 +92550,7 @@ func (c *Client) sendTeamsDeleteDiscussionCommentLegacy(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92681,7 +92681,7 @@ func (c *Client) sendTeamsDeleteDiscussionInOrg(ctx context.Context, params Team defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92815,7 +92815,7 @@ func (c *Client) sendTeamsDeleteDiscussionLegacy(ctx context.Context, params Tea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92928,7 +92928,7 @@ func (c *Client) sendTeamsDeleteInOrg(ctx context.Context, params TeamsDeleteInO defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93044,7 +93044,7 @@ func (c *Client) sendTeamsDeleteLegacy(ctx context.Context, params TeamsDeleteLe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93136,7 +93136,7 @@ func (c *Client) sendTeamsGetByName(ctx context.Context, params TeamsGetByNamePa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93248,7 +93248,7 @@ func (c *Client) sendTeamsGetDiscussionCommentInOrg(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93401,7 +93401,7 @@ func (c *Client) sendTeamsGetDiscussionCommentLegacy(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93532,7 +93532,7 @@ func (c *Client) sendTeamsGetDiscussionInOrg(ctx context.Context, params TeamsGe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93666,7 +93666,7 @@ func (c *Client) sendTeamsGetDiscussionLegacy(ctx context.Context, params TeamsG defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93779,7 +93779,7 @@ func (c *Client) sendTeamsGetLegacy(ctx context.Context, params TeamsGetLegacyPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93875,7 +93875,7 @@ func (c *Client) sendTeamsGetMemberLegacy(ctx context.Context, params TeamsGetMe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93991,7 +93991,7 @@ func (c *Client) sendTeamsGetMembershipForUserInOrg(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -94129,7 +94129,7 @@ func (c *Client) sendTeamsGetMembershipForUserLegacy(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -94238,7 +94238,7 @@ func (c *Client) sendTeamsList(ctx context.Context, params TeamsListParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -94369,7 +94369,7 @@ func (c *Client) sendTeamsListChildInOrg(ctx context.Context, params TeamsListCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -94521,7 +94521,7 @@ func (c *Client) sendTeamsListChildLegacy(ctx context.Context, params TeamsListC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -94653,7 +94653,7 @@ func (c *Client) sendTeamsListDiscussionCommentsInOrg(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -94843,7 +94843,7 @@ func (c *Client) sendTeamsListDiscussionCommentsLegacy(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95011,7 +95011,7 @@ func (c *Client) sendTeamsListDiscussionsInOrg(ctx context.Context, params Teams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95199,7 +95199,7 @@ func (c *Client) sendTeamsListDiscussionsLegacy(ctx context.Context, params Team defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95348,7 +95348,7 @@ func (c *Client) sendTeamsListForAuthenticatedUser(ctx context.Context, params T defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95466,7 +95466,7 @@ func (c *Client) sendTeamsListIdpGroupsForLegacy(ctx context.Context, params Tea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95563,7 +95563,7 @@ func (c *Client) sendTeamsListIdpGroupsForOrg(ctx context.Context, params TeamsL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95697,7 +95697,7 @@ func (c *Client) sendTeamsListIdpGroupsInOrg(ctx context.Context, params TeamsLi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95808,7 +95808,7 @@ func (c *Client) sendTeamsListMembersInOrg(ctx context.Context, params TeamsList defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95978,7 +95978,7 @@ func (c *Client) sendTeamsListMembersLegacy(ctx context.Context, params TeamsLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -96129,7 +96129,7 @@ func (c *Client) sendTeamsListPendingInvitationsInOrg(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -96285,7 +96285,7 @@ func (c *Client) sendTeamsListPendingInvitationsLegacy(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -96416,7 +96416,7 @@ func (c *Client) sendTeamsListProjectsInOrg(ctx context.Context, params TeamsLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -96569,7 +96569,7 @@ func (c *Client) sendTeamsListProjectsLegacy(ctx context.Context, params TeamsLi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -96700,7 +96700,7 @@ func (c *Client) sendTeamsListReposInOrg(ctx context.Context, params TeamsListRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -96852,7 +96852,7 @@ func (c *Client) sendTeamsListReposLegacy(ctx context.Context, params TeamsListR defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97001,7 +97001,7 @@ func (c *Client) sendTeamsRemoveMemberLegacy(ctx context.Context, params TeamsRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97124,7 +97124,7 @@ func (c *Client) sendTeamsRemoveMembershipForUserInOrg(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97269,7 +97269,7 @@ func (c *Client) sendTeamsRemoveMembershipForUserLegacy(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97383,7 +97383,7 @@ func (c *Client) sendTeamsRemoveProjectInOrg(ctx context.Context, params TeamsRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97519,7 +97519,7 @@ func (c *Client) sendTeamsRemoveProjectLegacy(ctx context.Context, params TeamsR defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97633,7 +97633,7 @@ func (c *Client) sendTeamsRemoveRepoInOrg(ctx context.Context, params TeamsRemov defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97788,7 +97788,7 @@ func (c *Client) sendTeamsRemoveRepoLegacy(ctx context.Context, params TeamsRemo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97919,7 +97919,7 @@ func (c *Client) sendTeamsUpdateDiscussionCommentInOrg(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98075,7 +98075,7 @@ func (c *Client) sendTeamsUpdateDiscussionCommentLegacy(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98210,7 +98210,7 @@ func (c *Client) sendTeamsUpdateDiscussionInOrg(ctx context.Context, request Opt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98348,7 +98348,7 @@ func (c *Client) sendTeamsUpdateDiscussionLegacy(ctx context.Context, request Op defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98462,7 +98462,7 @@ func (c *Client) sendTeamsUpdateInOrg(ctx context.Context, request OptTeamsUpdat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98580,7 +98580,7 @@ func (c *Client) sendTeamsUpdateLegacy(ctx context.Context, request *TeamsUpdate defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98673,7 +98673,7 @@ func (c *Client) sendUsersAddEmailForAuthenticated(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98748,7 +98748,7 @@ func (c *Client) sendUsersBlock(ctx context.Context, params UsersBlockParams) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98838,7 +98838,7 @@ func (c *Client) sendUsersCheckBlocked(ctx context.Context, params UsersCheckBlo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98928,7 +98928,7 @@ func (c *Client) sendUsersCheckFollowingForUser(ctx context.Context, params User defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99037,7 +99037,7 @@ func (c *Client) sendUsersCheckPersonIsFollowedByAuthenticated(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99129,7 +99129,7 @@ func (c *Client) sendUsersCreateGpgKeyForAuthenticated(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99206,7 +99206,7 @@ func (c *Client) sendUsersCreatePublicSSHKeyForAuthenticated(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99281,7 +99281,7 @@ func (c *Client) sendUsersDeleteEmailForAuthenticated(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99358,7 +99358,7 @@ func (c *Client) sendUsersDeleteGpgKeyForAuthenticated(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99450,7 +99450,7 @@ func (c *Client) sendUsersDeletePublicSSHKeyForAuthenticated(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99544,7 +99544,7 @@ func (c *Client) sendUsersFollow(ctx context.Context, params UsersFollowParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99637,7 +99637,7 @@ func (c *Client) sendUsersGetAuthenticated(ctx context.Context) (res UsersGetAut defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99723,7 +99723,7 @@ func (c *Client) sendUsersGetByUsername(ctx context.Context, params UsersGetByUs defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99822,7 +99822,7 @@ func (c *Client) sendUsersGetContextForUser(ctx context.Context, params UsersGet defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99953,7 +99953,7 @@ func (c *Client) sendUsersGetGpgKeyForAuthenticated(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100045,7 +100045,7 @@ func (c *Client) sendUsersGetPublicSSHKeyForAuthenticated(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100139,7 +100139,7 @@ func (c *Client) sendUsersList(ctx context.Context, params UsersListParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100249,7 +100249,7 @@ func (c *Client) sendUsersListBlockedByAuthenticated(ctx context.Context) (res U defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100322,7 +100322,7 @@ func (c *Client) sendUsersListEmailsForAuthenticated(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100432,7 +100432,7 @@ func (c *Client) sendUsersListFollowedByAuthenticated(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100542,7 +100542,7 @@ func (c *Client) sendUsersListFollowersForAuthenticatedUser(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100652,7 +100652,7 @@ func (c *Client) sendUsersListFollowersForUser(ctx context.Context, params Users defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100781,7 +100781,7 @@ func (c *Client) sendUsersListFollowingForUser(ctx context.Context, params Users defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100912,7 +100912,7 @@ func (c *Client) sendUsersListGpgKeysForAuthenticated(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101022,7 +101022,7 @@ func (c *Client) sendUsersListGpgKeysForUser(ctx context.Context, params UsersLi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101154,7 +101154,7 @@ func (c *Client) sendUsersListPublicEmailsForAuthenticated(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101264,7 +101264,7 @@ func (c *Client) sendUsersListPublicKeysForUser(ctx context.Context, params User defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101395,7 +101395,7 @@ func (c *Client) sendUsersListPublicSSHKeysForAuthenticated(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101505,7 +101505,7 @@ func (c *Client) sendUsersSetPrimaryEmailVisibilityForAuthenticated(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101580,7 +101580,7 @@ func (c *Client) sendUsersUnblock(ctx context.Context, params UsersUnblockParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101671,7 +101671,7 @@ func (c *Client) sendUsersUnfollow(ctx context.Context, params UsersUnfollowPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101763,7 +101763,7 @@ func (c *Client) sendUsersUpdateAuthenticated(ctx context.Context, request OptUs defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_github/oas_handlers_gen.go b/examples/ex_github/oas_handlers_gen.go index 1e775be7a..44ff61630 100644 --- a/examples/ex_github/oas_handlers_gen.go +++ b/examples/ex_github/oas_handlers_gen.go @@ -82,7 +82,7 @@ func (s *Server) handleActionsAddRepoAccessToSelfHostedRunnerGroupInOrgRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93,12 +93,8 @@ func (s *Server) handleActionsAddRepoAccessToSelfHostedRunnerGroupInOrgRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -236,7 +232,7 @@ func (s *Server) handleActionsAddSelectedRepoToOrgSecretRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -247,12 +243,8 @@ func (s *Server) handleActionsAddSelectedRepoToOrgSecretRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -391,7 +383,7 @@ func (s *Server) handleActionsAddSelfHostedRunnerToGroupForOrgRequest(args [3]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -402,12 +394,8 @@ func (s *Server) handleActionsAddSelfHostedRunnerToGroupForOrgRequest(args [3]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -545,7 +533,7 @@ func (s *Server) handleActionsApproveWorkflowRunRequest(args [3]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -556,12 +544,8 @@ func (s *Server) handleActionsApproveWorkflowRunRequest(args [3]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -697,7 +681,7 @@ func (s *Server) handleActionsCancelWorkflowRunRequest(args [3]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -708,12 +692,8 @@ func (s *Server) handleActionsCancelWorkflowRunRequest(args [3]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -900,7 +880,7 @@ func (s *Server) handleActionsCreateOrUpdateEnvironmentSecretRequest(args [3]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -911,12 +891,8 @@ func (s *Server) handleActionsCreateOrUpdateEnvironmentSecretRequest(args [3]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1118,7 +1094,7 @@ func (s *Server) handleActionsCreateOrUpdateOrgSecretRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1129,12 +1105,8 @@ func (s *Server) handleActionsCreateOrUpdateOrgSecretRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1332,7 +1304,7 @@ func (s *Server) handleActionsCreateOrUpdateRepoSecretRequest(args [3]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1343,12 +1315,8 @@ func (s *Server) handleActionsCreateOrUpdateRepoSecretRequest(args [3]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1504,7 +1472,7 @@ func (s *Server) handleActionsCreateRegistrationTokenForOrgRequest(args [1]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1515,12 +1483,8 @@ func (s *Server) handleActionsCreateRegistrationTokenForOrgRequest(args [1]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1654,7 +1618,7 @@ func (s *Server) handleActionsCreateRegistrationTokenForRepoRequest(args [2]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1665,12 +1629,8 @@ func (s *Server) handleActionsCreateRegistrationTokenForRepoRequest(args [2]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1809,7 +1769,7 @@ func (s *Server) handleActionsCreateRemoveTokenForOrgRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1820,12 +1780,8 @@ func (s *Server) handleActionsCreateRemoveTokenForOrgRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1959,7 +1915,7 @@ func (s *Server) handleActionsCreateRemoveTokenForRepoRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1970,12 +1926,8 @@ func (s *Server) handleActionsCreateRemoveTokenForRepoRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2109,7 +2061,7 @@ func (s *Server) handleActionsCreateSelfHostedRunnerGroupForOrgRequest(args [1]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2120,12 +2072,8 @@ func (s *Server) handleActionsCreateSelfHostedRunnerGroupForOrgRequest(args [1]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2268,7 +2216,7 @@ func (s *Server) handleActionsDeleteArtifactRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2279,12 +2227,8 @@ func (s *Server) handleActionsDeleteArtifactRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2420,7 +2364,7 @@ func (s *Server) handleActionsDeleteEnvironmentSecretRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2431,12 +2375,8 @@ func (s *Server) handleActionsDeleteEnvironmentSecretRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2572,7 +2512,7 @@ func (s *Server) handleActionsDeleteOrgSecretRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2583,12 +2523,8 @@ func (s *Server) handleActionsDeleteOrgSecretRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2720,7 +2656,7 @@ func (s *Server) handleActionsDeleteRepoSecretRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2731,12 +2667,8 @@ func (s *Server) handleActionsDeleteRepoSecretRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2872,7 +2804,7 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerFromOrgRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2883,12 +2815,8 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerFromOrgRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3021,7 +2949,7 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerFromRepoRequest(args [3]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3032,12 +2960,8 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerFromRepoRequest(args [3]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3175,7 +3099,7 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerGroupFromOrgRequest(args [2] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3186,12 +3110,8 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerGroupFromOrgRequest(args [2] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3325,7 +3245,7 @@ func (s *Server) handleActionsDeleteWorkflowRunRequest(args [3]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3336,12 +3256,8 @@ func (s *Server) handleActionsDeleteWorkflowRunRequest(args [3]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3477,7 +3393,7 @@ func (s *Server) handleActionsDeleteWorkflowRunLogsRequest(args [3]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3488,12 +3404,8 @@ func (s *Server) handleActionsDeleteWorkflowRunLogsRequest(args [3]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3632,7 +3544,7 @@ func (s *Server) handleActionsDisableSelectedRepositoryGithubActionsOrganization s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3643,12 +3555,8 @@ func (s *Server) handleActionsDisableSelectedRepositoryGithubActionsOrganization // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3784,7 +3692,7 @@ func (s *Server) handleActionsDownloadArtifactRequest(args [4]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3795,12 +3703,8 @@ func (s *Server) handleActionsDownloadArtifactRequest(args [4]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3946,7 +3850,7 @@ func (s *Server) handleActionsDownloadJobLogsForWorkflowRunRequest(args [3]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3957,12 +3861,8 @@ func (s *Server) handleActionsDownloadJobLogsForWorkflowRunRequest(args [3]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4102,7 +4002,7 @@ func (s *Server) handleActionsDownloadWorkflowRunLogsRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4113,12 +4013,8 @@ func (s *Server) handleActionsDownloadWorkflowRunLogsRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4257,7 +4153,7 @@ func (s *Server) handleActionsEnableSelectedRepositoryGithubActionsOrganizationR s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4268,12 +4164,8 @@ func (s *Server) handleActionsEnableSelectedRepositoryGithubActionsOrganizationR // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4408,7 +4300,7 @@ func (s *Server) handleActionsGetAllowedActionsOrganizationRequest(args [1]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4419,12 +4311,8 @@ func (s *Server) handleActionsGetAllowedActionsOrganizationRequest(args [1]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4555,7 +4443,7 @@ func (s *Server) handleActionsGetAllowedActionsRepositoryRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4566,12 +4454,8 @@ func (s *Server) handleActionsGetAllowedActionsRepositoryRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4703,7 +4587,7 @@ func (s *Server) handleActionsGetArtifactRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4714,12 +4598,8 @@ func (s *Server) handleActionsGetArtifactRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4856,7 +4736,7 @@ func (s *Server) handleActionsGetEnvironmentPublicKeyRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4867,12 +4747,8 @@ func (s *Server) handleActionsGetEnvironmentPublicKeyRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5004,7 +4880,7 @@ func (s *Server) handleActionsGetEnvironmentSecretRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5015,12 +4891,8 @@ func (s *Server) handleActionsGetEnvironmentSecretRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5156,7 +5028,7 @@ func (s *Server) handleActionsGetGithubActionsPermissionsOrganizationRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5167,12 +5039,8 @@ func (s *Server) handleActionsGetGithubActionsPermissionsOrganizationRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5301,7 +5169,7 @@ func (s *Server) handleActionsGetGithubActionsPermissionsRepositoryRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5312,12 +5180,8 @@ func (s *Server) handleActionsGetGithubActionsPermissionsRepositoryRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5449,7 +5313,7 @@ func (s *Server) handleActionsGetJobForWorkflowRunRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5460,12 +5324,8 @@ func (s *Server) handleActionsGetJobForWorkflowRunRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5602,7 +5462,7 @@ func (s *Server) handleActionsGetOrgPublicKeyRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5613,12 +5473,8 @@ func (s *Server) handleActionsGetOrgPublicKeyRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5746,7 +5602,7 @@ func (s *Server) handleActionsGetOrgSecretRequest(args [2]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5757,12 +5613,8 @@ func (s *Server) handleActionsGetOrgSecretRequest(args [2]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5895,7 +5747,7 @@ func (s *Server) handleActionsGetRepoPublicKeyRequest(args [2]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5906,12 +5758,8 @@ func (s *Server) handleActionsGetRepoPublicKeyRequest(args [2]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6043,7 +5891,7 @@ func (s *Server) handleActionsGetRepoSecretRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6054,12 +5902,8 @@ func (s *Server) handleActionsGetRepoSecretRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6195,7 +6039,7 @@ func (s *Server) handleActionsGetReviewsForRunRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6206,12 +6050,8 @@ func (s *Server) handleActionsGetReviewsForRunRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6346,7 +6186,7 @@ func (s *Server) handleActionsGetSelfHostedRunnerForOrgRequest(args [2]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6357,12 +6197,8 @@ func (s *Server) handleActionsGetSelfHostedRunnerForOrgRequest(args [2]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6494,7 +6330,7 @@ func (s *Server) handleActionsGetSelfHostedRunnerForRepoRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6505,12 +6341,8 @@ func (s *Server) handleActionsGetSelfHostedRunnerForRepoRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6648,7 +6480,7 @@ func (s *Server) handleActionsGetSelfHostedRunnerGroupForOrgRequest(args [2]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6659,12 +6491,8 @@ func (s *Server) handleActionsGetSelfHostedRunnerGroupForOrgRequest(args [2]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6796,7 +6624,7 @@ func (s *Server) handleActionsGetWorkflowRunRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6807,12 +6635,8 @@ func (s *Server) handleActionsGetWorkflowRunRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6955,7 +6779,7 @@ func (s *Server) handleActionsGetWorkflowRunUsageRequest(args [3]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6966,12 +6790,8 @@ func (s *Server) handleActionsGetWorkflowRunUsageRequest(args [3]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7107,7 +6927,7 @@ func (s *Server) handleActionsListArtifactsForRepoRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7118,12 +6938,8 @@ func (s *Server) handleActionsListArtifactsForRepoRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7263,7 +7079,7 @@ func (s *Server) handleActionsListEnvironmentSecretsRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7274,12 +7090,8 @@ func (s *Server) handleActionsListEnvironmentSecretsRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7421,7 +7233,7 @@ func (s *Server) handleActionsListJobsForWorkflowRunRequest(args [3]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7432,12 +7244,8 @@ func (s *Server) handleActionsListJobsForWorkflowRunRequest(args [3]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7585,7 +7393,7 @@ func (s *Server) handleActionsListOrgSecretsRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7596,12 +7404,8 @@ func (s *Server) handleActionsListOrgSecretsRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7739,7 +7543,7 @@ func (s *Server) handleActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7750,12 +7554,8 @@ func (s *Server) handleActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7895,7 +7695,7 @@ func (s *Server) handleActionsListRepoSecretsRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7906,12 +7706,8 @@ func (s *Server) handleActionsListRepoSecretsRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8051,7 +7847,7 @@ func (s *Server) handleActionsListRepoWorkflowsRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8062,12 +7858,8 @@ func (s *Server) handleActionsListRepoWorkflowsRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8206,7 +7998,7 @@ func (s *Server) handleActionsListRunnerApplicationsForOrgRequest(args [1]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8217,12 +8009,8 @@ func (s *Server) handleActionsListRunnerApplicationsForOrgRequest(args [1]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8349,7 +8137,7 @@ func (s *Server) handleActionsListRunnerApplicationsForRepoRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8360,12 +8148,8 @@ func (s *Server) handleActionsListRunnerApplicationsForRepoRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8498,7 +8282,7 @@ func (s *Server) handleActionsListSelectedReposForOrgSecretRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8509,12 +8293,8 @@ func (s *Server) handleActionsListSelectedReposForOrgSecretRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8657,7 +8437,7 @@ func (s *Server) handleActionsListSelectedRepositoriesEnabledGithubActionsOrgani s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8668,12 +8448,8 @@ func (s *Server) handleActionsListSelectedRepositoriesEnabledGithubActionsOrgani // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8811,7 +8587,7 @@ func (s *Server) handleActionsListSelfHostedRunnerGroupsForOrgRequest(args [1]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8822,12 +8598,8 @@ func (s *Server) handleActionsListSelfHostedRunnerGroupsForOrgRequest(args [1]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8962,7 +8734,7 @@ func (s *Server) handleActionsListSelfHostedRunnersForOrgRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8973,12 +8745,8 @@ func (s *Server) handleActionsListSelfHostedRunnersForOrgRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9113,7 +8881,7 @@ func (s *Server) handleActionsListSelfHostedRunnersForRepoRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9124,12 +8892,8 @@ func (s *Server) handleActionsListSelfHostedRunnersForRepoRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9271,7 +9035,7 @@ func (s *Server) handleActionsListSelfHostedRunnersInGroupForOrgRequest(args [2] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9282,12 +9046,8 @@ func (s *Server) handleActionsListSelfHostedRunnersInGroupForOrgRequest(args [2] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9427,7 +9187,7 @@ func (s *Server) handleActionsListWorkflowRunArtifactsRequest(args [3]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9438,12 +9198,8 @@ func (s *Server) handleActionsListWorkflowRunArtifactsRequest(args [3]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9590,7 +9346,7 @@ func (s *Server) handleActionsListWorkflowRunsForRepoRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9601,12 +9357,8 @@ func (s *Server) handleActionsListWorkflowRunsForRepoRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9771,7 +9523,7 @@ func (s *Server) handleActionsReRunWorkflowRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9782,12 +9534,8 @@ func (s *Server) handleActionsReRunWorkflowRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9928,7 +9676,7 @@ func (s *Server) handleActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9939,12 +9687,8 @@ func (s *Server) handleActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10082,7 +9826,7 @@ func (s *Server) handleActionsRemoveSelectedRepoFromOrgSecretRequest(args [3]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10093,12 +9837,8 @@ func (s *Server) handleActionsRemoveSelectedRepoFromOrgSecretRequest(args [3]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10237,7 +9977,7 @@ func (s *Server) handleActionsRemoveSelfHostedRunnerFromGroupForOrgRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10248,12 +9988,8 @@ func (s *Server) handleActionsRemoveSelfHostedRunnerFromGroupForOrgRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10389,7 +10125,7 @@ func (s *Server) handleActionsRetryWorkflowRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10400,12 +10136,8 @@ func (s *Server) handleActionsRetryWorkflowRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10540,7 +10272,7 @@ func (s *Server) handleActionsReviewPendingDeploymentsForRunRequest(args [3]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10551,12 +10283,8 @@ func (s *Server) handleActionsReviewPendingDeploymentsForRunRequest(args [3]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10715,7 +10443,7 @@ func (s *Server) handleActionsSetAllowedActionsOrganizationRequest(args [1]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10726,12 +10454,8 @@ func (s *Server) handleActionsSetAllowedActionsOrganizationRequest(args [1]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10881,7 +10605,7 @@ func (s *Server) handleActionsSetAllowedActionsRepositoryRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10892,12 +10616,8 @@ func (s *Server) handleActionsSetAllowedActionsRepositoryRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11047,7 +10767,7 @@ func (s *Server) handleActionsSetGithubActionsPermissionsOrganizationRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11058,12 +10778,8 @@ func (s *Server) handleActionsSetGithubActionsPermissionsOrganizationRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11210,7 +10926,7 @@ func (s *Server) handleActionsSetGithubActionsPermissionsRepositoryRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11221,12 +10937,8 @@ func (s *Server) handleActionsSetGithubActionsPermissionsRepositoryRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11376,7 +11088,7 @@ func (s *Server) handleActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11387,12 +11099,8 @@ func (s *Server) handleActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11541,7 +11249,7 @@ func (s *Server) handleActionsSetSelectedReposForOrgSecretRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11552,12 +11260,8 @@ func (s *Server) handleActionsSetSelectedReposForOrgSecretRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11707,7 +11411,7 @@ func (s *Server) handleActionsSetSelectedRepositoriesEnabledGithubActionsOrganiz s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11718,12 +11422,8 @@ func (s *Server) handleActionsSetSelectedRepositoriesEnabledGithubActionsOrganiz // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11868,7 +11568,7 @@ func (s *Server) handleActionsSetSelfHostedRunnersInGroupForOrgRequest(args [2]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11879,12 +11579,8 @@ func (s *Server) handleActionsSetSelfHostedRunnersInGroupForOrgRequest(args [2]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12033,7 +11729,7 @@ func (s *Server) handleActionsUpdateSelfHostedRunnerGroupForOrgRequest(args [2]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12044,12 +11740,8 @@ func (s *Server) handleActionsUpdateSelfHostedRunnerGroupForOrgRequest(args [2]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12194,7 +11886,7 @@ func (s *Server) handleActivityCheckRepoIsStarredByAuthenticatedUserRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12205,12 +11897,8 @@ func (s *Server) handleActivityCheckRepoIsStarredByAuthenticatedUserRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12342,7 +12030,7 @@ func (s *Server) handleActivityDeleteRepoSubscriptionRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12353,12 +12041,8 @@ func (s *Server) handleActivityDeleteRepoSubscriptionRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12492,7 +12176,7 @@ func (s *Server) handleActivityDeleteThreadSubscriptionRequest(args [1]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12503,12 +12187,8 @@ func (s *Server) handleActivityDeleteThreadSubscriptionRequest(args [1]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12648,7 +12328,7 @@ func (s *Server) handleActivityGetFeedsRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12659,12 +12339,8 @@ func (s *Server) handleActivityGetFeedsRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12771,7 +12447,7 @@ func (s *Server) handleActivityGetRepoSubscriptionRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12782,12 +12458,8 @@ func (s *Server) handleActivityGetRepoSubscriptionRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12917,7 +12589,7 @@ func (s *Server) handleActivityGetThreadRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12928,12 +12600,8 @@ func (s *Server) handleActivityGetThreadRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13062,7 +12730,7 @@ func (s *Server) handleActivityGetThreadSubscriptionForAuthenticatedUserRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13073,12 +12741,8 @@ func (s *Server) handleActivityGetThreadSubscriptionForAuthenticatedUserRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13205,7 +12869,7 @@ func (s *Server) handleActivityListEventsForAuthenticatedUserRequest(args [1]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13216,12 +12880,8 @@ func (s *Server) handleActivityListEventsForAuthenticatedUserRequest(args [1]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13355,7 +13015,7 @@ func (s *Server) handleActivityListNotificationsForAuthenticatedUserRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13366,12 +13026,8 @@ func (s *Server) handleActivityListNotificationsForAuthenticatedUserRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13517,7 +13173,7 @@ func (s *Server) handleActivityListOrgEventsForAuthenticatedUserRequest(args [2] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13528,12 +13184,8 @@ func (s *Server) handleActivityListOrgEventsForAuthenticatedUserRequest(args [2] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13672,7 +13324,7 @@ func (s *Server) handleActivityListPublicEventsRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13683,12 +13335,8 @@ func (s *Server) handleActivityListPublicEventsRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13818,7 +13466,7 @@ func (s *Server) handleActivityListPublicEventsForRepoNetworkRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13829,12 +13477,8 @@ func (s *Server) handleActivityListPublicEventsForRepoNetworkRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13972,7 +13616,7 @@ func (s *Server) handleActivityListPublicEventsForUserRequest(args [1]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13983,12 +13627,8 @@ func (s *Server) handleActivityListPublicEventsForUserRequest(args [1]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14122,7 +13762,7 @@ func (s *Server) handleActivityListPublicOrgEventsRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14133,12 +13773,8 @@ func (s *Server) handleActivityListPublicOrgEventsRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14274,7 +13910,7 @@ func (s *Server) handleActivityListReceivedEventsForUserRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14285,12 +13921,8 @@ func (s *Server) handleActivityListReceivedEventsForUserRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14424,7 +14056,7 @@ func (s *Server) handleActivityListReceivedPublicEventsForUserRequest(args [1]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14435,12 +14067,8 @@ func (s *Server) handleActivityListReceivedPublicEventsForUserRequest(args [1]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14574,7 +14202,7 @@ func (s *Server) handleActivityListRepoEventsRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14585,12 +14213,8 @@ func (s *Server) handleActivityListRepoEventsRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14728,7 +14352,7 @@ func (s *Server) handleActivityListRepoNotificationsForAuthenticatedUserRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14739,12 +14363,8 @@ func (s *Server) handleActivityListRepoNotificationsForAuthenticatedUserRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14900,7 +14520,7 @@ func (s *Server) handleActivityListReposStarredByAuthenticatedUserRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14911,12 +14531,8 @@ func (s *Server) handleActivityListReposStarredByAuthenticatedUserRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15054,7 +14670,7 @@ func (s *Server) handleActivityListReposWatchedByUserRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15065,12 +14681,8 @@ func (s *Server) handleActivityListReposWatchedByUserRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15204,7 +14816,7 @@ func (s *Server) handleActivityListWatchedReposForAuthenticatedUserRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15215,12 +14827,8 @@ func (s *Server) handleActivityListWatchedReposForAuthenticatedUserRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15350,7 +14958,7 @@ func (s *Server) handleActivityListWatchersForRepoRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15361,12 +14969,8 @@ func (s *Server) handleActivityListWatchersForRepoRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15510,7 +15114,7 @@ func (s *Server) handleActivityMarkNotificationsAsReadRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15521,12 +15125,8 @@ func (s *Server) handleActivityMarkNotificationsAsReadRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15658,7 +15258,7 @@ func (s *Server) handleActivityMarkRepoNotificationsAsReadRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15669,12 +15269,8 @@ func (s *Server) handleActivityMarkRepoNotificationsAsReadRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15819,7 +15415,7 @@ func (s *Server) handleActivityMarkThreadAsReadRequest(args [1]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15830,12 +15426,8 @@ func (s *Server) handleActivityMarkThreadAsReadRequest(args [1]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15964,7 +15556,7 @@ func (s *Server) handleActivitySetRepoSubscriptionRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15975,12 +15567,8 @@ func (s *Server) handleActivitySetRepoSubscriptionRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16132,7 +15720,7 @@ func (s *Server) handleActivitySetThreadSubscriptionRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16143,12 +15731,8 @@ func (s *Server) handleActivitySetThreadSubscriptionRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16291,7 +15875,7 @@ func (s *Server) handleActivityStarRepoForAuthenticatedUserRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16302,12 +15886,8 @@ func (s *Server) handleActivityStarRepoForAuthenticatedUserRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16437,7 +16017,7 @@ func (s *Server) handleActivityUnstarRepoForAuthenticatedUserRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16448,12 +16028,8 @@ func (s *Server) handleActivityUnstarRepoForAuthenticatedUserRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16588,7 +16164,7 @@ func (s *Server) handleAppsAddRepoToInstallationRequest(args [2]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16599,12 +16175,8 @@ func (s *Server) handleAppsAddRepoToInstallationRequest(args [2]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16739,7 +16311,7 @@ func (s *Server) handleAppsCheckTokenRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16750,12 +16322,8 @@ func (s *Server) handleAppsCheckTokenRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16905,7 +16473,7 @@ func (s *Server) handleAppsCreateContentAttachmentRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16916,12 +16484,8 @@ func (s *Server) handleAppsCreateContentAttachmentRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17073,7 +16637,7 @@ func (s *Server) handleAppsCreateFromManifestRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17084,12 +16648,8 @@ func (s *Server) handleAppsCreateFromManifestRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17239,7 +16799,7 @@ func (s *Server) handleAppsCreateInstallationAccessTokenRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17250,12 +16810,8 @@ func (s *Server) handleAppsCreateInstallationAccessTokenRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17405,7 +16961,7 @@ func (s *Server) handleAppsDeleteAuthorizationRequest(args [1]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17416,12 +16972,8 @@ func (s *Server) handleAppsDeleteAuthorizationRequest(args [1]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17567,7 +17119,7 @@ func (s *Server) handleAppsDeleteInstallationRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17578,12 +17130,8 @@ func (s *Server) handleAppsDeleteInstallationRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17712,7 +17260,7 @@ func (s *Server) handleAppsDeleteTokenRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17723,12 +17271,8 @@ func (s *Server) handleAppsDeleteTokenRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17876,7 +17420,7 @@ func (s *Server) handleAppsGetAuthenticatedRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17887,12 +17431,8 @@ func (s *Server) handleAppsGetAuthenticatedRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18006,7 +17546,7 @@ func (s *Server) handleAppsGetBySlugRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18017,12 +17557,8 @@ func (s *Server) handleAppsGetBySlugRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18155,7 +17691,7 @@ func (s *Server) handleAppsGetSubscriptionPlanForAccountRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18166,12 +17702,8 @@ func (s *Server) handleAppsGetSubscriptionPlanForAccountRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18304,7 +17836,7 @@ func (s *Server) handleAppsGetSubscriptionPlanForAccountStubbedRequest(args [1]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18315,12 +17847,8 @@ func (s *Server) handleAppsGetSubscriptionPlanForAccountStubbedRequest(args [1]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18450,7 +17978,7 @@ func (s *Server) handleAppsGetWebhookConfigForAppRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18461,12 +17989,8 @@ func (s *Server) handleAppsGetWebhookConfigForAppRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18576,7 +18100,7 @@ func (s *Server) handleAppsGetWebhookDeliveryRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18587,12 +18111,8 @@ func (s *Server) handleAppsGetWebhookDeliveryRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18726,7 +18246,7 @@ func (s *Server) handleAppsListAccountsForPlanRequest(args [1]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18737,12 +18257,8 @@ func (s *Server) handleAppsListAccountsForPlanRequest(args [1]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18892,7 +18408,7 @@ func (s *Server) handleAppsListAccountsForPlanStubbedRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18903,12 +18419,8 @@ func (s *Server) handleAppsListAccountsForPlanStubbedRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19056,7 +18568,7 @@ func (s *Server) handleAppsListInstallationReposForAuthenticatedUserRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19067,12 +18579,8 @@ func (s *Server) handleAppsListInstallationReposForAuthenticatedUserRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19211,7 +18719,7 @@ func (s *Server) handleAppsListPlansRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19222,12 +18730,8 @@ func (s *Server) handleAppsListPlansRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19362,7 +18866,7 @@ func (s *Server) handleAppsListPlansStubbedRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19373,12 +18877,8 @@ func (s *Server) handleAppsListPlansStubbedRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19511,7 +19011,7 @@ func (s *Server) handleAppsListReposAccessibleToInstallationRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19522,12 +19022,8 @@ func (s *Server) handleAppsListReposAccessibleToInstallationRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19659,7 +19155,7 @@ func (s *Server) handleAppsListSubscriptionsForAuthenticatedUserRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19670,12 +19166,8 @@ func (s *Server) handleAppsListSubscriptionsForAuthenticatedUserRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19807,7 +19299,7 @@ func (s *Server) handleAppsListSubscriptionsForAuthenticatedUserStubbedRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19818,12 +19310,8 @@ func (s *Server) handleAppsListSubscriptionsForAuthenticatedUserStubbedRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19956,7 +19444,7 @@ func (s *Server) handleAppsListWebhookDeliveriesRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19967,12 +19455,8 @@ func (s *Server) handleAppsListWebhookDeliveriesRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20105,7 +19589,7 @@ func (s *Server) handleAppsRedeliverWebhookDeliveryRequest(args [1]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20116,12 +19600,8 @@ func (s *Server) handleAppsRedeliverWebhookDeliveryRequest(args [1]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20252,7 +19732,7 @@ func (s *Server) handleAppsRemoveRepoFromInstallationRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20263,12 +19743,8 @@ func (s *Server) handleAppsRemoveRepoFromInstallationRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20403,7 +19879,7 @@ func (s *Server) handleAppsResetTokenRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20414,12 +19890,8 @@ func (s *Server) handleAppsResetTokenRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20569,7 +20041,7 @@ func (s *Server) handleAppsRevokeInstallationAccessTokenRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20580,12 +20052,8 @@ func (s *Server) handleAppsRevokeInstallationAccessTokenRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20697,7 +20165,7 @@ func (s *Server) handleAppsScopeTokenRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20708,12 +20176,8 @@ func (s *Server) handleAppsScopeTokenRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20859,7 +20323,7 @@ func (s *Server) handleAppsSuspendInstallationRequest(args [1]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20870,12 +20334,8 @@ func (s *Server) handleAppsSuspendInstallationRequest(args [1]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21004,7 +20464,7 @@ func (s *Server) handleAppsUnsuspendInstallationRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21015,12 +20475,8 @@ func (s *Server) handleAppsUnsuspendInstallationRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21150,7 +20606,7 @@ func (s *Server) handleAppsUpdateWebhookConfigForAppRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21161,12 +20617,8 @@ func (s *Server) handleAppsUpdateWebhookConfigForAppRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21299,7 +20751,7 @@ func (s *Server) handleBillingGetGithubActionsBillingGheRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21310,12 +20762,8 @@ func (s *Server) handleBillingGetGithubActionsBillingGheRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21448,7 +20896,7 @@ func (s *Server) handleBillingGetGithubActionsBillingOrgRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21459,12 +20907,8 @@ func (s *Server) handleBillingGetGithubActionsBillingOrgRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21597,7 +21041,7 @@ func (s *Server) handleBillingGetGithubActionsBillingUserRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21608,12 +21052,8 @@ func (s *Server) handleBillingGetGithubActionsBillingUserRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21743,7 +21183,7 @@ func (s *Server) handleBillingGetGithubPackagesBillingGheRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21754,12 +21194,8 @@ func (s *Server) handleBillingGetGithubPackagesBillingGheRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21889,7 +21325,7 @@ func (s *Server) handleBillingGetGithubPackagesBillingOrgRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21900,12 +21336,8 @@ func (s *Server) handleBillingGetGithubPackagesBillingOrgRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22035,7 +21467,7 @@ func (s *Server) handleBillingGetGithubPackagesBillingUserRequest(args [1]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22046,12 +21478,8 @@ func (s *Server) handleBillingGetGithubPackagesBillingUserRequest(args [1]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22181,7 +21609,7 @@ func (s *Server) handleBillingGetSharedStorageBillingGheRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22192,12 +21620,8 @@ func (s *Server) handleBillingGetSharedStorageBillingGheRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22327,7 +21751,7 @@ func (s *Server) handleBillingGetSharedStorageBillingOrgRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22338,12 +21762,8 @@ func (s *Server) handleBillingGetSharedStorageBillingOrgRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22473,7 +21893,7 @@ func (s *Server) handleBillingGetSharedStorageBillingUserRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22484,12 +21904,8 @@ func (s *Server) handleBillingGetSharedStorageBillingUserRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22623,7 +22039,7 @@ func (s *Server) handleChecksCreateSuiteRequest(args [2]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22634,12 +22050,8 @@ func (s *Server) handleChecksCreateSuiteRequest(args [2]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22789,7 +22201,7 @@ func (s *Server) handleChecksGetRequest(args [3]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22800,12 +22212,8 @@ func (s *Server) handleChecksGetRequest(args [3]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22944,7 +22352,7 @@ func (s *Server) handleChecksGetSuiteRequest(args [3]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22955,12 +22363,8 @@ func (s *Server) handleChecksGetSuiteRequest(args [3]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23097,7 +22501,7 @@ func (s *Server) handleChecksListAnnotationsRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23108,12 +22512,8 @@ func (s *Server) handleChecksListAnnotationsRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23261,7 +22661,7 @@ func (s *Server) handleChecksListForRefRequest(args [3]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23272,12 +22672,8 @@ func (s *Server) handleChecksListForRefRequest(args [3]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23440,7 +22836,7 @@ func (s *Server) handleChecksListForSuiteRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23451,12 +22847,8 @@ func (s *Server) handleChecksListForSuiteRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23616,7 +23008,7 @@ func (s *Server) handleChecksListSuitesForRefRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23627,12 +23019,8 @@ func (s *Server) handleChecksListSuitesForRefRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23787,7 +23175,7 @@ func (s *Server) handleChecksRerequestSuiteRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23798,12 +23186,8 @@ func (s *Server) handleChecksRerequestSuiteRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23941,7 +23325,7 @@ func (s *Server) handleChecksSetSuitesPreferencesRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23952,12 +23336,8 @@ func (s *Server) handleChecksSetSuitesPreferencesRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24160,7 +23540,7 @@ func (s *Server) handleCodeScanningDeleteAnalysisRequest(args [3]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24171,12 +23551,8 @@ func (s *Server) handleCodeScanningDeleteAnalysisRequest(args [3]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24320,7 +23696,7 @@ func (s *Server) handleCodeScanningGetAlertRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24331,12 +23707,8 @@ func (s *Server) handleCodeScanningGetAlertRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24488,7 +23860,7 @@ func (s *Server) handleCodeScanningGetAnalysisRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24499,12 +23871,8 @@ func (s *Server) handleCodeScanningGetAnalysisRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24643,7 +24011,7 @@ func (s *Server) handleCodeScanningGetSarifRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24654,12 +24022,8 @@ func (s *Server) handleCodeScanningGetSarifRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24795,7 +24159,7 @@ func (s *Server) handleCodeScanningListAlertInstancesRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24806,12 +24170,8 @@ func (s *Server) handleCodeScanningListAlertInstancesRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24964,7 +24324,7 @@ func (s *Server) handleCodeScanningListAlertsForRepoRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24975,12 +24335,8 @@ func (s *Server) handleCodeScanningListAlertsForRepoRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25148,7 +24504,7 @@ func (s *Server) handleCodeScanningListRecentAnalysesRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25159,12 +24515,8 @@ func (s *Server) handleCodeScanningListRecentAnalysesRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25320,7 +24672,7 @@ func (s *Server) handleCodeScanningUpdateAlertRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25331,12 +24683,8 @@ func (s *Server) handleCodeScanningUpdateAlertRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25511,7 +24859,7 @@ func (s *Server) handleCodeScanningUploadSarifRequest(args [2]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25522,12 +24870,8 @@ func (s *Server) handleCodeScanningUploadSarifRequest(args [2]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25672,7 +25016,7 @@ func (s *Server) handleCodesOfConductGetAllCodesOfConductRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25683,12 +25027,8 @@ func (s *Server) handleCodesOfConductGetAllCodesOfConductRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25795,7 +25135,7 @@ func (s *Server) handleCodesOfConductGetConductCodeRequest(args [1]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25806,12 +25146,8 @@ func (s *Server) handleCodesOfConductGetConductCodeRequest(args [1]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25937,7 +25273,7 @@ func (s *Server) handleEmojisGetRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25948,12 +25284,8 @@ func (s *Server) handleEmojisGetRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26064,7 +25396,7 @@ func (s *Server) handleEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnter s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26075,12 +25407,8 @@ func (s *Server) handleEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnter // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26216,7 +25544,7 @@ func (s *Server) handleEnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseReq s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26227,12 +25555,8 @@ func (s *Server) handleEnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseReq // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26373,7 +25697,7 @@ func (s *Server) handleEnterpriseAdminCreateRegistrationTokenForEnterpriseReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26384,12 +25708,8 @@ func (s *Server) handleEnterpriseAdminCreateRegistrationTokenForEnterpriseReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26524,7 +25844,7 @@ func (s *Server) handleEnterpriseAdminCreateRemoveTokenForEnterpriseRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26535,12 +25855,8 @@ func (s *Server) handleEnterpriseAdminCreateRemoveTokenForEnterpriseRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26667,7 +25983,7 @@ func (s *Server) handleEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26678,12 +25994,8 @@ func (s *Server) handleEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26825,7 +26137,7 @@ func (s *Server) handleEnterpriseAdminDeleteScimGroupFromEnterpriseRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26836,12 +26148,8 @@ func (s *Server) handleEnterpriseAdminDeleteScimGroupFromEnterpriseRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26973,7 +26281,7 @@ func (s *Server) handleEnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26984,12 +26292,8 @@ func (s *Server) handleEnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27120,7 +26424,7 @@ func (s *Server) handleEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseR s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27131,12 +26435,8 @@ func (s *Server) handleEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseR // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27267,7 +26567,7 @@ func (s *Server) handleEnterpriseAdminDeleteUserFromEnterpriseRequest(args [2]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27278,12 +26578,8 @@ func (s *Server) handleEnterpriseAdminDeleteUserFromEnterpriseRequest(args [2]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27417,7 +26713,7 @@ func (s *Server) handleEnterpriseAdminDisableSelectedOrganizationGithubActionsEn s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27428,12 +26724,8 @@ func (s *Server) handleEnterpriseAdminDisableSelectedOrganizationGithubActionsEn // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27567,7 +26859,7 @@ func (s *Server) handleEnterpriseAdminEnableSelectedOrganizationGithubActionsEnt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27578,12 +26870,8 @@ func (s *Server) handleEnterpriseAdminEnableSelectedOrganizationGithubActionsEnt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27717,7 +27005,7 @@ func (s *Server) handleEnterpriseAdminGetAllowedActionsEnterpriseRequest(args [1 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27728,12 +27016,8 @@ func (s *Server) handleEnterpriseAdminGetAllowedActionsEnterpriseRequest(args [1 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27860,7 +27144,7 @@ func (s *Server) handleEnterpriseAdminGetAuditLogRequest(args [1]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27871,12 +27155,8 @@ func (s *Server) handleEnterpriseAdminGetAuditLogRequest(args [1]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28031,7 +27311,7 @@ func (s *Server) handleEnterpriseAdminGetGithubActionsPermissionsEnterpriseReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28042,12 +27322,8 @@ func (s *Server) handleEnterpriseAdminGetGithubActionsPermissionsEnterpriseReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28174,7 +27450,7 @@ func (s *Server) handleEnterpriseAdminGetProvisioningInformationForEnterpriseGro s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28185,12 +27461,8 @@ func (s *Server) handleEnterpriseAdminGetProvisioningInformationForEnterpriseGro // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28325,7 +27597,7 @@ func (s *Server) handleEnterpriseAdminGetProvisioningInformationForEnterpriseUse s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28336,12 +27608,8 @@ func (s *Server) handleEnterpriseAdminGetProvisioningInformationForEnterpriseUse // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28472,7 +27740,7 @@ func (s *Server) handleEnterpriseAdminGetSelfHostedRunnerForEnterpriseRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28483,12 +27751,8 @@ func (s *Server) handleEnterpriseAdminGetSelfHostedRunnerForEnterpriseRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28619,7 +27883,7 @@ func (s *Server) handleEnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28630,12 +27894,8 @@ func (s *Server) handleEnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28766,7 +28026,7 @@ func (s *Server) handleEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnte s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28777,12 +28037,8 @@ func (s *Server) handleEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnte // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28921,7 +28177,7 @@ func (s *Server) handleEnterpriseAdminListProvisionedGroupsEnterpriseRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28932,12 +28188,8 @@ func (s *Server) handleEnterpriseAdminListProvisionedGroupsEnterpriseRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29105,7 +28357,7 @@ func (s *Server) handleEnterpriseAdminListProvisionedIdentitiesEnterpriseRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29116,12 +28368,8 @@ func (s *Server) handleEnterpriseAdminListProvisionedIdentitiesEnterpriseRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29260,7 +28508,7 @@ func (s *Server) handleEnterpriseAdminListRunnerApplicationsForEnterpriseRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29271,12 +28519,8 @@ func (s *Server) handleEnterpriseAdminListRunnerApplicationsForEnterpriseRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29406,7 +28650,7 @@ func (s *Server) handleEnterpriseAdminListSelectedOrganizationsEnabledGithubActi s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29417,12 +28661,8 @@ func (s *Server) handleEnterpriseAdminListSelectedOrganizationsEnabledGithubActi // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29557,7 +28797,7 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseReq s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29568,12 +28808,8 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseReq // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29708,7 +28944,7 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnersForEnterpriseRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29719,12 +28955,8 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnersForEnterpriseRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29859,7 +29091,7 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseR s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29870,12 +29102,8 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseR // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30017,7 +29245,7 @@ func (s *Server) handleEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30028,12 +29256,8 @@ func (s *Server) handleEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30180,7 +29404,7 @@ func (s *Server) handleEnterpriseAdminProvisionAndInviteEnterpriseUserRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30191,12 +29415,8 @@ func (s *Server) handleEnterpriseAdminProvisionAndInviteEnterpriseUserRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30341,7 +29561,7 @@ func (s *Server) handleEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEn s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30352,12 +29572,8 @@ func (s *Server) handleEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEn // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30493,7 +29709,7 @@ func (s *Server) handleEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30504,12 +29720,8 @@ func (s *Server) handleEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30647,7 +29859,7 @@ func (s *Server) handleEnterpriseAdminSetAllowedActionsEnterpriseRequest(args [1 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30658,12 +29870,8 @@ func (s *Server) handleEnterpriseAdminSetAllowedActionsEnterpriseRequest(args [1 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30805,7 +30013,7 @@ func (s *Server) handleEnterpriseAdminSetGithubActionsPermissionsEnterpriseReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30816,12 +30024,8 @@ func (s *Server) handleEnterpriseAdminSetGithubActionsPermissionsEnterpriseReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30968,7 +30172,7 @@ func (s *Server) handleEnterpriseAdminSetInformationForProvisionedEnterpriseGrou s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30979,12 +30183,8 @@ func (s *Server) handleEnterpriseAdminSetInformationForProvisionedEnterpriseGrou // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31138,7 +30338,7 @@ func (s *Server) handleEnterpriseAdminSetInformationForProvisionedEnterpriseUser s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31149,12 +30349,8 @@ func (s *Server) handleEnterpriseAdminSetInformationForProvisionedEnterpriseUser // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31301,7 +30497,7 @@ func (s *Server) handleEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnter s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31312,12 +30508,8 @@ func (s *Server) handleEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnter // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31466,7 +30658,7 @@ func (s *Server) handleEnterpriseAdminSetSelectedOrganizationsEnabledGithubActio s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31477,12 +30669,8 @@ func (s *Server) handleEnterpriseAdminSetSelectedOrganizationsEnabledGithubActio // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31624,7 +30812,7 @@ func (s *Server) handleEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31635,12 +30823,8 @@ func (s *Server) handleEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31790,7 +30974,7 @@ func (s *Server) handleEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31801,12 +30985,8 @@ func (s *Server) handleEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31973,7 +31153,7 @@ func (s *Server) handleEnterpriseAdminUpdateAttributeForEnterpriseUserRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31984,12 +31164,8 @@ func (s *Server) handleEnterpriseAdminUpdateAttributeForEnterpriseUserRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32135,7 +31311,7 @@ func (s *Server) handleEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32146,12 +31322,8 @@ func (s *Server) handleEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32296,7 +31468,7 @@ func (s *Server) handleGistsCheckIsStarredRequest(args [1]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32307,12 +31479,8 @@ func (s *Server) handleGistsCheckIsStarredRequest(args [1]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32440,7 +31608,7 @@ func (s *Server) handleGistsCreateRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32451,12 +31619,8 @@ func (s *Server) handleGistsCreateRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32582,7 +31746,7 @@ func (s *Server) handleGistsCreateCommentRequest(args [1]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32593,12 +31757,8 @@ func (s *Server) handleGistsCreateCommentRequest(args [1]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32739,7 +31899,7 @@ func (s *Server) handleGistsDeleteRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32750,12 +31910,8 @@ func (s *Server) handleGistsDeleteRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32881,7 +32037,7 @@ func (s *Server) handleGistsDeleteCommentRequest(args [2]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32892,12 +32048,8 @@ func (s *Server) handleGistsDeleteCommentRequest(args [2]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33027,7 +32179,7 @@ func (s *Server) handleGistsForkRequest(args [1]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33038,12 +32190,8 @@ func (s *Server) handleGistsForkRequest(args [1]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33169,7 +32317,7 @@ func (s *Server) handleGistsGetRequest(args [1]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33180,12 +32328,8 @@ func (s *Server) handleGistsGetRequest(args [1]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33311,7 +32455,7 @@ func (s *Server) handleGistsGetCommentRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33322,12 +32466,8 @@ func (s *Server) handleGistsGetCommentRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33457,7 +32597,7 @@ func (s *Server) handleGistsGetRevisionRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33468,12 +32608,8 @@ func (s *Server) handleGistsGetRevisionRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33604,7 +32740,7 @@ func (s *Server) handleGistsListRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33615,12 +32751,8 @@ func (s *Server) handleGistsListRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33754,7 +32886,7 @@ func (s *Server) handleGistsListCommentsRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33765,12 +32897,8 @@ func (s *Server) handleGistsListCommentsRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33904,7 +33032,7 @@ func (s *Server) handleGistsListCommitsRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33915,12 +33043,8 @@ func (s *Server) handleGistsListCommitsRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34054,7 +33178,7 @@ func (s *Server) handleGistsListForUserRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34065,12 +33189,8 @@ func (s *Server) handleGistsListForUserRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34208,7 +33328,7 @@ func (s *Server) handleGistsListForksRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34219,12 +33339,8 @@ func (s *Server) handleGistsListForksRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34361,7 +33477,7 @@ func (s *Server) handleGistsListPublicRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34372,12 +33488,8 @@ func (s *Server) handleGistsListPublicRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34511,7 +33623,7 @@ func (s *Server) handleGistsListStarredRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34522,12 +33634,8 @@ func (s *Server) handleGistsListStarredRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34663,7 +33771,7 @@ func (s *Server) handleGistsStarRequest(args [1]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34674,12 +33782,8 @@ func (s *Server) handleGistsStarRequest(args [1]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34805,7 +33909,7 @@ func (s *Server) handleGistsUnstarRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34816,12 +33920,8 @@ func (s *Server) handleGistsUnstarRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34947,7 +34047,7 @@ func (s *Server) handleGistsUpdateCommentRequest(args [2]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34958,12 +34058,8 @@ func (s *Server) handleGistsUpdateCommentRequest(args [2]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35108,7 +34204,7 @@ func (s *Server) handleGitCreateBlobRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35119,12 +34215,8 @@ func (s *Server) handleGitCreateBlobRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35302,7 +34394,7 @@ func (s *Server) handleGitCreateCommitRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35313,12 +34405,8 @@ func (s *Server) handleGitCreateCommitRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35465,7 +34553,7 @@ func (s *Server) handleGitCreateRefRequest(args [2]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35476,12 +34564,8 @@ func (s *Server) handleGitCreateRefRequest(args [2]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35662,7 +34746,7 @@ func (s *Server) handleGitCreateTagRequest(args [2]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35673,12 +34757,8 @@ func (s *Server) handleGitCreateTagRequest(args [2]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35829,7 +34909,7 @@ func (s *Server) handleGitCreateTreeRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35840,12 +34920,8 @@ func (s *Server) handleGitCreateTreeRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35990,7 +35066,7 @@ func (s *Server) handleGitDeleteRefRequest(args [3]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36001,12 +35077,8 @@ func (s *Server) handleGitDeleteRefRequest(args [3]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36141,7 +35213,7 @@ func (s *Server) handleGitGetBlobRequest(args [3]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36152,12 +35224,8 @@ func (s *Server) handleGitGetBlobRequest(args [3]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36324,7 +35392,7 @@ func (s *Server) handleGitGetCommitRequest(args [3]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36335,12 +35403,8 @@ func (s *Server) handleGitGetCommitRequest(args [3]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36481,7 +35545,7 @@ func (s *Server) handleGitGetRefRequest(args [3]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36492,12 +35556,8 @@ func (s *Server) handleGitGetRefRequest(args [3]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36662,7 +35722,7 @@ func (s *Server) handleGitGetTagRequest(args [3]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36673,12 +35733,8 @@ func (s *Server) handleGitGetTagRequest(args [3]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36815,7 +35871,7 @@ func (s *Server) handleGitGetTreeRequest(args [3]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36826,12 +35882,8 @@ func (s *Server) handleGitGetTreeRequest(args [3]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36983,7 +36035,7 @@ func (s *Server) handleGitListMatchingRefsRequest(args [3]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36994,12 +36046,8 @@ func (s *Server) handleGitListMatchingRefsRequest(args [3]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37141,7 +36189,7 @@ func (s *Server) handleGitUpdateRefRequest(args [3]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37152,12 +36200,8 @@ func (s *Server) handleGitUpdateRefRequest(args [3]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37307,7 +36351,7 @@ func (s *Server) handleGitignoreGetAllTemplatesRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37318,12 +36362,8 @@ func (s *Server) handleGitignoreGetAllTemplatesRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37432,7 +36472,7 @@ func (s *Server) handleGitignoreGetTemplateRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37443,12 +36483,8 @@ func (s *Server) handleGitignoreGetTemplateRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37574,7 +36610,7 @@ func (s *Server) handleInteractionsRemoveRestrictionsForAuthenticatedUserRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37585,12 +36621,8 @@ func (s *Server) handleInteractionsRemoveRestrictionsForAuthenticatedUserRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37698,7 +36730,7 @@ func (s *Server) handleInteractionsRemoveRestrictionsForOrgRequest(args [1]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37709,12 +36741,8 @@ func (s *Server) handleInteractionsRemoveRestrictionsForOrgRequest(args [1]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37843,7 +36871,7 @@ func (s *Server) handleInteractionsRemoveRestrictionsForRepoRequest(args [2]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37854,12 +36882,8 @@ func (s *Server) handleInteractionsRemoveRestrictionsForRepoRequest(args [2]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37991,7 +37015,7 @@ func (s *Server) handleInteractionsSetRestrictionsForAuthenticatedUserRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38002,12 +37026,8 @@ func (s *Server) handleInteractionsSetRestrictionsForAuthenticatedUserRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38136,7 +37156,7 @@ func (s *Server) handleInteractionsSetRestrictionsForOrgRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38147,12 +37167,8 @@ func (s *Server) handleInteractionsSetRestrictionsForOrgRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38296,7 +37312,7 @@ func (s *Server) handleInteractionsSetRestrictionsForRepoRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38307,12 +37323,8 @@ func (s *Server) handleInteractionsSetRestrictionsForRepoRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38457,7 +37469,7 @@ func (s *Server) handleIssuesAddAssigneesRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38468,12 +37480,8 @@ func (s *Server) handleIssuesAddAssigneesRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38625,7 +37633,7 @@ func (s *Server) handleIssuesCheckUserCanBeAssignedRequest(args [3]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38636,12 +37644,8 @@ func (s *Server) handleIssuesCheckUserCanBeAssignedRequest(args [3]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38784,7 +37788,7 @@ func (s *Server) handleIssuesCreateRequest(args [2]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38795,12 +37799,8 @@ func (s *Server) handleIssuesCreateRequest(args [2]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38951,7 +37951,7 @@ func (s *Server) handleIssuesCreateCommentRequest(args [3]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38962,12 +37962,8 @@ func (s *Server) handleIssuesCreateCommentRequest(args [3]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39116,7 +38112,7 @@ func (s *Server) handleIssuesCreateLabelRequest(args [2]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39127,12 +38123,8 @@ func (s *Server) handleIssuesCreateLabelRequest(args [2]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39277,7 +38269,7 @@ func (s *Server) handleIssuesCreateMilestoneRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39288,12 +38280,8 @@ func (s *Server) handleIssuesCreateMilestoneRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39438,7 +38426,7 @@ func (s *Server) handleIssuesDeleteCommentRequest(args [3]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39449,12 +38437,8 @@ func (s *Server) handleIssuesDeleteCommentRequest(args [3]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39588,7 +38572,7 @@ func (s *Server) handleIssuesDeleteLabelRequest(args [3]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39599,12 +38583,8 @@ func (s *Server) handleIssuesDeleteLabelRequest(args [3]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39738,7 +38718,7 @@ func (s *Server) handleIssuesDeleteMilestoneRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39749,12 +38729,8 @@ func (s *Server) handleIssuesDeleteMilestoneRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39906,7 +38882,7 @@ func (s *Server) handleIssuesGetRequest(args [3]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39917,12 +38893,8 @@ func (s *Server) handleIssuesGetRequest(args [3]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40056,7 +39028,7 @@ func (s *Server) handleIssuesGetCommentRequest(args [3]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40067,12 +39039,8 @@ func (s *Server) handleIssuesGetCommentRequest(args [3]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40206,7 +39174,7 @@ func (s *Server) handleIssuesGetEventRequest(args [3]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40217,12 +39185,8 @@ func (s *Server) handleIssuesGetEventRequest(args [3]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40356,7 +39320,7 @@ func (s *Server) handleIssuesGetLabelRequest(args [3]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40367,12 +39331,8 @@ func (s *Server) handleIssuesGetLabelRequest(args [3]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40506,7 +39466,7 @@ func (s *Server) handleIssuesGetMilestoneRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40517,12 +39477,8 @@ func (s *Server) handleIssuesGetMilestoneRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40668,7 +39624,7 @@ func (s *Server) handleIssuesListRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40679,12 +39635,8 @@ func (s *Server) handleIssuesListRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40855,7 +39807,7 @@ func (s *Server) handleIssuesListAssigneesRequest(args [2]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40866,12 +39818,8 @@ func (s *Server) handleIssuesListAssigneesRequest(args [2]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41009,7 +39957,7 @@ func (s *Server) handleIssuesListCommentsRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41020,12 +39968,8 @@ func (s *Server) handleIssuesListCommentsRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41171,7 +40115,7 @@ func (s *Server) handleIssuesListCommentsForRepoRequest(args [2]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41182,12 +40126,8 @@ func (s *Server) handleIssuesListCommentsForRepoRequest(args [2]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41337,7 +40277,7 @@ func (s *Server) handleIssuesListEventsForRepoRequest(args [2]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41348,12 +40288,8 @@ func (s *Server) handleIssuesListEventsForRepoRequest(args [2]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41499,7 +40435,7 @@ func (s *Server) handleIssuesListForAuthenticatedUserRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41510,12 +40446,8 @@ func (s *Server) handleIssuesListForAuthenticatedUserRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41677,7 +40609,7 @@ func (s *Server) handleIssuesListForOrgRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41688,12 +40620,8 @@ func (s *Server) handleIssuesListForOrgRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41859,7 +40787,7 @@ func (s *Server) handleIssuesListForRepoRequest(args [2]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41870,12 +40798,8 @@ func (s *Server) handleIssuesListForRepoRequest(args [2]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42049,7 +40973,7 @@ func (s *Server) handleIssuesListLabelsForMilestoneRequest(args [3]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42060,12 +40984,8 @@ func (s *Server) handleIssuesListLabelsForMilestoneRequest(args [3]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42207,7 +41127,7 @@ func (s *Server) handleIssuesListLabelsForRepoRequest(args [2]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42218,12 +41138,8 @@ func (s *Server) handleIssuesListLabelsForRepoRequest(args [2]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42361,7 +41277,7 @@ func (s *Server) handleIssuesListLabelsOnIssueRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42372,12 +41288,8 @@ func (s *Server) handleIssuesListLabelsOnIssueRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42519,7 +41431,7 @@ func (s *Server) handleIssuesListMilestonesRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42530,12 +41442,8 @@ func (s *Server) handleIssuesListMilestonesRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42688,7 +41596,7 @@ func (s *Server) handleIssuesLockRequest(args [3]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42699,12 +41607,8 @@ func (s *Server) handleIssuesLockRequest(args [3]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42853,7 +41757,7 @@ func (s *Server) handleIssuesRemoveAllLabelsRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42864,12 +41768,8 @@ func (s *Server) handleIssuesRemoveAllLabelsRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43003,7 +41903,7 @@ func (s *Server) handleIssuesRemoveAssigneesRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43014,12 +41914,8 @@ func (s *Server) handleIssuesRemoveAssigneesRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43169,7 +42065,7 @@ func (s *Server) handleIssuesRemoveLabelRequest(args [4]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43180,12 +42076,8 @@ func (s *Server) handleIssuesRemoveLabelRequest(args [4]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43323,7 +42215,7 @@ func (s *Server) handleIssuesUnlockRequest(args [3]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43334,12 +42226,8 @@ func (s *Server) handleIssuesUnlockRequest(args [3]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43473,7 +42361,7 @@ func (s *Server) handleIssuesUpdateRequest(args [3]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43484,12 +42372,8 @@ func (s *Server) handleIssuesUpdateRequest(args [3]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43638,7 +42522,7 @@ func (s *Server) handleIssuesUpdateCommentRequest(args [3]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43649,12 +42533,8 @@ func (s *Server) handleIssuesUpdateCommentRequest(args [3]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43803,7 +42683,7 @@ func (s *Server) handleIssuesUpdateLabelRequest(args [3]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43814,12 +42694,8 @@ func (s *Server) handleIssuesUpdateLabelRequest(args [3]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43968,7 +42844,7 @@ func (s *Server) handleIssuesUpdateMilestoneRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43979,12 +42855,8 @@ func (s *Server) handleIssuesUpdateMilestoneRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44133,7 +43005,7 @@ func (s *Server) handleLicensesGetRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44144,12 +43016,8 @@ func (s *Server) handleLicensesGetRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44275,7 +43143,7 @@ func (s *Server) handleLicensesGetAllCommonlyUsedRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44286,12 +43154,8 @@ func (s *Server) handleLicensesGetAllCommonlyUsedRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44429,7 +43293,7 @@ func (s *Server) handleLicensesGetForRepoRequest(args [2]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44440,12 +43304,8 @@ func (s *Server) handleLicensesGetForRepoRequest(args [2]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44575,7 +43435,7 @@ func (s *Server) handleMarkdownRenderRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44586,12 +43446,8 @@ func (s *Server) handleMarkdownRenderRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44720,7 +43576,7 @@ func (s *Server) handleMarkdownRenderRawRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44731,12 +43587,8 @@ func (s *Server) handleMarkdownRenderRawRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44866,7 +43718,7 @@ func (s *Server) handleMetaGetRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44877,12 +43729,8 @@ func (s *Server) handleMetaGetRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44989,7 +43837,7 @@ func (s *Server) handleMetaGetOctocatRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45000,12 +43848,8 @@ func (s *Server) handleMetaGetOctocatRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45131,7 +43975,7 @@ func (s *Server) handleMetaGetZenRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45142,12 +43986,8 @@ func (s *Server) handleMetaGetZenRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45254,7 +44094,7 @@ func (s *Server) handleMetaRootRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45265,12 +44105,8 @@ func (s *Server) handleMetaRootRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45377,7 +44213,7 @@ func (s *Server) handleMigrationsCancelImportRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45388,12 +44224,8 @@ func (s *Server) handleMigrationsCancelImportRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45527,7 +44359,7 @@ func (s *Server) handleMigrationsDeleteArchiveForAuthenticatedUserRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45538,12 +44370,8 @@ func (s *Server) handleMigrationsDeleteArchiveForAuthenticatedUserRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45670,7 +44498,7 @@ func (s *Server) handleMigrationsDeleteArchiveForOrgRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45681,12 +44509,8 @@ func (s *Server) handleMigrationsDeleteArchiveForOrgRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45816,7 +44640,7 @@ func (s *Server) handleMigrationsDownloadArchiveForOrgRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45827,12 +44651,8 @@ func (s *Server) handleMigrationsDownloadArchiveForOrgRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45982,7 +44802,7 @@ func (s *Server) handleMigrationsGetArchiveForAuthenticatedUserRequest(args [1]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45993,12 +44813,8 @@ func (s *Server) handleMigrationsGetArchiveForAuthenticatedUserRequest(args [1]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46131,7 +44947,7 @@ func (s *Server) handleMigrationsGetCommitAuthorsRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46142,12 +44958,8 @@ func (s *Server) handleMigrationsGetCommitAuthorsRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46333,7 +45145,7 @@ func (s *Server) handleMigrationsGetImportStatusRequest(args [2]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46344,12 +45156,8 @@ func (s *Server) handleMigrationsGetImportStatusRequest(args [2]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46479,7 +45287,7 @@ func (s *Server) handleMigrationsGetLargeFilesRequest(args [2]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46490,12 +45298,8 @@ func (s *Server) handleMigrationsGetLargeFilesRequest(args [2]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46632,7 +45436,7 @@ func (s *Server) handleMigrationsGetStatusForAuthenticatedUserRequest(args [1]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46643,12 +45447,8 @@ func (s *Server) handleMigrationsGetStatusForAuthenticatedUserRequest(args [1]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46783,7 +45583,7 @@ func (s *Server) handleMigrationsGetStatusForOrgRequest(args [2]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46794,12 +45594,8 @@ func (s *Server) handleMigrationsGetStatusForOrgRequest(args [2]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46933,7 +45729,7 @@ func (s *Server) handleMigrationsListForAuthenticatedUserRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46944,12 +45740,8 @@ func (s *Server) handleMigrationsListForAuthenticatedUserRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47079,7 +45871,7 @@ func (s *Server) handleMigrationsListForOrgRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47090,12 +45882,8 @@ func (s *Server) handleMigrationsListForOrgRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47233,7 +46021,7 @@ func (s *Server) handleMigrationsListReposForOrgRequest(args [2]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47244,12 +46032,8 @@ func (s *Server) handleMigrationsListReposForOrgRequest(args [2]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47387,7 +46171,7 @@ func (s *Server) handleMigrationsListReposForUserRequest(args [1]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47398,12 +46182,8 @@ func (s *Server) handleMigrationsListReposForUserRequest(args [1]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47538,7 +46318,7 @@ func (s *Server) handleMigrationsMapCommitAuthorRequest(args [3]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47549,12 +46329,8 @@ func (s *Server) handleMigrationsMapCommitAuthorRequest(args [3]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47706,7 +46482,7 @@ func (s *Server) handleMigrationsSetLfsPreferenceRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47717,12 +46493,8 @@ func (s *Server) handleMigrationsSetLfsPreferenceRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47867,7 +46639,7 @@ func (s *Server) handleMigrationsStartForAuthenticatedUserRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47878,12 +46650,8 @@ func (s *Server) handleMigrationsStartForAuthenticatedUserRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48009,7 +46777,7 @@ func (s *Server) handleMigrationsStartForOrgRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48020,12 +46788,8 @@ func (s *Server) handleMigrationsStartForOrgRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48166,7 +46930,7 @@ func (s *Server) handleMigrationsStartImportRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48177,12 +46941,8 @@ func (s *Server) handleMigrationsStartImportRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48331,7 +47091,7 @@ func (s *Server) handleMigrationsUnlockRepoForAuthenticatedUserRequest(args [2]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48342,12 +47102,8 @@ func (s *Server) handleMigrationsUnlockRepoForAuthenticatedUserRequest(args [2]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48479,7 +47235,7 @@ func (s *Server) handleMigrationsUnlockRepoForOrgRequest(args [3]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48490,12 +47246,8 @@ func (s *Server) handleMigrationsUnlockRepoForOrgRequest(args [3]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48631,7 +47383,7 @@ func (s *Server) handleMigrationsUpdateImportRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48642,12 +47394,8 @@ func (s *Server) handleMigrationsUpdateImportRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48821,7 +47569,7 @@ func (s *Server) handleOAuthAuthorizationsCreateAuthorizationRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48832,12 +47580,8 @@ func (s *Server) handleOAuthAuthorizationsCreateAuthorizationRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48972,7 +47716,7 @@ func (s *Server) handleOAuthAuthorizationsDeleteAuthorizationRequest(args [1]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48983,12 +47727,8 @@ func (s *Server) handleOAuthAuthorizationsDeleteAuthorizationRequest(args [1]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49126,7 +47866,7 @@ func (s *Server) handleOAuthAuthorizationsDeleteGrantRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49137,12 +47877,8 @@ func (s *Server) handleOAuthAuthorizationsDeleteGrantRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49277,7 +48013,7 @@ func (s *Server) handleOAuthAuthorizationsGetAuthorizationRequest(args [1]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49288,12 +48024,8 @@ func (s *Server) handleOAuthAuthorizationsGetAuthorizationRequest(args [1]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49428,7 +48160,7 @@ func (s *Server) handleOAuthAuthorizationsGetGrantRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49439,12 +48171,8 @@ func (s *Server) handleOAuthAuthorizationsGetGrantRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49598,7 +48326,7 @@ func (s *Server) handleOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49609,12 +48337,8 @@ func (s *Server) handleOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49778,7 +48502,7 @@ func (s *Server) handleOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFinge s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49789,12 +48513,8 @@ func (s *Server) handleOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFinge // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49948,7 +48668,7 @@ func (s *Server) handleOAuthAuthorizationsListAuthorizationsRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49959,12 +48679,8 @@ func (s *Server) handleOAuthAuthorizationsListAuthorizationsRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50118,7 +48834,7 @@ func (s *Server) handleOAuthAuthorizationsListGrantsRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50129,12 +48845,8 @@ func (s *Server) handleOAuthAuthorizationsListGrantsRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50281,7 +48993,7 @@ func (s *Server) handleOAuthAuthorizationsUpdateAuthorizationRequest(args [1]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50292,12 +49004,8 @@ func (s *Server) handleOAuthAuthorizationsUpdateAuthorizationRequest(args [1]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50438,7 +49146,7 @@ func (s *Server) handleOrgsBlockUserRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50449,12 +49157,8 @@ func (s *Server) handleOrgsBlockUserRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50587,7 +49291,7 @@ func (s *Server) handleOrgsCancelInvitationRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50598,12 +49302,8 @@ func (s *Server) handleOrgsCancelInvitationRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50733,7 +49433,7 @@ func (s *Server) handleOrgsCheckBlockedUserRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50744,12 +49444,8 @@ func (s *Server) handleOrgsCheckBlockedUserRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50879,7 +49575,7 @@ func (s *Server) handleOrgsCheckMembershipForUserRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50890,12 +49586,8 @@ func (s *Server) handleOrgsCheckMembershipForUserRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51025,7 +49717,7 @@ func (s *Server) handleOrgsCheckPublicMembershipForUserRequest(args [2]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51036,12 +49728,8 @@ func (s *Server) handleOrgsCheckPublicMembershipForUserRequest(args [2]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51175,7 +49863,7 @@ func (s *Server) handleOrgsConvertMemberToOutsideCollaboratorRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51186,12 +49874,8 @@ func (s *Server) handleOrgsConvertMemberToOutsideCollaboratorRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51329,7 +50013,7 @@ func (s *Server) handleOrgsCreateInvitationRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51340,12 +50024,8 @@ func (s *Server) handleOrgsCreateInvitationRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51486,7 +50166,7 @@ func (s *Server) handleOrgsCreateWebhookRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51497,12 +50177,8 @@ func (s *Server) handleOrgsCreateWebhookRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51643,7 +50319,7 @@ func (s *Server) handleOrgsDeleteWebhookRequest(args [2]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51654,12 +50330,8 @@ func (s *Server) handleOrgsDeleteWebhookRequest(args [2]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51797,7 +50469,7 @@ func (s *Server) handleOrgsGetRequest(args [1]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51808,12 +50480,8 @@ func (s *Server) handleOrgsGetRequest(args [1]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51944,7 +50612,7 @@ func (s *Server) handleOrgsGetAuditLogRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51955,12 +50623,8 @@ func (s *Server) handleOrgsGetAuditLogRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52114,7 +50778,7 @@ func (s *Server) handleOrgsGetMembershipForAuthenticatedUserRequest(args [1]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52125,12 +50789,8 @@ func (s *Server) handleOrgsGetMembershipForAuthenticatedUserRequest(args [1]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52258,7 +50918,7 @@ func (s *Server) handleOrgsGetMembershipForUserRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52269,12 +50929,8 @@ func (s *Server) handleOrgsGetMembershipForUserRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52406,7 +51062,7 @@ func (s *Server) handleOrgsGetWebhookRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52417,12 +51073,8 @@ func (s *Server) handleOrgsGetWebhookRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52556,7 +51208,7 @@ func (s *Server) handleOrgsGetWebhookConfigForOrgRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52567,12 +51219,8 @@ func (s *Server) handleOrgsGetWebhookConfigForOrgRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52702,7 +51350,7 @@ func (s *Server) handleOrgsGetWebhookDeliveryRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52713,12 +51361,8 @@ func (s *Server) handleOrgsGetWebhookDeliveryRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52855,7 +51499,7 @@ func (s *Server) handleOrgsListRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52866,12 +51510,8 @@ func (s *Server) handleOrgsListRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53001,7 +51641,7 @@ func (s *Server) handleOrgsListBlockedUsersRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53012,12 +51652,8 @@ func (s *Server) handleOrgsListBlockedUsersRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53144,7 +51780,7 @@ func (s *Server) handleOrgsListFailedInvitationsRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53155,12 +51791,8 @@ func (s *Server) handleOrgsListFailedInvitationsRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53299,7 +51931,7 @@ func (s *Server) handleOrgsListForAuthenticatedUserRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53310,12 +51942,8 @@ func (s *Server) handleOrgsListForAuthenticatedUserRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53450,7 +52078,7 @@ func (s *Server) handleOrgsListForUserRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53461,12 +52089,8 @@ func (s *Server) handleOrgsListForUserRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53601,7 +52225,7 @@ func (s *Server) handleOrgsListInvitationTeamsRequest(args [2]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53612,12 +52236,8 @@ func (s *Server) handleOrgsListInvitationTeamsRequest(args [2]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53756,7 +52376,7 @@ func (s *Server) handleOrgsListMembersRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53767,12 +52387,8 @@ func (s *Server) handleOrgsListMembersRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53914,7 +52530,7 @@ func (s *Server) handleOrgsListMembershipsForAuthenticatedUserRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53925,12 +52541,8 @@ func (s *Server) handleOrgsListMembershipsForAuthenticatedUserRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54064,7 +52676,7 @@ func (s *Server) handleOrgsListOutsideCollaboratorsRequest(args [1]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54075,12 +52687,8 @@ func (s *Server) handleOrgsListOutsideCollaboratorsRequest(args [1]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54221,7 +52829,7 @@ func (s *Server) handleOrgsListPendingInvitationsRequest(args [1]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54232,12 +52840,8 @@ func (s *Server) handleOrgsListPendingInvitationsRequest(args [1]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54371,7 +52975,7 @@ func (s *Server) handleOrgsListPublicMembersRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54382,12 +52986,8 @@ func (s *Server) handleOrgsListPublicMembersRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54528,7 +53128,7 @@ func (s *Server) handleOrgsListSamlSSOAuthorizationsRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54539,12 +53139,8 @@ func (s *Server) handleOrgsListSamlSSOAuthorizationsRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54670,7 +53266,7 @@ func (s *Server) handleOrgsListWebhookDeliveriesRequest(args [2]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54681,12 +53277,8 @@ func (s *Server) handleOrgsListWebhookDeliveriesRequest(args [2]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54824,7 +53416,7 @@ func (s *Server) handleOrgsListWebhooksRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54835,12 +53427,8 @@ func (s *Server) handleOrgsListWebhooksRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54975,7 +53563,7 @@ func (s *Server) handleOrgsPingWebhookRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54986,12 +53574,8 @@ func (s *Server) handleOrgsPingWebhookRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55121,7 +53705,7 @@ func (s *Server) handleOrgsRedeliverWebhookDeliveryRequest(args [3]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55132,12 +53716,8 @@ func (s *Server) handleOrgsRedeliverWebhookDeliveryRequest(args [3]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55272,7 +53852,7 @@ func (s *Server) handleOrgsRemoveMemberRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55283,12 +53863,8 @@ func (s *Server) handleOrgsRemoveMemberRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55422,7 +53998,7 @@ func (s *Server) handleOrgsRemoveMembershipForUserRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55433,12 +54009,8 @@ func (s *Server) handleOrgsRemoveMembershipForUserRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55568,7 +54140,7 @@ func (s *Server) handleOrgsRemoveOutsideCollaboratorRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55579,12 +54151,8 @@ func (s *Server) handleOrgsRemoveOutsideCollaboratorRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55714,7 +54282,7 @@ func (s *Server) handleOrgsRemovePublicMembershipForAuthenticatedUserRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55725,12 +54293,8 @@ func (s *Server) handleOrgsRemovePublicMembershipForAuthenticatedUserRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55866,7 +54430,7 @@ func (s *Server) handleOrgsRemoveSamlSSOAuthorizationRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55877,12 +54441,8 @@ func (s *Server) handleOrgsRemoveSamlSSOAuthorizationRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56025,7 +54585,7 @@ func (s *Server) handleOrgsSetMembershipForUserRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56036,12 +54596,8 @@ func (s *Server) handleOrgsSetMembershipForUserRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56190,7 +54746,7 @@ func (s *Server) handleOrgsSetPublicMembershipForAuthenticatedUserRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56201,12 +54757,8 @@ func (s *Server) handleOrgsSetPublicMembershipForAuthenticatedUserRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56336,7 +54888,7 @@ func (s *Server) handleOrgsUnblockUserRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56347,12 +54899,8 @@ func (s *Server) handleOrgsUnblockUserRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56482,7 +55030,7 @@ func (s *Server) handleOrgsUpdateMembershipForAuthenticatedUserRequest(args [1]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56493,12 +55041,8 @@ func (s *Server) handleOrgsUpdateMembershipForAuthenticatedUserRequest(args [1]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56643,7 +55187,7 @@ func (s *Server) handleOrgsUpdateWebhookRequest(args [2]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56654,12 +55198,8 @@ func (s *Server) handleOrgsUpdateWebhookRequest(args [2]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56808,7 +55348,7 @@ func (s *Server) handleOrgsUpdateWebhookConfigForOrgRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56819,12 +55359,8 @@ func (s *Server) handleOrgsUpdateWebhookConfigForOrgRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56974,7 +55510,7 @@ func (s *Server) handlePackagesDeletePackageForAuthenticatedUserRequest(args [2] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56985,12 +55521,8 @@ func (s *Server) handlePackagesDeletePackageForAuthenticatedUserRequest(args [2] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57127,7 +55659,7 @@ func (s *Server) handlePackagesDeletePackageForOrgRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57138,12 +55670,8 @@ func (s *Server) handlePackagesDeletePackageForOrgRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57284,7 +55812,7 @@ func (s *Server) handlePackagesDeletePackageForUserRequest(args [3]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57295,12 +55823,8 @@ func (s *Server) handlePackagesDeletePackageForUserRequest(args [3]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57439,7 +55963,7 @@ func (s *Server) handlePackagesDeletePackageVersionForAuthenticatedUserRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57450,12 +55974,8 @@ func (s *Server) handlePackagesDeletePackageVersionForAuthenticatedUserRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57596,7 +56116,7 @@ func (s *Server) handlePackagesDeletePackageVersionForOrgRequest(args [4]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57607,12 +56127,8 @@ func (s *Server) handlePackagesDeletePackageVersionForOrgRequest(args [4]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57757,7 +56273,7 @@ func (s *Server) handlePackagesDeletePackageVersionForUserRequest(args [4]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57768,12 +56284,8 @@ func (s *Server) handlePackagesDeletePackageVersionForUserRequest(args [4]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57913,7 +56425,7 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByAuthenticat s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57924,12 +56436,8 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByAuthenticat // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58073,7 +56581,7 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByOrgRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58084,12 +56592,8 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByOrgRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58237,7 +56741,7 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByUserRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58248,12 +56752,8 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByUserRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58389,7 +56889,7 @@ func (s *Server) handlePackagesGetPackageForAuthenticatedUserRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58400,12 +56900,8 @@ func (s *Server) handlePackagesGetPackageForAuthenticatedUserRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58537,7 +57033,7 @@ func (s *Server) handlePackagesGetPackageForOrganizationRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58548,12 +57044,8 @@ func (s *Server) handlePackagesGetPackageForOrganizationRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58689,7 +57181,7 @@ func (s *Server) handlePackagesGetPackageForUserRequest(args [3]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58700,12 +57192,8 @@ func (s *Server) handlePackagesGetPackageForUserRequest(args [3]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58841,7 +57329,7 @@ func (s *Server) handlePackagesGetPackageVersionForAuthenticatedUserRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58852,12 +57340,8 @@ func (s *Server) handlePackagesGetPackageVersionForAuthenticatedUserRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58993,7 +57477,7 @@ func (s *Server) handlePackagesGetPackageVersionForOrganizationRequest(args [4]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59004,12 +57488,8 @@ func (s *Server) handlePackagesGetPackageVersionForOrganizationRequest(args [4]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59150,7 +57630,7 @@ func (s *Server) handlePackagesGetPackageVersionForUserRequest(args [4]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59161,12 +57641,8 @@ func (s *Server) handlePackagesGetPackageVersionForUserRequest(args [4]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59306,7 +57782,7 @@ func (s *Server) handlePackagesListPackagesForAuthenticatedUserRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59317,12 +57793,8 @@ func (s *Server) handlePackagesListPackagesForAuthenticatedUserRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59454,7 +57926,7 @@ func (s *Server) handlePackagesListPackagesForOrganizationRequest(args [1]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59465,12 +57937,8 @@ func (s *Server) handlePackagesListPackagesForOrganizationRequest(args [1]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59606,7 +58074,7 @@ func (s *Server) handlePackagesListPackagesForUserRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59617,12 +58085,8 @@ func (s *Server) handlePackagesListPackagesForUserRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59765,7 +58229,7 @@ func (s *Server) handlePackagesRestorePackageForAuthenticatedUserRequest(args [2 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59776,12 +58240,8 @@ func (s *Server) handlePackagesRestorePackageForAuthenticatedUserRequest(args [2 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59926,7 +58386,7 @@ func (s *Server) handlePackagesRestorePackageForOrgRequest(args [3]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59937,12 +58397,8 @@ func (s *Server) handlePackagesRestorePackageForOrgRequest(args [3]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60091,7 +58547,7 @@ func (s *Server) handlePackagesRestorePackageForUserRequest(args [3]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60102,12 +58558,8 @@ func (s *Server) handlePackagesRestorePackageForUserRequest(args [3]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60254,7 +58706,7 @@ func (s *Server) handlePackagesRestorePackageVersionForAuthenticatedUserRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60265,12 +58717,8 @@ func (s *Server) handlePackagesRestorePackageVersionForAuthenticatedUserRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60415,7 +58863,7 @@ func (s *Server) handlePackagesRestorePackageVersionForOrgRequest(args [4]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60426,12 +58874,8 @@ func (s *Server) handlePackagesRestorePackageVersionForOrgRequest(args [4]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60580,7 +59024,7 @@ func (s *Server) handlePackagesRestorePackageVersionForUserRequest(args [4]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60591,12 +59035,8 @@ func (s *Server) handlePackagesRestorePackageVersionForUserRequest(args [4]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60735,7 +59175,7 @@ func (s *Server) handleProjectsAddCollaboratorRequest(args [2]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60746,12 +59186,8 @@ func (s *Server) handleProjectsAddCollaboratorRequest(args [2]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60896,7 +59332,7 @@ func (s *Server) handleProjectsCreateColumnRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60907,12 +59343,8 @@ func (s *Server) handleProjectsCreateColumnRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61053,7 +59485,7 @@ func (s *Server) handleProjectsCreateForAuthenticatedUserRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61064,12 +59496,8 @@ func (s *Server) handleProjectsCreateForAuthenticatedUserRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61197,7 +59625,7 @@ func (s *Server) handleProjectsCreateForOrgRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61208,12 +59636,8 @@ func (s *Server) handleProjectsCreateForOrgRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61356,7 +59780,7 @@ func (s *Server) handleProjectsCreateForRepoRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61367,12 +59791,8 @@ func (s *Server) handleProjectsCreateForRepoRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61517,7 +59937,7 @@ func (s *Server) handleProjectsDeleteRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61528,12 +59948,8 @@ func (s *Server) handleProjectsDeleteRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61659,7 +60075,7 @@ func (s *Server) handleProjectsDeleteCardRequest(args [1]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61670,12 +60086,8 @@ func (s *Server) handleProjectsDeleteCardRequest(args [1]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61801,7 +60213,7 @@ func (s *Server) handleProjectsDeleteColumnRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61812,12 +60224,8 @@ func (s *Server) handleProjectsDeleteColumnRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61945,7 +60353,7 @@ func (s *Server) handleProjectsGetRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61956,12 +60364,8 @@ func (s *Server) handleProjectsGetRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62087,7 +60491,7 @@ func (s *Server) handleProjectsGetCardRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62098,12 +60502,8 @@ func (s *Server) handleProjectsGetCardRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62229,7 +60629,7 @@ func (s *Server) handleProjectsGetColumnRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62240,12 +60640,8 @@ func (s *Server) handleProjectsGetColumnRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62373,7 +60769,7 @@ func (s *Server) handleProjectsGetPermissionForUserRequest(args [2]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62384,12 +60780,8 @@ func (s *Server) handleProjectsGetPermissionForUserRequest(args [2]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62519,7 +60911,7 @@ func (s *Server) handleProjectsListCardsRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62530,12 +60922,8 @@ func (s *Server) handleProjectsListCardsRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62677,7 +61065,7 @@ func (s *Server) handleProjectsListCollaboratorsRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62688,12 +61076,8 @@ func (s *Server) handleProjectsListCollaboratorsRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62831,7 +61215,7 @@ func (s *Server) handleProjectsListColumnsRequest(args [1]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62842,12 +61226,8 @@ func (s *Server) handleProjectsListColumnsRequest(args [1]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62983,7 +61363,7 @@ func (s *Server) handleProjectsListForOrgRequest(args [1]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62994,12 +61374,8 @@ func (s *Server) handleProjectsListForOrgRequest(args [1]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63139,7 +61515,7 @@ func (s *Server) handleProjectsListForRepoRequest(args [2]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63150,12 +61526,8 @@ func (s *Server) handleProjectsListForRepoRequest(args [2]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63297,7 +61669,7 @@ func (s *Server) handleProjectsListForUserRequest(args [1]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63308,12 +61680,8 @@ func (s *Server) handleProjectsListForUserRequest(args [1]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63451,7 +61819,7 @@ func (s *Server) handleProjectsMoveCardRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63462,12 +61830,8 @@ func (s *Server) handleProjectsMoveCardRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63608,7 +61972,7 @@ func (s *Server) handleProjectsMoveColumnRequest(args [1]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63619,12 +61983,8 @@ func (s *Server) handleProjectsMoveColumnRequest(args [1]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63766,7 +62126,7 @@ func (s *Server) handleProjectsRemoveCollaboratorRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63777,12 +62137,8 @@ func (s *Server) handleProjectsRemoveCollaboratorRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63914,7 +62270,7 @@ func (s *Server) handleProjectsUpdateRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63925,12 +62281,8 @@ func (s *Server) handleProjectsUpdateRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64071,7 +62423,7 @@ func (s *Server) handleProjectsUpdateCardRequest(args [1]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64082,12 +62434,8 @@ func (s *Server) handleProjectsUpdateCardRequest(args [1]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64228,7 +62576,7 @@ func (s *Server) handleProjectsUpdateColumnRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64239,12 +62587,8 @@ func (s *Server) handleProjectsUpdateColumnRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64385,7 +62729,7 @@ func (s *Server) handlePullsCheckIfMergedRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64396,12 +62740,8 @@ func (s *Server) handlePullsCheckIfMergedRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64550,7 +62890,7 @@ func (s *Server) handlePullsCreateRequest(args [2]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64561,12 +62901,8 @@ func (s *Server) handlePullsCreateRequest(args [2]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64720,7 +63056,7 @@ func (s *Server) handlePullsCreateReplyForReviewCommentRequest(args [4]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64731,12 +63067,8 @@ func (s *Server) handlePullsCreateReplyForReviewCommentRequest(args [4]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64907,7 +63239,7 @@ func (s *Server) handlePullsCreateReviewRequest(args [3]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64918,12 +63250,8 @@ func (s *Server) handlePullsCreateReviewRequest(args [3]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65091,7 +63419,7 @@ func (s *Server) handlePullsCreateReviewCommentRequest(args [3]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65102,12 +63430,8 @@ func (s *Server) handlePullsCreateReviewCommentRequest(args [3]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65256,7 +63580,7 @@ func (s *Server) handlePullsDeletePendingReviewRequest(args [4]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65267,12 +63591,8 @@ func (s *Server) handlePullsDeletePendingReviewRequest(args [4]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65410,7 +63730,7 @@ func (s *Server) handlePullsDeleteReviewCommentRequest(args [3]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65421,12 +63741,8 @@ func (s *Server) handlePullsDeleteReviewCommentRequest(args [3]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65562,7 +63878,7 @@ func (s *Server) handlePullsDismissReviewRequest(args [4]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65573,12 +63889,8 @@ func (s *Server) handlePullsDismissReviewRequest(args [4]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65764,7 +64076,7 @@ func (s *Server) handlePullsGetRequest(args [3]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65775,12 +64087,8 @@ func (s *Server) handlePullsGetRequest(args [3]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65914,7 +64222,7 @@ func (s *Server) handlePullsGetReviewRequest(args [4]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65925,12 +64233,8 @@ func (s *Server) handlePullsGetReviewRequest(args [4]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66068,7 +64372,7 @@ func (s *Server) handlePullsGetReviewCommentRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66079,12 +64383,8 @@ func (s *Server) handlePullsGetReviewCommentRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66222,7 +64522,7 @@ func (s *Server) handlePullsListRequest(args [2]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66233,12 +64533,8 @@ func (s *Server) handlePullsListRequest(args [2]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66396,7 +64692,7 @@ func (s *Server) handlePullsListCommentsForReviewRequest(args [4]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66407,12 +64703,8 @@ func (s *Server) handlePullsListCommentsForReviewRequest(args [4]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66560,7 +64852,7 @@ func (s *Server) handlePullsListCommitsRequest(args [3]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66571,12 +64863,8 @@ func (s *Server) handlePullsListCommitsRequest(args [3]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66719,7 +65007,7 @@ func (s *Server) handlePullsListFilesRequest(args [3]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66730,12 +65018,8 @@ func (s *Server) handlePullsListFilesRequest(args [3]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66877,7 +65161,7 @@ func (s *Server) handlePullsListRequestedReviewersRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66888,12 +65172,8 @@ func (s *Server) handlePullsListRequestedReviewersRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67036,7 +65316,7 @@ func (s *Server) handlePullsListReviewCommentsRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67047,12 +65327,8 @@ func (s *Server) handlePullsListReviewCommentsRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67207,7 +65483,7 @@ func (s *Server) handlePullsListReviewCommentsForRepoRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67218,12 +65494,8 @@ func (s *Server) handlePullsListReviewCommentsForRepoRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67373,7 +65645,7 @@ func (s *Server) handlePullsListReviewsRequest(args [3]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67384,12 +65656,8 @@ func (s *Server) handlePullsListReviewsRequest(args [3]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67537,7 +65805,7 @@ func (s *Server) handlePullsMergeRequest(args [3]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67548,12 +65816,8 @@ func (s *Server) handlePullsMergeRequest(args [3]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67702,7 +65966,7 @@ func (s *Server) handlePullsRemoveRequestedReviewersRequest(args [3]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67713,12 +65977,8 @@ func (s *Server) handlePullsRemoveRequestedReviewersRequest(args [3]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67867,7 +66127,7 @@ func (s *Server) handlePullsSubmitReviewRequest(args [4]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67878,12 +66138,8 @@ func (s *Server) handlePullsSubmitReviewRequest(args [4]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68043,7 +66299,7 @@ func (s *Server) handlePullsUpdateRequest(args [3]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68054,12 +66310,8 @@ func (s *Server) handlePullsUpdateRequest(args [3]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68209,7 +66461,7 @@ func (s *Server) handlePullsUpdateBranchRequest(args [3]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68220,12 +66472,8 @@ func (s *Server) handlePullsUpdateBranchRequest(args [3]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68374,7 +66622,7 @@ func (s *Server) handlePullsUpdateReviewRequest(args [4]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68385,12 +66633,8 @@ func (s *Server) handlePullsUpdateReviewRequest(args [4]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68543,7 +66787,7 @@ func (s *Server) handlePullsUpdateReviewCommentRequest(args [3]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68554,12 +66798,8 @@ func (s *Server) handlePullsUpdateReviewCommentRequest(args [3]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68711,7 +66951,7 @@ func (s *Server) handleRateLimitGetRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68722,12 +66962,8 @@ func (s *Server) handleRateLimitGetRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68836,7 +67072,7 @@ func (s *Server) handleReactionsCreateForCommitCommentRequest(args [3]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68847,12 +67083,8 @@ func (s *Server) handleReactionsCreateForCommitCommentRequest(args [3]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69002,7 +67234,7 @@ func (s *Server) handleReactionsCreateForIssueRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69013,12 +67245,8 @@ func (s *Server) handleReactionsCreateForIssueRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69169,7 +67397,7 @@ func (s *Server) handleReactionsCreateForIssueCommentRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69180,12 +67408,8 @@ func (s *Server) handleReactionsCreateForIssueCommentRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69336,7 +67560,7 @@ func (s *Server) handleReactionsCreateForPullRequestReviewCommentRequest(args [3 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69347,12 +67571,8 @@ func (s *Server) handleReactionsCreateForPullRequestReviewCommentRequest(args [3 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69502,7 +67722,7 @@ func (s *Server) handleReactionsCreateForReleaseRequest(args [3]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69513,12 +67733,8 @@ func (s *Server) handleReactionsCreateForReleaseRequest(args [3]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69673,7 +67889,7 @@ func (s *Server) handleReactionsCreateForTeamDiscussionCommentInOrgRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69684,12 +67900,8 @@ func (s *Server) handleReactionsCreateForTeamDiscussionCommentInOrgRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69852,7 +68064,7 @@ func (s *Server) handleReactionsCreateForTeamDiscussionCommentLegacyRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69863,12 +68075,8 @@ func (s *Server) handleReactionsCreateForTeamDiscussionCommentLegacyRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70024,7 +68232,7 @@ func (s *Server) handleReactionsCreateForTeamDiscussionInOrgRequest(args [3]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70035,12 +68243,8 @@ func (s *Server) handleReactionsCreateForTeamDiscussionInOrgRequest(args [3]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70200,7 +68404,7 @@ func (s *Server) handleReactionsCreateForTeamDiscussionLegacyRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70211,12 +68415,8 @@ func (s *Server) handleReactionsCreateForTeamDiscussionLegacyRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70363,7 +68563,7 @@ func (s *Server) handleReactionsDeleteForCommitCommentRequest(args [4]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70374,12 +68574,8 @@ func (s *Server) handleReactionsDeleteForCommitCommentRequest(args [4]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70519,7 +68715,7 @@ func (s *Server) handleReactionsDeleteForIssueRequest(args [4]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70530,12 +68726,8 @@ func (s *Server) handleReactionsDeleteForIssueRequest(args [4]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70675,7 +68867,7 @@ func (s *Server) handleReactionsDeleteForIssueCommentRequest(args [4]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70686,12 +68878,8 @@ func (s *Server) handleReactionsDeleteForIssueCommentRequest(args [4]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70832,7 +69020,7 @@ func (s *Server) handleReactionsDeleteForPullRequestCommentRequest(args [4]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70843,12 +69031,8 @@ func (s *Server) handleReactionsDeleteForPullRequestCommentRequest(args [4]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70993,7 +69177,7 @@ func (s *Server) handleReactionsDeleteForTeamDiscussionRequest(args [4]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71004,12 +69188,8 @@ func (s *Server) handleReactionsDeleteForTeamDiscussionRequest(args [4]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71152,7 +69332,7 @@ func (s *Server) handleReactionsDeleteForTeamDiscussionCommentRequest(args [5]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71163,12 +69343,8 @@ func (s *Server) handleReactionsDeleteForTeamDiscussionCommentRequest(args [5]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71319,7 +69495,7 @@ func (s *Server) handleReactionsDeleteLegacyRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71330,12 +69506,8 @@ func (s *Server) handleReactionsDeleteLegacyRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71461,7 +69633,7 @@ func (s *Server) handleReactionsListForCommitCommentRequest(args [3]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71472,12 +69644,8 @@ func (s *Server) handleReactionsListForCommitCommentRequest(args [3]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71623,7 +69791,7 @@ func (s *Server) handleReactionsListForIssueRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71634,12 +69802,8 @@ func (s *Server) handleReactionsListForIssueRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71785,7 +69949,7 @@ func (s *Server) handleReactionsListForIssueCommentRequest(args [3]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71796,12 +69960,8 @@ func (s *Server) handleReactionsListForIssueCommentRequest(args [3]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71948,7 +70108,7 @@ func (s *Server) handleReactionsListForPullRequestReviewCommentRequest(args [3]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71959,12 +70119,8 @@ func (s *Server) handleReactionsListForPullRequestReviewCommentRequest(args [3]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72114,7 +70270,7 @@ func (s *Server) handleReactionsListForTeamDiscussionCommentInOrgRequest(args [4 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72125,12 +70281,8 @@ func (s *Server) handleReactionsListForTeamDiscussionCommentInOrgRequest(args [4 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72288,7 +70440,7 @@ func (s *Server) handleReactionsListForTeamDiscussionCommentLegacyRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72299,12 +70451,8 @@ func (s *Server) handleReactionsListForTeamDiscussionCommentLegacyRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72454,7 +70602,7 @@ func (s *Server) handleReactionsListForTeamDiscussionInOrgRequest(args [3]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72465,12 +70613,8 @@ func (s *Server) handleReactionsListForTeamDiscussionInOrgRequest(args [3]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72624,7 +70768,7 @@ func (s *Server) handleReactionsListForTeamDiscussionLegacyRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72635,12 +70779,8 @@ func (s *Server) handleReactionsListForTeamDiscussionLegacyRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72782,7 +70922,7 @@ func (s *Server) handleReposAcceptInvitationRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72793,12 +70933,8 @@ func (s *Server) handleReposAcceptInvitationRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72938,7 +71074,7 @@ func (s *Server) handleReposAddAppAccessRestrictionsRequest(args [3]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72949,12 +71085,8 @@ func (s *Server) handleReposAddAppAccessRestrictionsRequest(args [3]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73122,7 +71254,7 @@ func (s *Server) handleReposAddCollaboratorRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73133,12 +71265,8 @@ func (s *Server) handleReposAddCollaboratorRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73291,7 +71419,7 @@ func (s *Server) handleReposAddStatusCheckContextsRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73302,12 +71430,8 @@ func (s *Server) handleReposAddStatusCheckContextsRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73470,7 +71594,7 @@ func (s *Server) handleReposAddTeamAccessRestrictionsRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73481,12 +71605,8 @@ func (s *Server) handleReposAddTeamAccessRestrictionsRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73648,7 +71768,7 @@ func (s *Server) handleReposAddUserAccessRestrictionsRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73659,12 +71779,8 @@ func (s *Server) handleReposAddUserAccessRestrictionsRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73817,7 +71933,7 @@ func (s *Server) handleReposCheckCollaboratorRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73828,12 +71944,8 @@ func (s *Server) handleReposCheckCollaboratorRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73970,7 +72082,7 @@ func (s *Server) handleReposCheckVulnerabilityAlertsRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73981,12 +72093,8 @@ func (s *Server) handleReposCheckVulnerabilityAlertsRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74170,7 +72278,7 @@ func (s *Server) handleReposCompareCommitsRequest(args [3]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74181,12 +72289,8 @@ func (s *Server) handleReposCompareCommitsRequest(args [3]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74328,7 +72432,7 @@ func (s *Server) handleReposCreateAutolinkRequest(args [2]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74339,12 +72443,8 @@ func (s *Server) handleReposCreateAutolinkRequest(args [2]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74496,7 +72596,7 @@ func (s *Server) handleReposCreateCommitCommentRequest(args [3]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74507,12 +72607,8 @@ func (s *Server) handleReposCreateCommitCommentRequest(args [3]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74667,7 +72763,7 @@ func (s *Server) handleReposCreateCommitSignatureProtectionRequest(args [3]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74678,12 +72774,8 @@ func (s *Server) handleReposCreateCommitSignatureProtectionRequest(args [3]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74819,7 +72911,7 @@ func (s *Server) handleReposCreateCommitStatusRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74830,12 +72922,8 @@ func (s *Server) handleReposCreateCommitStatusRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74984,7 +73072,7 @@ func (s *Server) handleReposCreateDeployKeyRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74995,12 +73083,8 @@ func (s *Server) handleReposCreateDeployKeyRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75200,7 +73284,7 @@ func (s *Server) handleReposCreateDeploymentRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75211,12 +73295,8 @@ func (s *Server) handleReposCreateDeploymentRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75363,7 +73443,7 @@ func (s *Server) handleReposCreateDeploymentStatusRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75374,12 +73454,8 @@ func (s *Server) handleReposCreateDeploymentStatusRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75547,7 +73623,7 @@ func (s *Server) handleReposCreateDispatchEventRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75558,12 +73634,8 @@ func (s *Server) handleReposCreateDispatchEventRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75714,7 +73786,7 @@ func (s *Server) handleReposCreateForAuthenticatedUserRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75725,12 +73797,8 @@ func (s *Server) handleReposCreateForAuthenticatedUserRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75859,7 +73927,7 @@ func (s *Server) handleReposCreateForkRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75870,12 +73938,8 @@ func (s *Server) handleReposCreateForkRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76027,7 +74091,7 @@ func (s *Server) handleReposCreateInOrgRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76038,12 +74102,8 @@ func (s *Server) handleReposCreateInOrgRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76184,7 +74244,7 @@ func (s *Server) handleReposCreateOrUpdateFileContentsRequest(args [3]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76195,12 +74255,8 @@ func (s *Server) handleReposCreateOrUpdateFileContentsRequest(args [3]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76350,7 +74406,7 @@ func (s *Server) handleReposCreatePagesSiteRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76361,12 +74417,8 @@ func (s *Server) handleReposCreatePagesSiteRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76518,7 +74570,7 @@ func (s *Server) handleReposCreateReleaseRequest(args [2]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76529,12 +74581,8 @@ func (s *Server) handleReposCreateReleaseRequest(args [2]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76690,7 +74738,7 @@ func (s *Server) handleReposCreateUsingTemplateRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76701,12 +74749,8 @@ func (s *Server) handleReposCreateUsingTemplateRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76853,7 +74897,7 @@ func (s *Server) handleReposCreateWebhookRequest(args [2]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76864,12 +74908,8 @@ func (s *Server) handleReposCreateWebhookRequest(args [2]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77014,7 +75054,7 @@ func (s *Server) handleReposDeclineInvitationRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77025,12 +75065,8 @@ func (s *Server) handleReposDeclineInvitationRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77159,7 +75195,7 @@ func (s *Server) handleReposDeleteRequest(args [2]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77170,12 +75206,8 @@ func (s *Server) handleReposDeleteRequest(args [2]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77310,7 +75342,7 @@ func (s *Server) handleReposDeleteAccessRestrictionsRequest(args [3]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77321,12 +75353,8 @@ func (s *Server) handleReposDeleteAccessRestrictionsRequest(args [3]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77466,7 +75494,7 @@ func (s *Server) handleReposDeleteAdminBranchProtectionRequest(args [3]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77477,12 +75505,8 @@ func (s *Server) handleReposDeleteAdminBranchProtectionRequest(args [3]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77616,7 +75640,7 @@ func (s *Server) handleReposDeleteAnEnvironmentRequest(args [3]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77627,12 +75651,8 @@ func (s *Server) handleReposDeleteAnEnvironmentRequest(args [3]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77767,7 +75787,7 @@ func (s *Server) handleReposDeleteAutolinkRequest(args [3]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77778,12 +75798,8 @@ func (s *Server) handleReposDeleteAutolinkRequest(args [3]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77921,7 +75937,7 @@ func (s *Server) handleReposDeleteBranchProtectionRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77932,12 +75948,8 @@ func (s *Server) handleReposDeleteBranchProtectionRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78071,7 +76083,7 @@ func (s *Server) handleReposDeleteCommitCommentRequest(args [3]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78082,12 +76094,8 @@ func (s *Server) handleReposDeleteCommitCommentRequest(args [3]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78228,7 +76236,7 @@ func (s *Server) handleReposDeleteCommitSignatureProtectionRequest(args [3]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78239,12 +76247,8 @@ func (s *Server) handleReposDeleteCommitSignatureProtectionRequest(args [3]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78379,7 +76383,7 @@ func (s *Server) handleReposDeleteDeployKeyRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78390,12 +76394,8 @@ func (s *Server) handleReposDeleteDeployKeyRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78537,7 +76537,7 @@ func (s *Server) handleReposDeleteDeploymentRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78548,12 +76548,8 @@ func (s *Server) handleReposDeleteDeploymentRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78694,7 +76690,7 @@ func (s *Server) handleReposDeleteFileRequest(args [3]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78705,12 +76701,8 @@ func (s *Server) handleReposDeleteFileRequest(args [3]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78859,7 +76851,7 @@ func (s *Server) handleReposDeleteInvitationRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78870,12 +76862,8 @@ func (s *Server) handleReposDeleteInvitationRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79009,7 +76997,7 @@ func (s *Server) handleReposDeletePagesSiteRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79020,12 +77008,8 @@ func (s *Server) handleReposDeletePagesSiteRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79159,7 +77143,7 @@ func (s *Server) handleReposDeletePullRequestReviewProtectionRequest(args [3]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79170,12 +77154,8 @@ func (s *Server) handleReposDeletePullRequestReviewProtectionRequest(args [3]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79309,7 +77289,7 @@ func (s *Server) handleReposDeleteReleaseRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79320,12 +77300,8 @@ func (s *Server) handleReposDeleteReleaseRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79459,7 +77435,7 @@ func (s *Server) handleReposDeleteReleaseAssetRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79470,12 +77446,8 @@ func (s *Server) handleReposDeleteReleaseAssetRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79609,7 +77581,7 @@ func (s *Server) handleReposDeleteWebhookRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79620,12 +77592,8 @@ func (s *Server) handleReposDeleteWebhookRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79761,7 +77729,7 @@ func (s *Server) handleReposDisableAutomatedSecurityFixesRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79772,12 +77740,8 @@ func (s *Server) handleReposDisableAutomatedSecurityFixesRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79907,7 +77871,7 @@ func (s *Server) handleReposDisableLfsForRepoRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79918,12 +77882,8 @@ func (s *Server) handleReposDisableLfsForRepoRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80056,7 +78016,7 @@ func (s *Server) handleReposDisableVulnerabilityAlertsRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80067,12 +78027,8 @@ func (s *Server) handleReposDisableVulnerabilityAlertsRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80207,7 +78163,7 @@ func (s *Server) handleReposDownloadTarballArchiveRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80218,12 +78174,8 @@ func (s *Server) handleReposDownloadTarballArchiveRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80362,7 +78314,7 @@ func (s *Server) handleReposDownloadZipballArchiveRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80373,12 +78325,8 @@ func (s *Server) handleReposDownloadZipballArchiveRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80514,7 +78462,7 @@ func (s *Server) handleReposEnableAutomatedSecurityFixesRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80525,12 +78473,8 @@ func (s *Server) handleReposEnableAutomatedSecurityFixesRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80660,7 +78604,7 @@ func (s *Server) handleReposEnableLfsForRepoRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80671,12 +78615,8 @@ func (s *Server) handleReposEnableLfsForRepoRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80809,7 +78749,7 @@ func (s *Server) handleReposEnableVulnerabilityAlertsRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80820,12 +78760,8 @@ func (s *Server) handleReposEnableVulnerabilityAlertsRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80956,7 +78892,7 @@ func (s *Server) handleReposGetRequest(args [2]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80967,12 +78903,8 @@ func (s *Server) handleReposGetRequest(args [2]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81109,7 +79041,7 @@ func (s *Server) handleReposGetAccessRestrictionsRequest(args [3]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81120,12 +79052,8 @@ func (s *Server) handleReposGetAccessRestrictionsRequest(args [3]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81263,7 +79191,7 @@ func (s *Server) handleReposGetAdminBranchProtectionRequest(args [3]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81274,12 +79202,8 @@ func (s *Server) handleReposGetAdminBranchProtectionRequest(args [3]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81417,7 +79341,7 @@ func (s *Server) handleReposGetAllStatusCheckContextsRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81428,12 +79352,8 @@ func (s *Server) handleReposGetAllStatusCheckContextsRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81567,7 +79487,7 @@ func (s *Server) handleReposGetAllTopicsRequest(args [2]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81578,12 +79498,8 @@ func (s *Server) handleReposGetAllTopicsRequest(args [2]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81728,7 +79644,7 @@ func (s *Server) handleReposGetAppsWithAccessToProtectedBranchRequest(args [3]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81739,12 +79655,8 @@ func (s *Server) handleReposGetAppsWithAccessToProtectedBranchRequest(args [3]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81879,7 +79791,7 @@ func (s *Server) handleReposGetAutolinkRequest(args [3]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81890,12 +79802,8 @@ func (s *Server) handleReposGetAutolinkRequest(args [3]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82029,7 +79937,7 @@ func (s *Server) handleReposGetBranchRequest(args [3]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82040,12 +79948,8 @@ func (s *Server) handleReposGetBranchRequest(args [3]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82183,7 +80087,7 @@ func (s *Server) handleReposGetBranchProtectionRequest(args [3]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82194,12 +80098,8 @@ func (s *Server) handleReposGetBranchProtectionRequest(args [3]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82334,7 +80234,7 @@ func (s *Server) handleReposGetClonesRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82345,12 +80245,8 @@ func (s *Server) handleReposGetClonesRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82484,7 +80380,7 @@ func (s *Server) handleReposGetCodeFrequencyStatsRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82495,12 +80391,8 @@ func (s *Server) handleReposGetCodeFrequencyStatsRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82631,7 +80523,7 @@ func (s *Server) handleReposGetCollaboratorPermissionLevelRequest(args [3]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82642,12 +80534,8 @@ func (s *Server) handleReposGetCollaboratorPermissionLevelRequest(args [3]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82789,7 +80677,7 @@ func (s *Server) handleReposGetCombinedStatusForRefRequest(args [3]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82800,12 +80688,8 @@ func (s *Server) handleReposGetCombinedStatusForRefRequest(args [3]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82993,7 +80877,7 @@ func (s *Server) handleReposGetCommitRequest(args [3]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83004,12 +80888,8 @@ func (s *Server) handleReposGetCommitRequest(args [3]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83152,7 +81032,7 @@ func (s *Server) handleReposGetCommitActivityStatsRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83163,12 +81043,8 @@ func (s *Server) handleReposGetCommitActivityStatsRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83298,7 +81174,7 @@ func (s *Server) handleReposGetCommitCommentRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83309,12 +81185,8 @@ func (s *Server) handleReposGetCommitCommentRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83457,7 +81329,7 @@ func (s *Server) handleReposGetCommitSignatureProtectionRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83468,12 +81340,8 @@ func (s *Server) handleReposGetCommitSignatureProtectionRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83616,7 +81484,7 @@ func (s *Server) handleReposGetCommunityProfileMetricsRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83627,12 +81495,8 @@ func (s *Server) handleReposGetCommunityProfileMetricsRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83767,7 +81631,7 @@ func (s *Server) handleReposGetContributorsStatsRequest(args [2]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83778,12 +81642,8 @@ func (s *Server) handleReposGetContributorsStatsRequest(args [2]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83913,7 +81773,7 @@ func (s *Server) handleReposGetDeployKeyRequest(args [3]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83924,12 +81784,8 @@ func (s *Server) handleReposGetDeployKeyRequest(args [3]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84063,7 +81919,7 @@ func (s *Server) handleReposGetDeploymentRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84074,12 +81930,8 @@ func (s *Server) handleReposGetDeploymentRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84213,7 +82065,7 @@ func (s *Server) handleReposGetDeploymentStatusRequest(args [4]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84224,12 +82076,8 @@ func (s *Server) handleReposGetDeploymentStatusRequest(args [4]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84367,7 +82215,7 @@ func (s *Server) handleReposGetLatestPagesBuildRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84378,12 +82226,8 @@ func (s *Server) handleReposGetLatestPagesBuildRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84516,7 +82360,7 @@ func (s *Server) handleReposGetLatestReleaseRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84527,12 +82371,8 @@ func (s *Server) handleReposGetLatestReleaseRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84662,7 +82502,7 @@ func (s *Server) handleReposGetPagesRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84673,12 +82513,8 @@ func (s *Server) handleReposGetPagesRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84808,7 +82644,7 @@ func (s *Server) handleReposGetPagesBuildRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84819,12 +82655,8 @@ func (s *Server) handleReposGetPagesBuildRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84964,7 +82796,7 @@ func (s *Server) handleReposGetPagesHealthCheckRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84975,12 +82807,8 @@ func (s *Server) handleReposGetPagesHealthCheckRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85113,7 +82941,7 @@ func (s *Server) handleReposGetParticipationStatsRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85124,12 +82952,8 @@ func (s *Server) handleReposGetParticipationStatsRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85263,7 +83087,7 @@ func (s *Server) handleReposGetPullRequestReviewProtectionRequest(args [3]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85274,12 +83098,8 @@ func (s *Server) handleReposGetPullRequestReviewProtectionRequest(args [3]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85418,7 +83238,7 @@ func (s *Server) handleReposGetPunchCardStatsRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85429,12 +83249,8 @@ func (s *Server) handleReposGetPunchCardStatsRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85566,7 +83382,7 @@ func (s *Server) handleReposGetReadmeRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85577,12 +83393,8 @@ func (s *Server) handleReposGetReadmeRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85718,7 +83530,7 @@ func (s *Server) handleReposGetReadmeInDirectoryRequest(args [3]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85729,12 +83541,8 @@ func (s *Server) handleReposGetReadmeInDirectoryRequest(args [3]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85874,7 +83682,7 @@ func (s *Server) handleReposGetReleaseRequest(args [3]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85885,12 +83693,8 @@ func (s *Server) handleReposGetReleaseRequest(args [3]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86027,7 +83831,7 @@ func (s *Server) handleReposGetReleaseAssetRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86038,12 +83842,8 @@ func (s *Server) handleReposGetReleaseAssetRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86177,7 +83977,7 @@ func (s *Server) handleReposGetReleaseByTagRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86188,12 +83988,8 @@ func (s *Server) handleReposGetReleaseByTagRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86331,7 +84127,7 @@ func (s *Server) handleReposGetStatusChecksProtectionRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86342,12 +84138,8 @@ func (s *Server) handleReposGetStatusChecksProtectionRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86486,7 +84278,7 @@ func (s *Server) handleReposGetTeamsWithAccessToProtectedBranchRequest(args [3]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86497,12 +84289,8 @@ func (s *Server) handleReposGetTeamsWithAccessToProtectedBranchRequest(args [3]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86636,7 +84424,7 @@ func (s *Server) handleReposGetTopPathsRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86647,12 +84435,8 @@ func (s *Server) handleReposGetTopPathsRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86782,7 +84566,7 @@ func (s *Server) handleReposGetTopReferrersRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86793,12 +84577,8 @@ func (s *Server) handleReposGetTopReferrersRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86933,7 +84713,7 @@ func (s *Server) handleReposGetUsersWithAccessToProtectedBranchRequest(args [3]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86944,12 +84724,8 @@ func (s *Server) handleReposGetUsersWithAccessToProtectedBranchRequest(args [3]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87084,7 +84860,7 @@ func (s *Server) handleReposGetViewsRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87095,12 +84871,8 @@ func (s *Server) handleReposGetViewsRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87236,7 +85008,7 @@ func (s *Server) handleReposGetWebhookRequest(args [3]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87247,12 +85019,8 @@ func (s *Server) handleReposGetWebhookRequest(args [3]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87390,7 +85158,7 @@ func (s *Server) handleReposGetWebhookConfigForRepoRequest(args [3]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87401,12 +85169,8 @@ func (s *Server) handleReposGetWebhookConfigForRepoRequest(args [3]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87540,7 +85304,7 @@ func (s *Server) handleReposGetWebhookDeliveryRequest(args [4]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87551,12 +85315,8 @@ func (s *Server) handleReposGetWebhookDeliveryRequest(args [4]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87695,7 +85455,7 @@ func (s *Server) handleReposListAutolinksRequest(args [2]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87706,12 +85466,8 @@ func (s *Server) handleReposListAutolinksRequest(args [2]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87845,7 +85601,7 @@ func (s *Server) handleReposListBranchesRequest(args [2]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87856,12 +85612,8 @@ func (s *Server) handleReposListBranchesRequest(args [2]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88008,7 +85760,7 @@ func (s *Server) handleReposListBranchesForHeadCommitRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88019,12 +85771,8 @@ func (s *Server) handleReposListBranchesForHeadCommitRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88162,7 +85910,7 @@ func (s *Server) handleReposListCollaboratorsRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88173,12 +85921,8 @@ func (s *Server) handleReposListCollaboratorsRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88320,7 +86064,7 @@ func (s *Server) handleReposListCommentsForCommitRequest(args [3]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88331,12 +86075,8 @@ func (s *Server) handleReposListCommentsForCommitRequest(args [3]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88481,7 +86221,7 @@ func (s *Server) handleReposListCommitCommentsForRepoRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88492,12 +86232,8 @@ func (s *Server) handleReposListCommitCommentsForRepoRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88638,7 +86374,7 @@ func (s *Server) handleReposListCommitStatusesForRefRequest(args [3]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88649,12 +86385,8 @@ func (s *Server) handleReposListCommitStatusesForRefRequest(args [3]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88827,7 +86559,7 @@ func (s *Server) handleReposListCommitsRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88838,12 +86570,8 @@ func (s *Server) handleReposListCommitsRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89007,7 +86735,7 @@ func (s *Server) handleReposListContributorsRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89018,12 +86746,8 @@ func (s *Server) handleReposListContributorsRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89165,7 +86889,7 @@ func (s *Server) handleReposListDeployKeysRequest(args [2]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89176,12 +86900,8 @@ func (s *Server) handleReposListDeployKeysRequest(args [2]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89319,7 +87039,7 @@ func (s *Server) handleReposListDeploymentStatusesRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89330,12 +87050,8 @@ func (s *Server) handleReposListDeploymentStatusesRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89477,7 +87193,7 @@ func (s *Server) handleReposListDeploymentsRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89488,12 +87204,8 @@ func (s *Server) handleReposListDeploymentsRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89650,7 +87362,7 @@ func (s *Server) handleReposListForAuthenticatedUserRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89661,12 +87373,8 @@ func (s *Server) handleReposListForAuthenticatedUserRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89824,7 +87532,7 @@ func (s *Server) handleReposListForOrgRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89835,12 +87543,8 @@ func (s *Server) handleReposListForOrgRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89987,7 +87691,7 @@ func (s *Server) handleReposListForUserRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89998,12 +87702,8 @@ func (s *Server) handleReposListForUserRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90149,7 +87849,7 @@ func (s *Server) handleReposListForksRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90160,12 +87860,8 @@ func (s *Server) handleReposListForksRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90308,7 +88004,7 @@ func (s *Server) handleReposListInvitationsRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90319,12 +88015,8 @@ func (s *Server) handleReposListInvitationsRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90463,7 +88155,7 @@ func (s *Server) handleReposListInvitationsForAuthenticatedUserRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90474,12 +88166,8 @@ func (s *Server) handleReposListInvitationsForAuthenticatedUserRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90610,7 +88298,7 @@ func (s *Server) handleReposListLanguagesRequest(args [2]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90621,12 +88309,8 @@ func (s *Server) handleReposListLanguagesRequest(args [2]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90756,7 +88440,7 @@ func (s *Server) handleReposListPagesBuildsRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90767,12 +88451,8 @@ func (s *Server) handleReposListPagesBuildsRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90916,7 +88596,7 @@ func (s *Server) handleReposListPublicRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90927,12 +88607,8 @@ func (s *Server) handleReposListPublicRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91063,7 +88739,7 @@ func (s *Server) handleReposListPullRequestsAssociatedWithCommitRequest(args [3] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91074,12 +88750,8 @@ func (s *Server) handleReposListPullRequestsAssociatedWithCommitRequest(args [3] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91221,7 +88893,7 @@ func (s *Server) handleReposListReleaseAssetsRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91232,12 +88904,8 @@ func (s *Server) handleReposListReleaseAssetsRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91383,7 +89051,7 @@ func (s *Server) handleReposListReleasesRequest(args [2]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91394,12 +89062,8 @@ func (s *Server) handleReposListReleasesRequest(args [2]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91537,7 +89201,7 @@ func (s *Server) handleReposListTagsRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91548,12 +89212,8 @@ func (s *Server) handleReposListTagsRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91691,7 +89351,7 @@ func (s *Server) handleReposListTeamsRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91702,12 +89362,8 @@ func (s *Server) handleReposListTeamsRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91845,7 +89501,7 @@ func (s *Server) handleReposListWebhookDeliveriesRequest(args [3]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91856,12 +89512,8 @@ func (s *Server) handleReposListWebhookDeliveriesRequest(args [3]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92003,7 +89655,7 @@ func (s *Server) handleReposListWebhooksRequest(args [2]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92014,12 +89666,8 @@ func (s *Server) handleReposListWebhooksRequest(args [2]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92157,7 +89805,7 @@ func (s *Server) handleReposMergeRequest(args [2]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92168,12 +89816,8 @@ func (s *Server) handleReposMergeRequest(args [2]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92319,7 +89963,7 @@ func (s *Server) handleReposMergeUpstreamRequest(args [2]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92330,12 +89974,8 @@ func (s *Server) handleReposMergeUpstreamRequest(args [2]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92481,7 +90121,7 @@ func (s *Server) handleReposPingWebhookRequest(args [3]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92492,12 +90132,8 @@ func (s *Server) handleReposPingWebhookRequest(args [3]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92631,7 +90267,7 @@ func (s *Server) handleReposRedeliverWebhookDeliveryRequest(args [4]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92642,12 +90278,8 @@ func (s *Server) handleReposRedeliverWebhookDeliveryRequest(args [4]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92799,7 +90431,7 @@ func (s *Server) handleReposRemoveAppAccessRestrictionsRequest(args [3]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92810,12 +90442,8 @@ func (s *Server) handleReposRemoveAppAccessRestrictionsRequest(args [3]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92964,7 +90592,7 @@ func (s *Server) handleReposRemoveCollaboratorRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92975,12 +90603,8 @@ func (s *Server) handleReposRemoveCollaboratorRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93118,7 +90742,7 @@ func (s *Server) handleReposRemoveStatusCheckContextsRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93129,12 +90753,8 @@ func (s *Server) handleReposRemoveStatusCheckContextsRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93287,7 +90907,7 @@ func (s *Server) handleReposRemoveStatusCheckProtectionRequest(args [3]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93298,12 +90918,8 @@ func (s *Server) handleReposRemoveStatusCheckProtectionRequest(args [3]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93451,7 +91067,7 @@ func (s *Server) handleReposRemoveTeamAccessRestrictionsRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93462,12 +91078,8 @@ func (s *Server) handleReposRemoveTeamAccessRestrictionsRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93629,7 +91241,7 @@ func (s *Server) handleReposRemoveUserAccessRestrictionsRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93640,12 +91252,8 @@ func (s *Server) handleReposRemoveUserAccessRestrictionsRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93806,7 +91414,7 @@ func (s *Server) handleReposRenameBranchRequest(args [3]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93817,12 +91425,8 @@ func (s *Server) handleReposRenameBranchRequest(args [3]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93971,7 +91575,7 @@ func (s *Server) handleReposReplaceAllTopicsRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93982,12 +91586,8 @@ func (s *Server) handleReposReplaceAllTopicsRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94137,7 +91737,7 @@ func (s *Server) handleReposRequestPagesBuildRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94148,12 +91748,8 @@ func (s *Server) handleReposRequestPagesBuildRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94289,7 +91885,7 @@ func (s *Server) handleReposSetAdminBranchProtectionRequest(args [3]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94300,12 +91896,8 @@ func (s *Server) handleReposSetAdminBranchProtectionRequest(args [3]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94455,7 +92047,7 @@ func (s *Server) handleReposSetAppAccessRestrictionsRequest(args [3]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94466,12 +92058,8 @@ func (s *Server) handleReposSetAppAccessRestrictionsRequest(args [3]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94624,7 +92212,7 @@ func (s *Server) handleReposSetStatusCheckContextsRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94635,12 +92223,8 @@ func (s *Server) handleReposSetStatusCheckContextsRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94804,7 +92388,7 @@ func (s *Server) handleReposSetTeamAccessRestrictionsRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94815,12 +92399,8 @@ func (s *Server) handleReposSetTeamAccessRestrictionsRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94983,7 +92563,7 @@ func (s *Server) handleReposSetUserAccessRestrictionsRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94994,12 +92574,8 @@ func (s *Server) handleReposSetUserAccessRestrictionsRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95151,7 +92727,7 @@ func (s *Server) handleReposTestPushWebhookRequest(args [3]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95162,12 +92738,8 @@ func (s *Server) handleReposTestPushWebhookRequest(args [3]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95305,7 +92877,7 @@ func (s *Server) handleReposTransferRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95316,12 +92888,8 @@ func (s *Server) handleReposTransferRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95467,7 +93035,7 @@ func (s *Server) handleReposUpdateRequest(args [2]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95478,12 +93046,8 @@ func (s *Server) handleReposUpdateRequest(args [2]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95635,7 +93199,7 @@ func (s *Server) handleReposUpdateBranchProtectionRequest(args [3]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95646,12 +93210,8 @@ func (s *Server) handleReposUpdateBranchProtectionRequest(args [3]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95800,7 +93360,7 @@ func (s *Server) handleReposUpdateCommitCommentRequest(args [3]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95811,12 +93371,8 @@ func (s *Server) handleReposUpdateCommitCommentRequest(args [3]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95965,7 +93521,7 @@ func (s *Server) handleReposUpdateInvitationRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95976,12 +93532,8 @@ func (s *Server) handleReposUpdateInvitationRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96137,7 +93689,7 @@ func (s *Server) handleReposUpdatePullRequestReviewProtectionRequest(args [3]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96148,12 +93700,8 @@ func (s *Server) handleReposUpdatePullRequestReviewProtectionRequest(args [3]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96302,7 +93850,7 @@ func (s *Server) handleReposUpdateReleaseRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96313,12 +93861,8 @@ func (s *Server) handleReposUpdateReleaseRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96467,7 +94011,7 @@ func (s *Server) handleReposUpdateReleaseAssetRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96478,12 +94022,8 @@ func (s *Server) handleReposUpdateReleaseAssetRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96638,7 +94178,7 @@ func (s *Server) handleReposUpdateStatusCheckProtectionRequest(args [3]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96649,12 +94189,8 @@ func (s *Server) handleReposUpdateStatusCheckProtectionRequest(args [3]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96806,7 +94342,7 @@ func (s *Server) handleReposUpdateWebhookRequest(args [3]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96817,12 +94353,8 @@ func (s *Server) handleReposUpdateWebhookRequest(args [3]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96975,7 +94507,7 @@ func (s *Server) handleReposUpdateWebhookConfigForRepoRequest(args [3]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96986,12 +94518,8 @@ func (s *Server) handleReposUpdateWebhookConfigForRepoRequest(args [3]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97165,7 +94693,7 @@ func (s *Server) handleReposUploadReleaseAssetRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97176,12 +94704,8 @@ func (s *Server) handleReposUploadReleaseAssetRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97338,7 +94862,7 @@ func (s *Server) handleScimDeleteUserFromOrgRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97349,12 +94873,8 @@ func (s *Server) handleScimDeleteUserFromOrgRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97503,7 +95023,7 @@ func (s *Server) handleSearchCodeRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97514,12 +95034,8 @@ func (s *Server) handleSearchCodeRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97671,7 +95187,7 @@ func (s *Server) handleSearchCommitsRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97682,12 +95198,8 @@ func (s *Server) handleSearchCommitsRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97851,7 +95363,7 @@ func (s *Server) handleSearchIssuesAndPullRequestsRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97862,12 +95374,8 @@ func (s *Server) handleSearchIssuesAndPullRequestsRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98018,7 +95526,7 @@ func (s *Server) handleSearchLabelsRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98029,12 +95537,8 @@ func (s *Server) handleSearchLabelsRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98195,7 +95699,7 @@ func (s *Server) handleSearchReposRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98206,12 +95710,8 @@ func (s *Server) handleSearchReposRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98366,7 +95866,7 @@ func (s *Server) handleSearchTopicsRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98377,12 +95877,8 @@ func (s *Server) handleSearchTopicsRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98527,7 +96023,7 @@ func (s *Server) handleSearchUsersRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98538,12 +96034,8 @@ func (s *Server) handleSearchUsersRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98688,7 +96180,7 @@ func (s *Server) handleSecretScanningGetAlertRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98699,12 +96191,8 @@ func (s *Server) handleSecretScanningGetAlertRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98842,7 +96330,7 @@ func (s *Server) handleSecretScanningListAlertsForOrgRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98853,12 +96341,8 @@ func (s *Server) handleSecretScanningListAlertsForOrgRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99003,7 +96487,7 @@ func (s *Server) handleSecretScanningListAlertsForRepoRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99014,12 +96498,8 @@ func (s *Server) handleSecretScanningListAlertsForRepoRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99168,7 +96648,7 @@ func (s *Server) handleSecretScanningUpdateAlertRequest(args [3]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99179,12 +96659,8 @@ func (s *Server) handleSecretScanningUpdateAlertRequest(args [3]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99354,7 +96830,7 @@ func (s *Server) handleTeamsAddMemberLegacyRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99365,12 +96841,8 @@ func (s *Server) handleTeamsAddMemberLegacyRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99521,7 +96993,7 @@ func (s *Server) handleTeamsAddOrUpdateMembershipForUserInOrgRequest(args [3]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99532,12 +97004,8 @@ func (s *Server) handleTeamsAddOrUpdateMembershipForUserInOrgRequest(args [3]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99712,7 +97180,7 @@ func (s *Server) handleTeamsAddOrUpdateMembershipForUserLegacyRequest(args [2]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99723,12 +97191,8 @@ func (s *Server) handleTeamsAddOrUpdateMembershipForUserLegacyRequest(args [2]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99877,7 +97341,7 @@ func (s *Server) handleTeamsAddOrUpdateProjectPermissionsInOrgRequest(args [3]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99888,12 +97352,8 @@ func (s *Server) handleTeamsAddOrUpdateProjectPermissionsInOrgRequest(args [3]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100050,7 +97510,7 @@ func (s *Server) handleTeamsAddOrUpdateProjectPermissionsLegacyRequest(args [2]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100061,12 +97521,8 @@ func (s *Server) handleTeamsAddOrUpdateProjectPermissionsLegacyRequest(args [2]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100222,7 +97678,7 @@ func (s *Server) handleTeamsAddOrUpdateRepoPermissionsInOrgRequest(args [4]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100233,12 +97689,8 @@ func (s *Server) handleTeamsAddOrUpdateRepoPermissionsInOrgRequest(args [4]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100404,7 +97856,7 @@ func (s *Server) handleTeamsAddOrUpdateRepoPermissionsLegacyRequest(args [3]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100415,12 +97867,8 @@ func (s *Server) handleTeamsAddOrUpdateRepoPermissionsLegacyRequest(args [3]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100572,7 +98020,7 @@ func (s *Server) handleTeamsCheckPermissionsForProjectInOrgRequest(args [3]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100583,12 +98031,8 @@ func (s *Server) handleTeamsCheckPermissionsForProjectInOrgRequest(args [3]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100729,7 +98173,7 @@ func (s *Server) handleTeamsCheckPermissionsForProjectLegacyRequest(args [2]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100740,12 +98184,8 @@ func (s *Server) handleTeamsCheckPermissionsForProjectLegacyRequest(args [2]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100883,7 +98323,7 @@ func (s *Server) handleTeamsCheckPermissionsForRepoInOrgRequest(args [4]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100894,12 +98334,8 @@ func (s *Server) handleTeamsCheckPermissionsForRepoInOrgRequest(args [4]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101046,7 +98482,7 @@ func (s *Server) handleTeamsCheckPermissionsForRepoLegacyRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101057,12 +98493,8 @@ func (s *Server) handleTeamsCheckPermissionsForRepoLegacyRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101203,7 +98635,7 @@ func (s *Server) handleTeamsCreateRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101214,12 +98646,8 @@ func (s *Server) handleTeamsCreateRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101370,7 +98798,7 @@ func (s *Server) handleTeamsCreateDiscussionCommentInOrgRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101381,12 +98809,8 @@ func (s *Server) handleTeamsCreateDiscussionCommentInOrgRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101548,7 +98972,7 @@ func (s *Server) handleTeamsCreateDiscussionCommentLegacyRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101559,12 +98983,8 @@ func (s *Server) handleTeamsCreateDiscussionCommentLegacyRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101719,7 +99139,7 @@ func (s *Server) handleTeamsCreateDiscussionInOrgRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101730,12 +99150,8 @@ func (s *Server) handleTeamsCreateDiscussionInOrgRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101893,7 +99309,7 @@ func (s *Server) handleTeamsCreateDiscussionLegacyRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101904,12 +99320,8 @@ func (s *Server) handleTeamsCreateDiscussionLegacyRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102057,7 +99469,7 @@ func (s *Server) handleTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102068,12 +99480,8 @@ func (s *Server) handleTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102229,7 +99637,7 @@ func (s *Server) handleTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102240,12 +99648,8 @@ func (s *Server) handleTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102389,7 +99793,7 @@ func (s *Server) handleTeamsDeleteDiscussionCommentInOrgRequest(args [4]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102400,12 +99804,8 @@ func (s *Server) handleTeamsDeleteDiscussionCommentInOrgRequest(args [4]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102549,7 +99949,7 @@ func (s *Server) handleTeamsDeleteDiscussionCommentLegacyRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102560,12 +99960,8 @@ func (s *Server) handleTeamsDeleteDiscussionCommentLegacyRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102702,7 +100098,7 @@ func (s *Server) handleTeamsDeleteDiscussionInOrgRequest(args [3]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102713,12 +100109,8 @@ func (s *Server) handleTeamsDeleteDiscussionInOrgRequest(args [3]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102858,7 +100250,7 @@ func (s *Server) handleTeamsDeleteDiscussionLegacyRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102869,12 +100261,8 @@ func (s *Server) handleTeamsDeleteDiscussionLegacyRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103008,7 +100396,7 @@ func (s *Server) handleTeamsDeleteInOrgRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103019,12 +100407,8 @@ func (s *Server) handleTeamsDeleteInOrgRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103161,7 +100545,7 @@ func (s *Server) handleTeamsDeleteLegacyRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103172,12 +100556,8 @@ func (s *Server) handleTeamsDeleteLegacyRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103305,7 +100685,7 @@ func (s *Server) handleTeamsGetByNameRequest(args [2]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103316,12 +100696,8 @@ func (s *Server) handleTeamsGetByNameRequest(args [2]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103454,7 +100830,7 @@ func (s *Server) handleTeamsGetDiscussionCommentInOrgRequest(args [4]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103465,12 +100841,8 @@ func (s *Server) handleTeamsGetDiscussionCommentInOrgRequest(args [4]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103614,7 +100986,7 @@ func (s *Server) handleTeamsGetDiscussionCommentLegacyRequest(args [3]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103625,12 +100997,8 @@ func (s *Server) handleTeamsGetDiscussionCommentLegacyRequest(args [3]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103767,7 +101135,7 @@ func (s *Server) handleTeamsGetDiscussionInOrgRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103778,12 +101146,8 @@ func (s *Server) handleTeamsGetDiscussionInOrgRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103923,7 +101287,7 @@ func (s *Server) handleTeamsGetDiscussionLegacyRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103934,12 +101298,8 @@ func (s *Server) handleTeamsGetDiscussionLegacyRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104073,7 +101433,7 @@ func (s *Server) handleTeamsGetLegacyRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104084,12 +101444,8 @@ func (s *Server) handleTeamsGetLegacyRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104221,7 +101577,7 @@ func (s *Server) handleTeamsGetMemberLegacyRequest(args [2]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104232,12 +101588,8 @@ func (s *Server) handleTeamsGetMemberLegacyRequest(args [2]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104374,7 +101726,7 @@ func (s *Server) handleTeamsGetMembershipForUserInOrgRequest(args [3]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104385,12 +101737,8 @@ func (s *Server) handleTeamsGetMembershipForUserInOrgRequest(args [3]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104534,7 +101882,7 @@ func (s *Server) handleTeamsGetMembershipForUserLegacyRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104545,12 +101893,8 @@ func (s *Server) handleTeamsGetMembershipForUserLegacyRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104680,7 +102024,7 @@ func (s *Server) handleTeamsListRequest(args [1]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104691,12 +102035,8 @@ func (s *Server) handleTeamsListRequest(args [1]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104832,7 +102172,7 @@ func (s *Server) handleTeamsListChildInOrgRequest(args [2]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104843,12 +102183,8 @@ func (s *Server) handleTeamsListChildInOrgRequest(args [2]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104990,7 +102326,7 @@ func (s *Server) handleTeamsListChildLegacyRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105001,12 +102337,8 @@ func (s *Server) handleTeamsListChildLegacyRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105143,7 +102475,7 @@ func (s *Server) handleTeamsListDiscussionCommentsInOrgRequest(args [3]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105154,12 +102486,8 @@ func (s *Server) handleTeamsListDiscussionCommentsInOrgRequest(args [3]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105311,7 +102639,7 @@ func (s *Server) handleTeamsListDiscussionCommentsLegacyRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105322,12 +102650,8 @@ func (s *Server) handleTeamsListDiscussionCommentsLegacyRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105472,7 +102796,7 @@ func (s *Server) handleTeamsListDiscussionsInOrgRequest(args [2]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105483,12 +102807,8 @@ func (s *Server) handleTeamsListDiscussionsInOrgRequest(args [2]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105640,7 +102960,7 @@ func (s *Server) handleTeamsListDiscussionsLegacyRequest(args [1]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105651,12 +102971,8 @@ func (s *Server) handleTeamsListDiscussionsLegacyRequest(args [1]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105797,7 +103113,7 @@ func (s *Server) handleTeamsListForAuthenticatedUserRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105808,12 +103124,8 @@ func (s *Server) handleTeamsListForAuthenticatedUserRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105951,7 +103263,7 @@ func (s *Server) handleTeamsListIdpGroupsForLegacyRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105962,12 +103274,8 @@ func (s *Server) handleTeamsListIdpGroupsForLegacyRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106099,7 +103407,7 @@ func (s *Server) handleTeamsListIdpGroupsForOrgRequest(args [1]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106110,12 +103418,8 @@ func (s *Server) handleTeamsListIdpGroupsForOrgRequest(args [1]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106254,7 +103558,7 @@ func (s *Server) handleTeamsListIdpGroupsInOrgRequest(args [2]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106265,12 +103569,8 @@ func (s *Server) handleTeamsListIdpGroupsInOrgRequest(args [2]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106401,7 +103701,7 @@ func (s *Server) handleTeamsListMembersInOrgRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106412,12 +103712,8 @@ func (s *Server) handleTeamsListMembersInOrgRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106564,7 +103860,7 @@ func (s *Server) handleTeamsListMembersLegacyRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106575,12 +103871,8 @@ func (s *Server) handleTeamsListMembersLegacyRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106723,7 +104015,7 @@ func (s *Server) handleTeamsListPendingInvitationsInOrgRequest(args [2]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106734,12 +104026,8 @@ func (s *Server) handleTeamsListPendingInvitationsInOrgRequest(args [2]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106885,7 +104173,7 @@ func (s *Server) handleTeamsListPendingInvitationsLegacyRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106896,12 +104184,8 @@ func (s *Server) handleTeamsListPendingInvitationsLegacyRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107037,7 +104321,7 @@ func (s *Server) handleTeamsListProjectsInOrgRequest(args [2]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107048,12 +104332,8 @@ func (s *Server) handleTeamsListProjectsInOrgRequest(args [2]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107196,7 +104476,7 @@ func (s *Server) handleTeamsListProjectsLegacyRequest(args [1]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107207,12 +104487,8 @@ func (s *Server) handleTeamsListProjectsLegacyRequest(args [1]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107348,7 +104624,7 @@ func (s *Server) handleTeamsListReposInOrgRequest(args [2]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107359,12 +104635,8 @@ func (s *Server) handleTeamsListReposInOrgRequest(args [2]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107506,7 +104778,7 @@ func (s *Server) handleTeamsListReposLegacyRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107517,12 +104789,8 @@ func (s *Server) handleTeamsListReposLegacyRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107676,7 +104944,7 @@ func (s *Server) handleTeamsRemoveMemberLegacyRequest(args [2]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107687,12 +104955,8 @@ func (s *Server) handleTeamsRemoveMemberLegacyRequest(args [2]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107836,7 +105100,7 @@ func (s *Server) handleTeamsRemoveMembershipForUserInOrgRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107847,12 +105111,8 @@ func (s *Server) handleTeamsRemoveMembershipForUserInOrgRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108003,7 +105263,7 @@ func (s *Server) handleTeamsRemoveMembershipForUserLegacyRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108014,12 +105274,8 @@ func (s *Server) handleTeamsRemoveMembershipForUserLegacyRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108154,7 +105410,7 @@ func (s *Server) handleTeamsRemoveProjectInOrgRequest(args [3]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108165,12 +105421,8 @@ func (s *Server) handleTeamsRemoveProjectInOrgRequest(args [3]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108312,7 +105564,7 @@ func (s *Server) handleTeamsRemoveProjectLegacyRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108323,12 +105575,8 @@ func (s *Server) handleTeamsRemoveProjectLegacyRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108463,7 +105711,7 @@ func (s *Server) handleTeamsRemoveRepoInOrgRequest(args [4]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108474,12 +105722,8 @@ func (s *Server) handleTeamsRemoveRepoInOrgRequest(args [4]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108625,7 +105869,7 @@ func (s *Server) handleTeamsRemoveRepoLegacyRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108636,12 +105880,8 @@ func (s *Server) handleTeamsRemoveRepoLegacyRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108778,7 +106018,7 @@ func (s *Server) handleTeamsUpdateDiscussionCommentInOrgRequest(args [4]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108789,12 +106029,8 @@ func (s *Server) handleTeamsUpdateDiscussionCommentInOrgRequest(args [4]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108953,7 +106189,7 @@ func (s *Server) handleTeamsUpdateDiscussionCommentLegacyRequest(args [3]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108964,12 +106200,8 @@ func (s *Server) handleTeamsUpdateDiscussionCommentLegacyRequest(args [3]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109122,7 +106354,7 @@ func (s *Server) handleTeamsUpdateDiscussionInOrgRequest(args [3]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109133,12 +106365,8 @@ func (s *Server) handleTeamsUpdateDiscussionInOrgRequest(args [3]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109294,7 +106522,7 @@ func (s *Server) handleTeamsUpdateDiscussionLegacyRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109305,12 +106533,8 @@ func (s *Server) handleTeamsUpdateDiscussionLegacyRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109457,7 +106681,7 @@ func (s *Server) handleTeamsUpdateInOrgRequest(args [2]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109468,12 +106692,8 @@ func (s *Server) handleTeamsUpdateInOrgRequest(args [2]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109624,7 +106844,7 @@ func (s *Server) handleTeamsUpdateLegacyRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109635,12 +106855,8 @@ func (s *Server) handleTeamsUpdateLegacyRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109781,7 +106997,7 @@ func (s *Server) handleUsersAddEmailForAuthenticatedRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109792,12 +107008,8 @@ func (s *Server) handleUsersAddEmailForAuthenticatedRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109923,7 +107135,7 @@ func (s *Server) handleUsersBlockRequest(args [1]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109934,12 +107146,8 @@ func (s *Server) handleUsersBlockRequest(args [1]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110065,7 +107273,7 @@ func (s *Server) handleUsersCheckBlockedRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110076,12 +107284,8 @@ func (s *Server) handleUsersCheckBlockedRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110207,7 +107411,7 @@ func (s *Server) handleUsersCheckFollowingForUserRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110218,12 +107422,8 @@ func (s *Server) handleUsersCheckFollowingForUserRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110353,7 +107553,7 @@ func (s *Server) handleUsersCheckPersonIsFollowedByAuthenticatedRequest(args [1] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110364,12 +107564,8 @@ func (s *Server) handleUsersCheckPersonIsFollowedByAuthenticatedRequest(args [1] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110497,7 +107693,7 @@ func (s *Server) handleUsersCreateGpgKeyForAuthenticatedRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110508,12 +107704,8 @@ func (s *Server) handleUsersCreateGpgKeyForAuthenticatedRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110641,7 +107833,7 @@ func (s *Server) handleUsersCreatePublicSSHKeyForAuthenticatedRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110652,12 +107844,8 @@ func (s *Server) handleUsersCreatePublicSSHKeyForAuthenticatedRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110783,7 +107971,7 @@ func (s *Server) handleUsersDeleteEmailForAuthenticatedRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110794,12 +107982,8 @@ func (s *Server) handleUsersDeleteEmailForAuthenticatedRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110927,7 +108111,7 @@ func (s *Server) handleUsersDeleteGpgKeyForAuthenticatedRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110938,12 +108122,8 @@ func (s *Server) handleUsersDeleteGpgKeyForAuthenticatedRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111071,7 +108251,7 @@ func (s *Server) handleUsersDeletePublicSSHKeyForAuthenticatedRequest(args [1]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111082,12 +108262,8 @@ func (s *Server) handleUsersDeletePublicSSHKeyForAuthenticatedRequest(args [1]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111217,7 +108393,7 @@ func (s *Server) handleUsersFollowRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111228,12 +108404,8 @@ func (s *Server) handleUsersFollowRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111362,7 +108534,7 @@ func (s *Server) handleUsersGetAuthenticatedRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111373,12 +108545,8 @@ func (s *Server) handleUsersGetAuthenticatedRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111499,7 +108667,7 @@ func (s *Server) handleUsersGetByUsernameRequest(args [1]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111510,12 +108678,8 @@ func (s *Server) handleUsersGetByUsernameRequest(args [1]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111650,7 +108814,7 @@ func (s *Server) handleUsersGetContextForUserRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111661,12 +108825,8 @@ func (s *Server) handleUsersGetContextForUserRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111802,7 +108962,7 @@ func (s *Server) handleUsersGetGpgKeyForAuthenticatedRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111813,12 +108973,8 @@ func (s *Server) handleUsersGetGpgKeyForAuthenticatedRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111946,7 +109102,7 @@ func (s *Server) handleUsersGetPublicSSHKeyForAuthenticatedRequest(args [1]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111957,12 +109113,8 @@ func (s *Server) handleUsersGetPublicSSHKeyForAuthenticatedRequest(args [1]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112092,7 +109244,7 @@ func (s *Server) handleUsersListRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112103,12 +109255,8 @@ func (s *Server) handleUsersListRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112238,7 +109386,7 @@ func (s *Server) handleUsersListBlockedByAuthenticatedRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112249,12 +109397,8 @@ func (s *Server) handleUsersListBlockedByAuthenticatedRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112362,7 +109506,7 @@ func (s *Server) handleUsersListEmailsForAuthenticatedRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112373,12 +109517,8 @@ func (s *Server) handleUsersListEmailsForAuthenticatedRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112508,7 +109648,7 @@ func (s *Server) handleUsersListFollowedByAuthenticatedRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112519,12 +109659,8 @@ func (s *Server) handleUsersListFollowedByAuthenticatedRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112654,7 +109790,7 @@ func (s *Server) handleUsersListFollowersForAuthenticatedUserRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112665,12 +109801,8 @@ func (s *Server) handleUsersListFollowersForAuthenticatedUserRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112800,7 +109932,7 @@ func (s *Server) handleUsersListFollowersForUserRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112811,12 +109943,8 @@ func (s *Server) handleUsersListFollowersForUserRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112950,7 +110078,7 @@ func (s *Server) handleUsersListFollowingForUserRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112961,12 +110089,8 @@ func (s *Server) handleUsersListFollowingForUserRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113102,7 +110226,7 @@ func (s *Server) handleUsersListGpgKeysForAuthenticatedRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113113,12 +110237,8 @@ func (s *Server) handleUsersListGpgKeysForAuthenticatedRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113248,7 +110368,7 @@ func (s *Server) handleUsersListGpgKeysForUserRequest(args [1]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113259,12 +110379,8 @@ func (s *Server) handleUsersListGpgKeysForUserRequest(args [1]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113401,7 +110517,7 @@ func (s *Server) handleUsersListPublicEmailsForAuthenticatedRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113412,12 +110528,8 @@ func (s *Server) handleUsersListPublicEmailsForAuthenticatedRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113547,7 +110659,7 @@ func (s *Server) handleUsersListPublicKeysForUserRequest(args [1]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113558,12 +110670,8 @@ func (s *Server) handleUsersListPublicKeysForUserRequest(args [1]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113699,7 +110807,7 @@ func (s *Server) handleUsersListPublicSSHKeysForAuthenticatedRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113710,12 +110818,8 @@ func (s *Server) handleUsersListPublicSSHKeysForAuthenticatedRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113845,7 +110949,7 @@ func (s *Server) handleUsersSetPrimaryEmailVisibilityForAuthenticatedRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113856,12 +110960,8 @@ func (s *Server) handleUsersSetPrimaryEmailVisibilityForAuthenticatedRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113987,7 +111087,7 @@ func (s *Server) handleUsersUnblockRequest(args [1]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113998,12 +111098,8 @@ func (s *Server) handleUsersUnblockRequest(args [1]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -114130,7 +111226,7 @@ func (s *Server) handleUsersUnfollowRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -114141,12 +111237,8 @@ func (s *Server) handleUsersUnfollowRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -114274,7 +111366,7 @@ func (s *Server) handleUsersUpdateAuthenticatedRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -114285,12 +111377,8 @@ func (s *Server) handleUsersUpdateAuthenticatedRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_gotd/oas_client_gen.go b/examples/ex_gotd/oas_client_gen.go index 3925921ee..08a43c023 100644 --- a/examples/ex_gotd/oas_client_gen.go +++ b/examples/ex_gotd/oas_client_gen.go @@ -444,7 +444,7 @@ func (c *Client) sendAddStickerToSet(ctx context.Context, request *AddStickerToS defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -517,7 +517,7 @@ func (c *Client) sendAnswerCallbackQuery(ctx context.Context, request *AnswerCal defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -590,7 +590,7 @@ func (c *Client) sendAnswerInlineQuery(ctx context.Context, request *AnswerInlin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -663,7 +663,7 @@ func (c *Client) sendAnswerPreCheckoutQuery(ctx context.Context, request *Answer defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -736,7 +736,7 @@ func (c *Client) sendAnswerShippingQuery(ctx context.Context, request *AnswerShi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -809,7 +809,7 @@ func (c *Client) sendAnswerWebAppQuery(ctx context.Context, request *AnswerWebAp defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -882,7 +882,7 @@ func (c *Client) sendApproveChatJoinRequest(ctx context.Context, request *Approv defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -955,7 +955,7 @@ func (c *Client) sendBanChatMember(ctx context.Context, request *BanChatMember) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1028,7 +1028,7 @@ func (c *Client) sendBanChatSenderChat(ctx context.Context, request *BanChatSend defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1101,7 +1101,7 @@ func (c *Client) sendClose(ctx context.Context) (res *Result, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1171,7 +1171,7 @@ func (c *Client) sendCopyMessage(ctx context.Context, request *CopyMessage) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1244,7 +1244,7 @@ func (c *Client) sendCreateChatInviteLink(ctx context.Context, request *CreateCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1317,7 +1317,7 @@ func (c *Client) sendCreateNewStickerSet(ctx context.Context, request *CreateNew defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1390,7 +1390,7 @@ func (c *Client) sendDeclineChatJoinRequest(ctx context.Context, request *Declin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1463,7 +1463,7 @@ func (c *Client) sendDeleteChatPhoto(ctx context.Context, request *DeleteChatPho defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1536,7 +1536,7 @@ func (c *Client) sendDeleteChatStickerSet(ctx context.Context, request *DeleteCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1609,7 +1609,7 @@ func (c *Client) sendDeleteMessage(ctx context.Context, request *DeleteMessage) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1682,7 +1682,7 @@ func (c *Client) sendDeleteMyCommands(ctx context.Context, request OptDeleteMyCo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1755,7 +1755,7 @@ func (c *Client) sendDeleteStickerFromSet(ctx context.Context, request *DeleteSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1828,7 +1828,7 @@ func (c *Client) sendDeleteWebhook(ctx context.Context, request OptDeleteWebhook defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1901,7 +1901,7 @@ func (c *Client) sendEditChatInviteLink(ctx context.Context, request *EditChatIn defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1974,7 +1974,7 @@ func (c *Client) sendEditMessageCaption(ctx context.Context, request *EditMessag defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2047,7 +2047,7 @@ func (c *Client) sendEditMessageLiveLocation(ctx context.Context, request *EditM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2120,7 +2120,7 @@ func (c *Client) sendEditMessageMedia(ctx context.Context, request *EditMessageM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2193,7 +2193,7 @@ func (c *Client) sendEditMessageReplyMarkup(ctx context.Context, request *EditMe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2266,7 +2266,7 @@ func (c *Client) sendEditMessageText(ctx context.Context, request *EditMessageTe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2339,7 +2339,7 @@ func (c *Client) sendExportChatInviteLink(ctx context.Context, request *ExportCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2412,7 +2412,7 @@ func (c *Client) sendForwardMessage(ctx context.Context, request *ForwardMessage defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2485,7 +2485,7 @@ func (c *Client) sendGetChat(ctx context.Context, request *GetChat) (res *Result defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2558,7 +2558,7 @@ func (c *Client) sendGetChatAdministrators(ctx context.Context, request *GetChat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2631,7 +2631,7 @@ func (c *Client) sendGetChatMember(ctx context.Context, request *GetChatMember) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2704,7 +2704,7 @@ func (c *Client) sendGetChatMemberCount(ctx context.Context, request *GetChatMem defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2777,7 +2777,7 @@ func (c *Client) sendGetChatMenuButton(ctx context.Context, request OptGetChatMe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2850,7 +2850,7 @@ func (c *Client) sendGetFile(ctx context.Context, request *GetFile) (res *Result defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2923,7 +2923,7 @@ func (c *Client) sendGetGameHighScores(ctx context.Context, request *GetGameHigh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2996,7 +2996,7 @@ func (c *Client) sendGetMe(ctx context.Context) (res *ResultUser, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3066,7 +3066,7 @@ func (c *Client) sendGetMyCommands(ctx context.Context, request OptGetMyCommands defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3139,7 +3139,7 @@ func (c *Client) sendGetMyDefaultAdministratorRights(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3212,7 +3212,7 @@ func (c *Client) sendGetStickerSet(ctx context.Context, request *GetStickerSet) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3285,7 +3285,7 @@ func (c *Client) sendGetUpdates(ctx context.Context, request OptGetUpdates) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3358,7 +3358,7 @@ func (c *Client) sendGetUserProfilePhotos(ctx context.Context, request *GetUserP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3431,7 +3431,7 @@ func (c *Client) sendGetWebhookInfo(ctx context.Context) (res *ResultWebhookInfo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3501,7 +3501,7 @@ func (c *Client) sendLeaveChat(ctx context.Context, request *LeaveChat) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3574,7 +3574,7 @@ func (c *Client) sendLogOut(ctx context.Context) (res *Result, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3644,7 +3644,7 @@ func (c *Client) sendPinChatMessage(ctx context.Context, request *PinChatMessage defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3717,7 +3717,7 @@ func (c *Client) sendPromoteChatMember(ctx context.Context, request *PromoteChat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3790,7 +3790,7 @@ func (c *Client) sendRestrictChatMember(ctx context.Context, request *RestrictCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3863,7 +3863,7 @@ func (c *Client) sendRevokeChatInviteLink(ctx context.Context, request *RevokeCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3936,7 +3936,7 @@ func (c *Client) sendSendAnimation(ctx context.Context, request *SendAnimation) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4009,7 +4009,7 @@ func (c *Client) sendSendAudio(ctx context.Context, request *SendAudio) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4082,7 +4082,7 @@ func (c *Client) sendSendChatAction(ctx context.Context, request *SendChatAction defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4155,7 +4155,7 @@ func (c *Client) sendSendContact(ctx context.Context, request *SendContact) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4228,7 +4228,7 @@ func (c *Client) sendSendDice(ctx context.Context, request *SendDice) (res *Resu defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4301,7 +4301,7 @@ func (c *Client) sendSendDocument(ctx context.Context, request *SendDocument) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4374,7 +4374,7 @@ func (c *Client) sendSendGame(ctx context.Context, request *SendGame) (res *Resu defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4447,7 +4447,7 @@ func (c *Client) sendSendInvoice(ctx context.Context, request *SendInvoice) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4520,7 +4520,7 @@ func (c *Client) sendSendLocation(ctx context.Context, request *SendLocation) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4593,7 +4593,7 @@ func (c *Client) sendSendMediaGroup(ctx context.Context, request *SendMediaGroup defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4666,7 +4666,7 @@ func (c *Client) sendSendMessage(ctx context.Context, request *SendMessage) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4739,7 +4739,7 @@ func (c *Client) sendSendPhoto(ctx context.Context, request *SendPhoto) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4812,7 +4812,7 @@ func (c *Client) sendSendPoll(ctx context.Context, request *SendPoll) (res *Resu defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4885,7 +4885,7 @@ func (c *Client) sendSendSticker(ctx context.Context, request *SendSticker) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4958,7 +4958,7 @@ func (c *Client) sendSendVenue(ctx context.Context, request *SendVenue) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5031,7 +5031,7 @@ func (c *Client) sendSendVideo(ctx context.Context, request *SendVideo) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5104,7 +5104,7 @@ func (c *Client) sendSendVideoNote(ctx context.Context, request *SendVideoNote) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5177,7 +5177,7 @@ func (c *Client) sendSendVoice(ctx context.Context, request *SendVoice) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5250,7 +5250,7 @@ func (c *Client) sendSetChatAdministratorCustomTitle(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5323,7 +5323,7 @@ func (c *Client) sendSetChatDescription(ctx context.Context, request *SetChatDes defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5396,7 +5396,7 @@ func (c *Client) sendSetChatMenuButton(ctx context.Context, request OptSetChatMe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5469,7 +5469,7 @@ func (c *Client) sendSetChatPermissions(ctx context.Context, request *SetChatPer defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5542,7 +5542,7 @@ func (c *Client) sendSetChatPhoto(ctx context.Context, request *SetChatPhoto) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5615,7 +5615,7 @@ func (c *Client) sendSetChatStickerSet(ctx context.Context, request *SetChatStic defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5688,7 +5688,7 @@ func (c *Client) sendSetChatTitle(ctx context.Context, request *SetChatTitle) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5761,7 +5761,7 @@ func (c *Client) sendSetGameScore(ctx context.Context, request *SetGameScore) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5834,7 +5834,7 @@ func (c *Client) sendSetMyCommands(ctx context.Context, request *SetMyCommands) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5907,7 +5907,7 @@ func (c *Client) sendSetMyDefaultAdministratorRights(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5980,7 +5980,7 @@ func (c *Client) sendSetPassportDataErrors(ctx context.Context, request *SetPass defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6053,7 +6053,7 @@ func (c *Client) sendSetStickerPositionInSet(ctx context.Context, request *SetSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6126,7 +6126,7 @@ func (c *Client) sendSetStickerSetThumb(ctx context.Context, request *SetSticker defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6199,7 +6199,7 @@ func (c *Client) sendSetWebhook(ctx context.Context, request *SetWebhook) (res * defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6272,7 +6272,7 @@ func (c *Client) sendStopMessageLiveLocation(ctx context.Context, request *StopM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6345,7 +6345,7 @@ func (c *Client) sendStopPoll(ctx context.Context, request *StopPoll) (res *Resu defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6418,7 +6418,7 @@ func (c *Client) sendUnbanChatMember(ctx context.Context, request *UnbanChatMemb defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6491,7 +6491,7 @@ func (c *Client) sendUnbanChatSenderChat(ctx context.Context, request *UnbanChat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6564,7 +6564,7 @@ func (c *Client) sendUnpinAllChatMessages(ctx context.Context, request *UnpinAll defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6637,7 +6637,7 @@ func (c *Client) sendUnpinChatMessage(ctx context.Context, request *UnpinChatMes defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6710,7 +6710,7 @@ func (c *Client) sendUploadStickerFile(ctx context.Context, request *UploadStick defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_gotd/oas_handlers_gen.go b/examples/ex_gotd/oas_handlers_gen.go index e954b4c03..19bfaf674 100644 --- a/examples/ex_gotd/oas_handlers_gen.go +++ b/examples/ex_gotd/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handleAddStickerToSetRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handleAddStickerToSetRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -223,7 +219,7 @@ func (s *Server) handleAnswerCallbackQueryRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -234,12 +230,8 @@ func (s *Server) handleAnswerCallbackQueryRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -374,7 +366,7 @@ func (s *Server) handleAnswerInlineQueryRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -385,12 +377,8 @@ func (s *Server) handleAnswerInlineQueryRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -525,7 +513,7 @@ func (s *Server) handleAnswerPreCheckoutQueryRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -536,12 +524,8 @@ func (s *Server) handleAnswerPreCheckoutQueryRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -676,7 +660,7 @@ func (s *Server) handleAnswerShippingQueryRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -687,12 +671,8 @@ func (s *Server) handleAnswerShippingQueryRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -827,7 +807,7 @@ func (s *Server) handleAnswerWebAppQueryRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -838,12 +818,8 @@ func (s *Server) handleAnswerWebAppQueryRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -978,7 +954,7 @@ func (s *Server) handleApproveChatJoinRequestRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -989,12 +965,8 @@ func (s *Server) handleApproveChatJoinRequestRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1129,7 +1101,7 @@ func (s *Server) handleBanChatMemberRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1140,12 +1112,8 @@ func (s *Server) handleBanChatMemberRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1280,7 +1248,7 @@ func (s *Server) handleBanChatSenderChatRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1291,12 +1259,8 @@ func (s *Server) handleBanChatSenderChatRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1431,7 +1395,7 @@ func (s *Server) handleCloseRequest(args [0]string, argsEscaped bool, w http.Res s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1442,12 +1406,8 @@ func (s *Server) handleCloseRequest(args [0]string, argsEscaped bool, w http.Res // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1563,7 +1523,7 @@ func (s *Server) handleCopyMessageRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1574,12 +1534,8 @@ func (s *Server) handleCopyMessageRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1714,7 +1670,7 @@ func (s *Server) handleCreateChatInviteLinkRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1725,12 +1681,8 @@ func (s *Server) handleCreateChatInviteLinkRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1865,7 +1817,7 @@ func (s *Server) handleCreateNewStickerSetRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1876,12 +1828,8 @@ func (s *Server) handleCreateNewStickerSetRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2016,7 +1964,7 @@ func (s *Server) handleDeclineChatJoinRequestRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2027,12 +1975,8 @@ func (s *Server) handleDeclineChatJoinRequestRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2167,7 +2111,7 @@ func (s *Server) handleDeleteChatPhotoRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2178,12 +2122,8 @@ func (s *Server) handleDeleteChatPhotoRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2318,7 +2258,7 @@ func (s *Server) handleDeleteChatStickerSetRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2329,12 +2269,8 @@ func (s *Server) handleDeleteChatStickerSetRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2469,7 +2405,7 @@ func (s *Server) handleDeleteMessageRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2480,12 +2416,8 @@ func (s *Server) handleDeleteMessageRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2620,7 +2552,7 @@ func (s *Server) handleDeleteMyCommandsRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2631,12 +2563,8 @@ func (s *Server) handleDeleteMyCommandsRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2771,7 +2699,7 @@ func (s *Server) handleDeleteStickerFromSetRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2782,12 +2710,8 @@ func (s *Server) handleDeleteStickerFromSetRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2922,7 +2846,7 @@ func (s *Server) handleDeleteWebhookRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2933,12 +2857,8 @@ func (s *Server) handleDeleteWebhookRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3073,7 +2993,7 @@ func (s *Server) handleEditChatInviteLinkRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3084,12 +3004,8 @@ func (s *Server) handleEditChatInviteLinkRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3224,7 +3140,7 @@ func (s *Server) handleEditMessageCaptionRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3235,12 +3151,8 @@ func (s *Server) handleEditMessageCaptionRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3375,7 +3287,7 @@ func (s *Server) handleEditMessageLiveLocationRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3386,12 +3298,8 @@ func (s *Server) handleEditMessageLiveLocationRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3526,7 +3434,7 @@ func (s *Server) handleEditMessageMediaRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3537,12 +3445,8 @@ func (s *Server) handleEditMessageMediaRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3677,7 +3581,7 @@ func (s *Server) handleEditMessageReplyMarkupRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3688,12 +3592,8 @@ func (s *Server) handleEditMessageReplyMarkupRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3828,7 +3728,7 @@ func (s *Server) handleEditMessageTextRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3839,12 +3739,8 @@ func (s *Server) handleEditMessageTextRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3979,7 +3875,7 @@ func (s *Server) handleExportChatInviteLinkRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3990,12 +3886,8 @@ func (s *Server) handleExportChatInviteLinkRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4130,7 +4022,7 @@ func (s *Server) handleForwardMessageRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4141,12 +4033,8 @@ func (s *Server) handleForwardMessageRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4281,7 +4169,7 @@ func (s *Server) handleGetChatRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4292,12 +4180,8 @@ func (s *Server) handleGetChatRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4432,7 +4316,7 @@ func (s *Server) handleGetChatAdministratorsRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4443,12 +4327,8 @@ func (s *Server) handleGetChatAdministratorsRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4583,7 +4463,7 @@ func (s *Server) handleGetChatMemberRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4594,12 +4474,8 @@ func (s *Server) handleGetChatMemberRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4734,7 +4610,7 @@ func (s *Server) handleGetChatMemberCountRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4745,12 +4621,8 @@ func (s *Server) handleGetChatMemberCountRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4885,7 +4757,7 @@ func (s *Server) handleGetChatMenuButtonRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4896,12 +4768,8 @@ func (s *Server) handleGetChatMenuButtonRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5036,7 +4904,7 @@ func (s *Server) handleGetFileRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5047,12 +4915,8 @@ func (s *Server) handleGetFileRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5187,7 +5051,7 @@ func (s *Server) handleGetGameHighScoresRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5198,12 +5062,8 @@ func (s *Server) handleGetGameHighScoresRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5338,7 +5198,7 @@ func (s *Server) handleGetMeRequest(args [0]string, argsEscaped bool, w http.Res s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5349,12 +5209,8 @@ func (s *Server) handleGetMeRequest(args [0]string, argsEscaped bool, w http.Res // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5470,7 +5326,7 @@ func (s *Server) handleGetMyCommandsRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5481,12 +5337,8 @@ func (s *Server) handleGetMyCommandsRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5621,7 +5473,7 @@ func (s *Server) handleGetMyDefaultAdministratorRightsRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5632,12 +5484,8 @@ func (s *Server) handleGetMyDefaultAdministratorRightsRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5772,7 +5620,7 @@ func (s *Server) handleGetStickerSetRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5783,12 +5631,8 @@ func (s *Server) handleGetStickerSetRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5923,7 +5767,7 @@ func (s *Server) handleGetUpdatesRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5934,12 +5778,8 @@ func (s *Server) handleGetUpdatesRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6074,7 +5914,7 @@ func (s *Server) handleGetUserProfilePhotosRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6085,12 +5925,8 @@ func (s *Server) handleGetUserProfilePhotosRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6225,7 +6061,7 @@ func (s *Server) handleGetWebhookInfoRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6236,12 +6072,8 @@ func (s *Server) handleGetWebhookInfoRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6357,7 +6189,7 @@ func (s *Server) handleLeaveChatRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6368,12 +6200,8 @@ func (s *Server) handleLeaveChatRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6508,7 +6336,7 @@ func (s *Server) handleLogOutRequest(args [0]string, argsEscaped bool, w http.Re s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6519,12 +6347,8 @@ func (s *Server) handleLogOutRequest(args [0]string, argsEscaped bool, w http.Re // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6640,7 +6464,7 @@ func (s *Server) handlePinChatMessageRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6651,12 +6475,8 @@ func (s *Server) handlePinChatMessageRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6791,7 +6611,7 @@ func (s *Server) handlePromoteChatMemberRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6802,12 +6622,8 @@ func (s *Server) handlePromoteChatMemberRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6942,7 +6758,7 @@ func (s *Server) handleRestrictChatMemberRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6953,12 +6769,8 @@ func (s *Server) handleRestrictChatMemberRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7093,7 +6905,7 @@ func (s *Server) handleRevokeChatInviteLinkRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7104,12 +6916,8 @@ func (s *Server) handleRevokeChatInviteLinkRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7244,7 +7052,7 @@ func (s *Server) handleSendAnimationRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7255,12 +7063,8 @@ func (s *Server) handleSendAnimationRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7395,7 +7199,7 @@ func (s *Server) handleSendAudioRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7406,12 +7210,8 @@ func (s *Server) handleSendAudioRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7546,7 +7346,7 @@ func (s *Server) handleSendChatActionRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7557,12 +7357,8 @@ func (s *Server) handleSendChatActionRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7697,7 +7493,7 @@ func (s *Server) handleSendContactRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7708,12 +7504,8 @@ func (s *Server) handleSendContactRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7848,7 +7640,7 @@ func (s *Server) handleSendDiceRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7859,12 +7651,8 @@ func (s *Server) handleSendDiceRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7999,7 +7787,7 @@ func (s *Server) handleSendDocumentRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8010,12 +7798,8 @@ func (s *Server) handleSendDocumentRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8150,7 +7934,7 @@ func (s *Server) handleSendGameRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8161,12 +7945,8 @@ func (s *Server) handleSendGameRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8301,7 +8081,7 @@ func (s *Server) handleSendInvoiceRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8312,12 +8092,8 @@ func (s *Server) handleSendInvoiceRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8452,7 +8228,7 @@ func (s *Server) handleSendLocationRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8463,12 +8239,8 @@ func (s *Server) handleSendLocationRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8603,7 +8375,7 @@ func (s *Server) handleSendMediaGroupRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8614,12 +8386,8 @@ func (s *Server) handleSendMediaGroupRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8754,7 +8522,7 @@ func (s *Server) handleSendMessageRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8765,12 +8533,8 @@ func (s *Server) handleSendMessageRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8905,7 +8669,7 @@ func (s *Server) handleSendPhotoRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8916,12 +8680,8 @@ func (s *Server) handleSendPhotoRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9056,7 +8816,7 @@ func (s *Server) handleSendPollRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9067,12 +8827,8 @@ func (s *Server) handleSendPollRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9207,7 +8963,7 @@ func (s *Server) handleSendStickerRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9218,12 +8974,8 @@ func (s *Server) handleSendStickerRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9358,7 +9110,7 @@ func (s *Server) handleSendVenueRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9369,12 +9121,8 @@ func (s *Server) handleSendVenueRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9509,7 +9257,7 @@ func (s *Server) handleSendVideoRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9520,12 +9268,8 @@ func (s *Server) handleSendVideoRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9660,7 +9404,7 @@ func (s *Server) handleSendVideoNoteRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9671,12 +9415,8 @@ func (s *Server) handleSendVideoNoteRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9811,7 +9551,7 @@ func (s *Server) handleSendVoiceRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9822,12 +9562,8 @@ func (s *Server) handleSendVoiceRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9962,7 +9698,7 @@ func (s *Server) handleSetChatAdministratorCustomTitleRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9973,12 +9709,8 @@ func (s *Server) handleSetChatAdministratorCustomTitleRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10113,7 +9845,7 @@ func (s *Server) handleSetChatDescriptionRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10124,12 +9856,8 @@ func (s *Server) handleSetChatDescriptionRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10264,7 +9992,7 @@ func (s *Server) handleSetChatMenuButtonRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10275,12 +10003,8 @@ func (s *Server) handleSetChatMenuButtonRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10415,7 +10139,7 @@ func (s *Server) handleSetChatPermissionsRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10426,12 +10150,8 @@ func (s *Server) handleSetChatPermissionsRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10566,7 +10286,7 @@ func (s *Server) handleSetChatPhotoRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10577,12 +10297,8 @@ func (s *Server) handleSetChatPhotoRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10717,7 +10433,7 @@ func (s *Server) handleSetChatStickerSetRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10728,12 +10444,8 @@ func (s *Server) handleSetChatStickerSetRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10868,7 +10580,7 @@ func (s *Server) handleSetChatTitleRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10879,12 +10591,8 @@ func (s *Server) handleSetChatTitleRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11019,7 +10727,7 @@ func (s *Server) handleSetGameScoreRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11030,12 +10738,8 @@ func (s *Server) handleSetGameScoreRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11170,7 +10874,7 @@ func (s *Server) handleSetMyCommandsRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11181,12 +10885,8 @@ func (s *Server) handleSetMyCommandsRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11321,7 +11021,7 @@ func (s *Server) handleSetMyDefaultAdministratorRightsRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11332,12 +11032,8 @@ func (s *Server) handleSetMyDefaultAdministratorRightsRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11472,7 +11168,7 @@ func (s *Server) handleSetPassportDataErrorsRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11483,12 +11179,8 @@ func (s *Server) handleSetPassportDataErrorsRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11623,7 +11315,7 @@ func (s *Server) handleSetStickerPositionInSetRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11634,12 +11326,8 @@ func (s *Server) handleSetStickerPositionInSetRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11774,7 +11462,7 @@ func (s *Server) handleSetStickerSetThumbRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11785,12 +11473,8 @@ func (s *Server) handleSetStickerSetThumbRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11925,7 +11609,7 @@ func (s *Server) handleSetWebhookRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11936,12 +11620,8 @@ func (s *Server) handleSetWebhookRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12076,7 +11756,7 @@ func (s *Server) handleStopMessageLiveLocationRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12087,12 +11767,8 @@ func (s *Server) handleStopMessageLiveLocationRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12227,7 +11903,7 @@ func (s *Server) handleStopPollRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12238,12 +11914,8 @@ func (s *Server) handleStopPollRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12378,7 +12050,7 @@ func (s *Server) handleUnbanChatMemberRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12389,12 +12061,8 @@ func (s *Server) handleUnbanChatMemberRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12529,7 +12197,7 @@ func (s *Server) handleUnbanChatSenderChatRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12540,12 +12208,8 @@ func (s *Server) handleUnbanChatSenderChatRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12680,7 +12344,7 @@ func (s *Server) handleUnpinAllChatMessagesRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12691,12 +12355,8 @@ func (s *Server) handleUnpinAllChatMessagesRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12831,7 +12491,7 @@ func (s *Server) handleUnpinChatMessageRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12842,12 +12502,8 @@ func (s *Server) handleUnpinChatMessageRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12982,7 +12638,7 @@ func (s *Server) handleUploadStickerFileRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12993,12 +12649,8 @@ func (s *Server) handleUploadStickerFileRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_k8s/oas_client_gen.go b/examples/ex_k8s/oas_client_gen.go index eef71be0c..518a887eb 100644 --- a/examples/ex_k8s/oas_client_gen.go +++ b/examples/ex_k8s/oas_client_gen.go @@ -3029,7 +3029,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedPodProxy(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3193,7 +3193,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedPodProxyWithPath(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3375,7 +3375,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedServiceProxy(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3539,7 +3539,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedServiceProxyWithPath(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3721,7 +3721,7 @@ func (c *Client) sendConnectCoreV1DeleteNodeProxy(ctx context.Context, params Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3866,7 +3866,7 @@ func (c *Client) sendConnectCoreV1DeleteNodeProxyWithPath(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4029,7 +4029,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodAttach(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4261,7 +4261,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodExec(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4510,7 +4510,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodPortforward(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4674,7 +4674,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodProxy(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4838,7 +4838,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodProxyWithPath(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5020,7 +5020,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedServiceProxy(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5184,7 +5184,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedServiceProxyWithPath(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5366,7 +5366,7 @@ func (c *Client) sendConnectCoreV1GetNodeProxy(ctx context.Context, params Conne defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5511,7 +5511,7 @@ func (c *Client) sendConnectCoreV1GetNodeProxyWithPath(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5674,7 +5674,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedPodProxy(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5838,7 +5838,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedPodProxyWithPath(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6020,7 +6020,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedServiceProxy(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6184,7 +6184,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedServiceProxyWithPath(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6366,7 +6366,7 @@ func (c *Client) sendConnectCoreV1HeadNodeProxy(ctx context.Context, params Conn defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6511,7 +6511,7 @@ func (c *Client) sendConnectCoreV1HeadNodeProxyWithPath(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6674,7 +6674,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedPodProxy(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6838,7 +6838,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedPodProxyWithPath(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7020,7 +7020,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedServiceProxy(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7184,7 +7184,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedServiceProxyWithPath(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7366,7 +7366,7 @@ func (c *Client) sendConnectCoreV1OptionsNodeProxy(ctx context.Context, params C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7511,7 +7511,7 @@ func (c *Client) sendConnectCoreV1OptionsNodeProxyWithPath(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7674,7 +7674,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedPodProxy(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7838,7 +7838,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedPodProxyWithPath(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8020,7 +8020,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedServiceProxy(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8184,7 +8184,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedServiceProxyWithPath(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8366,7 +8366,7 @@ func (c *Client) sendConnectCoreV1PatchNodeProxy(ctx context.Context, params Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8511,7 +8511,7 @@ func (c *Client) sendConnectCoreV1PatchNodeProxyWithPath(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8674,7 +8674,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodAttach(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8906,7 +8906,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodExec(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9155,7 +9155,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodPortforward(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9319,7 +9319,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodProxy(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9483,7 +9483,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodProxyWithPath(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9665,7 +9665,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedServiceProxy(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9829,7 +9829,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedServiceProxyWithPath(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10011,7 +10011,7 @@ func (c *Client) sendConnectCoreV1PostNodeProxy(ctx context.Context, params Conn defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10156,7 +10156,7 @@ func (c *Client) sendConnectCoreV1PostNodeProxyWithPath(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10319,7 +10319,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedPodProxy(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10483,7 +10483,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedPodProxyWithPath(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10665,7 +10665,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedServiceProxy(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10829,7 +10829,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedServiceProxyWithPath(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11011,7 +11011,7 @@ func (c *Client) sendConnectCoreV1PutNodeProxy(ctx context.Context, params Conne defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11156,7 +11156,7 @@ func (c *Client) sendConnectCoreV1PutNodeProxyWithPath(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11319,7 +11319,7 @@ func (c *Client) sendGetAPIVersions(ctx context.Context) (res GetAPIVersionsRes, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11424,7 +11424,7 @@ func (c *Client) sendGetAdmissionregistrationAPIGroup(ctx context.Context) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11529,7 +11529,7 @@ func (c *Client) sendGetAdmissionregistrationV1APIResources(ctx context.Context) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11634,7 +11634,7 @@ func (c *Client) sendGetApiextensionsAPIGroup(ctx context.Context) (res GetApiex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11739,7 +11739,7 @@ func (c *Client) sendGetApiextensionsV1APIResources(ctx context.Context) (res Ge defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11844,7 +11844,7 @@ func (c *Client) sendGetApiregistrationAPIGroup(ctx context.Context) (res GetApi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11949,7 +11949,7 @@ func (c *Client) sendGetApiregistrationV1APIResources(ctx context.Context) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12054,7 +12054,7 @@ func (c *Client) sendGetAppsAPIGroup(ctx context.Context) (res GetAppsAPIGroupRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12159,7 +12159,7 @@ func (c *Client) sendGetAppsV1APIResources(ctx context.Context) (res GetAppsV1AP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12264,7 +12264,7 @@ func (c *Client) sendGetAuthenticationAPIGroup(ctx context.Context) (res GetAuth defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12369,7 +12369,7 @@ func (c *Client) sendGetAuthenticationV1APIResources(ctx context.Context) (res G defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12474,7 +12474,7 @@ func (c *Client) sendGetAuthorizationAPIGroup(ctx context.Context) (res GetAutho defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12579,7 +12579,7 @@ func (c *Client) sendGetAuthorizationV1APIResources(ctx context.Context) (res Ge defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12684,7 +12684,7 @@ func (c *Client) sendGetAutoscalingAPIGroup(ctx context.Context) (res GetAutosca defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12789,7 +12789,7 @@ func (c *Client) sendGetAutoscalingV1APIResources(ctx context.Context) (res GetA defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12894,7 +12894,7 @@ func (c *Client) sendGetAutoscalingV2beta1APIResources(ctx context.Context) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12999,7 +12999,7 @@ func (c *Client) sendGetAutoscalingV2beta2APIResources(ctx context.Context) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13104,7 +13104,7 @@ func (c *Client) sendGetBatchAPIGroup(ctx context.Context) (res GetBatchAPIGroup defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13209,7 +13209,7 @@ func (c *Client) sendGetBatchV1APIResources(ctx context.Context) (res GetBatchV1 defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13314,7 +13314,7 @@ func (c *Client) sendGetBatchV1beta1APIResources(ctx context.Context) (res GetBa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13419,7 +13419,7 @@ func (c *Client) sendGetCertificatesAPIGroup(ctx context.Context) (res GetCertif defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13524,7 +13524,7 @@ func (c *Client) sendGetCertificatesV1APIResources(ctx context.Context) (res Get defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13629,7 +13629,7 @@ func (c *Client) sendGetCodeVersion(ctx context.Context) (res GetCodeVersionRes, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13734,7 +13734,7 @@ func (c *Client) sendGetCoordinationAPIGroup(ctx context.Context) (res GetCoordi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13839,7 +13839,7 @@ func (c *Client) sendGetCoordinationV1APIResources(ctx context.Context) (res Get defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13944,7 +13944,7 @@ func (c *Client) sendGetCoreAPIVersions(ctx context.Context) (res GetCoreAPIVers defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14049,7 +14049,7 @@ func (c *Client) sendGetCoreV1APIResources(ctx context.Context) (res GetCoreV1AP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14154,7 +14154,7 @@ func (c *Client) sendGetDiscoveryAPIGroup(ctx context.Context) (res GetDiscovery defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14259,7 +14259,7 @@ func (c *Client) sendGetDiscoveryV1APIResources(ctx context.Context) (res GetDis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14364,7 +14364,7 @@ func (c *Client) sendGetDiscoveryV1beta1APIResources(ctx context.Context) (res G defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14469,7 +14469,7 @@ func (c *Client) sendGetEventsAPIGroup(ctx context.Context) (res GetEventsAPIGro defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14574,7 +14574,7 @@ func (c *Client) sendGetEventsV1APIResources(ctx context.Context) (res GetEvents defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14679,7 +14679,7 @@ func (c *Client) sendGetEventsV1beta1APIResources(ctx context.Context) (res GetE defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14784,7 +14784,7 @@ func (c *Client) sendGetFlowcontrolApiserverAPIGroup(ctx context.Context) (res G defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14889,7 +14889,7 @@ func (c *Client) sendGetFlowcontrolApiserverV1beta1APIResources(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14994,7 +14994,7 @@ func (c *Client) sendGetFlowcontrolApiserverV1beta2APIResources(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15099,7 +15099,7 @@ func (c *Client) sendGetInternalApiserverAPIGroup(ctx context.Context) (res GetI defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15204,7 +15204,7 @@ func (c *Client) sendGetInternalApiserverV1alpha1APIResources(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15309,7 +15309,7 @@ func (c *Client) sendGetNetworkingAPIGroup(ctx context.Context) (res GetNetworki defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15414,7 +15414,7 @@ func (c *Client) sendGetNetworkingV1APIResources(ctx context.Context) (res GetNe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15519,7 +15519,7 @@ func (c *Client) sendGetNodeAPIGroup(ctx context.Context) (res GetNodeAPIGroupRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15624,7 +15624,7 @@ func (c *Client) sendGetNodeV1APIResources(ctx context.Context) (res GetNodeV1AP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15729,7 +15729,7 @@ func (c *Client) sendGetNodeV1alpha1APIResources(ctx context.Context) (res GetNo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15834,7 +15834,7 @@ func (c *Client) sendGetNodeV1beta1APIResources(ctx context.Context) (res GetNod defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15939,7 +15939,7 @@ func (c *Client) sendGetPolicyAPIGroup(ctx context.Context) (res GetPolicyAPIGro defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16044,7 +16044,7 @@ func (c *Client) sendGetPolicyV1APIResources(ctx context.Context) (res GetPolicy defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16149,7 +16149,7 @@ func (c *Client) sendGetPolicyV1beta1APIResources(ctx context.Context) (res GetP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16254,7 +16254,7 @@ func (c *Client) sendGetRbacAuthorizationAPIGroup(ctx context.Context) (res GetR defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16359,7 +16359,7 @@ func (c *Client) sendGetRbacAuthorizationV1APIResources(ctx context.Context) (re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16464,7 +16464,7 @@ func (c *Client) sendGetSchedulingAPIGroup(ctx context.Context) (res GetScheduli defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16569,7 +16569,7 @@ func (c *Client) sendGetSchedulingV1APIResources(ctx context.Context) (res GetSc defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16674,7 +16674,7 @@ func (c *Client) sendGetServiceAccountIssuerOpenIDConfiguration(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16779,7 +16779,7 @@ func (c *Client) sendGetServiceAccountIssuerOpenIDKeyset(ctx context.Context) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16884,7 +16884,7 @@ func (c *Client) sendGetStorageAPIGroup(ctx context.Context) (res GetStorageAPIG defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16989,7 +16989,7 @@ func (c *Client) sendGetStorageV1APIResources(ctx context.Context) (res GetStora defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17094,7 +17094,7 @@ func (c *Client) sendGetStorageV1alpha1APIResources(ctx context.Context) (res Ge defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17199,7 +17199,7 @@ func (c *Client) sendGetStorageV1beta1APIResources(ctx context.Context) (res Get defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17304,7 +17304,7 @@ func (c *Client) sendListAdmissionregistrationV1MutatingWebhookConfiguration(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17583,7 +17583,7 @@ func (c *Client) sendListAdmissionregistrationV1ValidatingWebhookConfiguration(c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17862,7 +17862,7 @@ func (c *Client) sendListApiextensionsV1CustomResourceDefinition(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18141,7 +18141,7 @@ func (c *Client) sendListApiregistrationV1APIService(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18420,7 +18420,7 @@ func (c *Client) sendListAppsV1ControllerRevisionForAllNamespaces(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18699,7 +18699,7 @@ func (c *Client) sendListAppsV1DaemonSetForAllNamespaces(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18978,7 +18978,7 @@ func (c *Client) sendListAppsV1DeploymentForAllNamespaces(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19257,7 +19257,7 @@ func (c *Client) sendListAppsV1NamespacedControllerRevision(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19555,7 +19555,7 @@ func (c *Client) sendListAppsV1NamespacedDaemonSet(ctx context.Context, params L defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19853,7 +19853,7 @@ func (c *Client) sendListAppsV1NamespacedDeployment(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20151,7 +20151,7 @@ func (c *Client) sendListAppsV1NamespacedReplicaSet(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20449,7 +20449,7 @@ func (c *Client) sendListAppsV1NamespacedStatefulSet(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20747,7 +20747,7 @@ func (c *Client) sendListAppsV1ReplicaSetForAllNamespaces(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21026,7 +21026,7 @@ func (c *Client) sendListAppsV1StatefulSetForAllNamespaces(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21305,7 +21305,7 @@ func (c *Client) sendListAutoscalingV1HorizontalPodAutoscalerForAllNamespaces(ct defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21584,7 +21584,7 @@ func (c *Client) sendListAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21882,7 +21882,7 @@ func (c *Client) sendListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespac defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22161,7 +22161,7 @@ func (c *Client) sendListAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22459,7 +22459,7 @@ func (c *Client) sendListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespac defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22738,7 +22738,7 @@ func (c *Client) sendListAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23036,7 +23036,7 @@ func (c *Client) sendListBatchV1CronJobForAllNamespaces(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23315,7 +23315,7 @@ func (c *Client) sendListBatchV1JobForAllNamespaces(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23594,7 +23594,7 @@ func (c *Client) sendListBatchV1NamespacedCronJob(ctx context.Context, params Li defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23892,7 +23892,7 @@ func (c *Client) sendListBatchV1NamespacedJob(ctx context.Context, params ListBa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24190,7 +24190,7 @@ func (c *Client) sendListBatchV1beta1CronJobForAllNamespaces(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24469,7 +24469,7 @@ func (c *Client) sendListBatchV1beta1NamespacedCronJob(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24767,7 +24767,7 @@ func (c *Client) sendListCertificatesV1CertificateSigningRequest(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25046,7 +25046,7 @@ func (c *Client) sendListCoordinationV1LeaseForAllNamespaces(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25325,7 +25325,7 @@ func (c *Client) sendListCoordinationV1NamespacedLease(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25623,7 +25623,7 @@ func (c *Client) sendListCoreV1ComponentStatus(ctx context.Context, params ListC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25902,7 +25902,7 @@ func (c *Client) sendListCoreV1ConfigMapForAllNamespaces(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26181,7 +26181,7 @@ func (c *Client) sendListCoreV1EndpointsForAllNamespaces(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26460,7 +26460,7 @@ func (c *Client) sendListCoreV1EventForAllNamespaces(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26739,7 +26739,7 @@ func (c *Client) sendListCoreV1LimitRangeForAllNamespaces(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27018,7 +27018,7 @@ func (c *Client) sendListCoreV1Namespace(ctx context.Context, params ListCoreV1N defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27297,7 +27297,7 @@ func (c *Client) sendListCoreV1NamespacedConfigMap(ctx context.Context, params L defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27595,7 +27595,7 @@ func (c *Client) sendListCoreV1NamespacedEndpoints(ctx context.Context, params L defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27893,7 +27893,7 @@ func (c *Client) sendListCoreV1NamespacedEvent(ctx context.Context, params ListC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28191,7 +28191,7 @@ func (c *Client) sendListCoreV1NamespacedLimitRange(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28489,7 +28489,7 @@ func (c *Client) sendListCoreV1NamespacedPersistentVolumeClaim(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28787,7 +28787,7 @@ func (c *Client) sendListCoreV1NamespacedPod(ctx context.Context, params ListCor defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29085,7 +29085,7 @@ func (c *Client) sendListCoreV1NamespacedPodTemplate(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29383,7 +29383,7 @@ func (c *Client) sendListCoreV1NamespacedReplicationController(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29681,7 +29681,7 @@ func (c *Client) sendListCoreV1NamespacedResourceQuota(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29979,7 +29979,7 @@ func (c *Client) sendListCoreV1NamespacedSecret(ctx context.Context, params List defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30277,7 +30277,7 @@ func (c *Client) sendListCoreV1NamespacedService(ctx context.Context, params Lis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30575,7 +30575,7 @@ func (c *Client) sendListCoreV1NamespacedServiceAccount(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30873,7 +30873,7 @@ func (c *Client) sendListCoreV1Node(ctx context.Context, params ListCoreV1NodePa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31152,7 +31152,7 @@ func (c *Client) sendListCoreV1PersistentVolume(ctx context.Context, params List defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31431,7 +31431,7 @@ func (c *Client) sendListCoreV1PersistentVolumeClaimForAllNamespaces(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31710,7 +31710,7 @@ func (c *Client) sendListCoreV1PodForAllNamespaces(ctx context.Context, params L defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31989,7 +31989,7 @@ func (c *Client) sendListCoreV1PodTemplateForAllNamespaces(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32268,7 +32268,7 @@ func (c *Client) sendListCoreV1ReplicationControllerForAllNamespaces(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32547,7 +32547,7 @@ func (c *Client) sendListCoreV1ResourceQuotaForAllNamespaces(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32826,7 +32826,7 @@ func (c *Client) sendListCoreV1SecretForAllNamespaces(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33105,7 +33105,7 @@ func (c *Client) sendListCoreV1ServiceAccountForAllNamespaces(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33384,7 +33384,7 @@ func (c *Client) sendListCoreV1ServiceForAllNamespaces(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33663,7 +33663,7 @@ func (c *Client) sendListDiscoveryV1EndpointSliceForAllNamespaces(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33942,7 +33942,7 @@ func (c *Client) sendListDiscoveryV1NamespacedEndpointSlice(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34240,7 +34240,7 @@ func (c *Client) sendListDiscoveryV1beta1EndpointSliceForAllNamespaces(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34519,7 +34519,7 @@ func (c *Client) sendListDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34817,7 +34817,7 @@ func (c *Client) sendListEventsV1EventForAllNamespaces(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35096,7 +35096,7 @@ func (c *Client) sendListEventsV1NamespacedEvent(ctx context.Context, params Lis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35394,7 +35394,7 @@ func (c *Client) sendListEventsV1beta1EventForAllNamespaces(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35673,7 +35673,7 @@ func (c *Client) sendListEventsV1beta1NamespacedEvent(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35971,7 +35971,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta1FlowSchema(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36250,7 +36250,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta1PriorityLevelConfiguration(c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36529,7 +36529,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta2FlowSchema(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36808,7 +36808,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta2PriorityLevelConfiguration(c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37087,7 +37087,7 @@ func (c *Client) sendListInternalApiserverV1alpha1StorageVersion(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37366,7 +37366,7 @@ func (c *Client) sendListNetworkingV1IngressClass(ctx context.Context, params Li defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37645,7 +37645,7 @@ func (c *Client) sendListNetworkingV1IngressForAllNamespaces(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37924,7 +37924,7 @@ func (c *Client) sendListNetworkingV1NamespacedIngress(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38222,7 +38222,7 @@ func (c *Client) sendListNetworkingV1NamespacedNetworkPolicy(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38520,7 +38520,7 @@ func (c *Client) sendListNetworkingV1NetworkPolicyForAllNamespaces(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38799,7 +38799,7 @@ func (c *Client) sendListNodeV1RuntimeClass(ctx context.Context, params ListNode defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39078,7 +39078,7 @@ func (c *Client) sendListNodeV1alpha1RuntimeClass(ctx context.Context, params Li defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39357,7 +39357,7 @@ func (c *Client) sendListNodeV1beta1RuntimeClass(ctx context.Context, params Lis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39636,7 +39636,7 @@ func (c *Client) sendListPolicyV1NamespacedPodDisruptionBudget(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39934,7 +39934,7 @@ func (c *Client) sendListPolicyV1PodDisruptionBudgetForAllNamespaces(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40213,7 +40213,7 @@ func (c *Client) sendListPolicyV1beta1NamespacedPodDisruptionBudget(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40511,7 +40511,7 @@ func (c *Client) sendListPolicyV1beta1PodDisruptionBudgetForAllNamespaces(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40790,7 +40790,7 @@ func (c *Client) sendListPolicyV1beta1PodSecurityPolicy(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41069,7 +41069,7 @@ func (c *Client) sendListRbacAuthorizationV1ClusterRole(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41348,7 +41348,7 @@ func (c *Client) sendListRbacAuthorizationV1ClusterRoleBinding(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41627,7 +41627,7 @@ func (c *Client) sendListRbacAuthorizationV1NamespacedRole(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41925,7 +41925,7 @@ func (c *Client) sendListRbacAuthorizationV1NamespacedRoleBinding(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42223,7 +42223,7 @@ func (c *Client) sendListRbacAuthorizationV1RoleBindingForAllNamespaces(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42502,7 +42502,7 @@ func (c *Client) sendListRbacAuthorizationV1RoleForAllNamespaces(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42781,7 +42781,7 @@ func (c *Client) sendListSchedulingV1PriorityClass(ctx context.Context, params L defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43060,7 +43060,7 @@ func (c *Client) sendListStorageV1CSIDriver(ctx context.Context, params ListStor defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43339,7 +43339,7 @@ func (c *Client) sendListStorageV1CSINode(ctx context.Context, params ListStorag defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43618,7 +43618,7 @@ func (c *Client) sendListStorageV1StorageClass(ctx context.Context, params ListS defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43897,7 +43897,7 @@ func (c *Client) sendListStorageV1VolumeAttachment(ctx context.Context, params L defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44176,7 +44176,7 @@ func (c *Client) sendListStorageV1alpha1CSIStorageCapacityForAllNamespaces(ctx c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44455,7 +44455,7 @@ func (c *Client) sendListStorageV1alpha1NamespacedCSIStorageCapacity(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44753,7 +44753,7 @@ func (c *Client) sendListStorageV1beta1CSIStorageCapacityForAllNamespaces(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45032,7 +45032,7 @@ func (c *Client) sendListStorageV1beta1NamespacedCSIStorageCapacity(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45328,7 +45328,7 @@ func (c *Client) sendLogFileHandler(ctx context.Context, params LogFileHandlerPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45449,7 +45449,7 @@ func (c *Client) sendLogFileListHandler(ctx context.Context) (res *LogFileListHa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45554,7 +45554,7 @@ func (c *Client) sendReadAdmissionregistrationV1MutatingWebhookConfiguration(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45698,7 +45698,7 @@ func (c *Client) sendReadAdmissionregistrationV1ValidatingWebhookConfiguration(c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45842,7 +45842,7 @@ func (c *Client) sendReadApiextensionsV1CustomResourceDefinition(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45986,7 +45986,7 @@ func (c *Client) sendReadApiextensionsV1CustomResourceDefinitionStatus(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46131,7 +46131,7 @@ func (c *Client) sendReadApiregistrationV1APIService(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46275,7 +46275,7 @@ func (c *Client) sendReadApiregistrationV1APIServiceStatus(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46420,7 +46420,7 @@ func (c *Client) sendReadAppsV1NamespacedControllerRevision(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46583,7 +46583,7 @@ func (c *Client) sendReadAppsV1NamespacedDaemonSet(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46746,7 +46746,7 @@ func (c *Client) sendReadAppsV1NamespacedDaemonSetStatus(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46910,7 +46910,7 @@ func (c *Client) sendReadAppsV1NamespacedDeployment(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47073,7 +47073,7 @@ func (c *Client) sendReadAppsV1NamespacedDeploymentScale(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47237,7 +47237,7 @@ func (c *Client) sendReadAppsV1NamespacedDeploymentStatus(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47401,7 +47401,7 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSet(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47564,7 +47564,7 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSetScale(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47728,7 +47728,7 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSetStatus(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47892,7 +47892,7 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSet(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48055,7 +48055,7 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSetScale(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48219,7 +48219,7 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSetStatus(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48383,7 +48383,7 @@ func (c *Client) sendReadAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48546,7 +48546,7 @@ func (c *Client) sendReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatus(ct defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48710,7 +48710,7 @@ func (c *Client) sendReadAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48873,7 +48873,7 @@ func (c *Client) sendReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49037,7 +49037,7 @@ func (c *Client) sendReadAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49200,7 +49200,7 @@ func (c *Client) sendReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49364,7 +49364,7 @@ func (c *Client) sendReadBatchV1NamespacedCronJob(ctx context.Context, params Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49527,7 +49527,7 @@ func (c *Client) sendReadBatchV1NamespacedCronJobStatus(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49691,7 +49691,7 @@ func (c *Client) sendReadBatchV1NamespacedJob(ctx context.Context, params ReadBa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49854,7 +49854,7 @@ func (c *Client) sendReadBatchV1NamespacedJobStatus(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50018,7 +50018,7 @@ func (c *Client) sendReadBatchV1beta1NamespacedCronJob(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50181,7 +50181,7 @@ func (c *Client) sendReadBatchV1beta1NamespacedCronJobStatus(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50345,7 +50345,7 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequest(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50489,7 +50489,7 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequestApproval(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50634,7 +50634,7 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequestStatus(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50779,7 +50779,7 @@ func (c *Client) sendReadCoordinationV1NamespacedLease(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50942,7 +50942,7 @@ func (c *Client) sendReadCoreV1ComponentStatus(ctx context.Context, params ReadC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51086,7 +51086,7 @@ func (c *Client) sendReadCoreV1Namespace(ctx context.Context, params ReadCoreV1N defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51230,7 +51230,7 @@ func (c *Client) sendReadCoreV1NamespaceStatus(ctx context.Context, params ReadC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51375,7 +51375,7 @@ func (c *Client) sendReadCoreV1NamespacedConfigMap(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51538,7 +51538,7 @@ func (c *Client) sendReadCoreV1NamespacedEndpoints(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51701,7 +51701,7 @@ func (c *Client) sendReadCoreV1NamespacedEvent(ctx context.Context, params ReadC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51864,7 +51864,7 @@ func (c *Client) sendReadCoreV1NamespacedLimitRange(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52027,7 +52027,7 @@ func (c *Client) sendReadCoreV1NamespacedPersistentVolumeClaim(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52190,7 +52190,7 @@ func (c *Client) sendReadCoreV1NamespacedPersistentVolumeClaimStatus(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52354,7 +52354,7 @@ func (c *Client) sendReadCoreV1NamespacedPod(ctx context.Context, params ReadCor defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52517,7 +52517,7 @@ func (c *Client) sendReadCoreV1NamespacedPodEphemeralcontainers(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52681,7 +52681,7 @@ func (c *Client) sendReadCoreV1NamespacedPodLog(ctx context.Context, params Read defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52981,7 +52981,7 @@ func (c *Client) sendReadCoreV1NamespacedPodStatus(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53145,7 +53145,7 @@ func (c *Client) sendReadCoreV1NamespacedPodTemplate(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53308,7 +53308,7 @@ func (c *Client) sendReadCoreV1NamespacedReplicationController(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53471,7 +53471,7 @@ func (c *Client) sendReadCoreV1NamespacedReplicationControllerScale(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53635,7 +53635,7 @@ func (c *Client) sendReadCoreV1NamespacedReplicationControllerStatus(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53799,7 +53799,7 @@ func (c *Client) sendReadCoreV1NamespacedResourceQuota(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53962,7 +53962,7 @@ func (c *Client) sendReadCoreV1NamespacedResourceQuotaStatus(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54126,7 +54126,7 @@ func (c *Client) sendReadCoreV1NamespacedSecret(ctx context.Context, params Read defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54289,7 +54289,7 @@ func (c *Client) sendReadCoreV1NamespacedService(ctx context.Context, params Rea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54452,7 +54452,7 @@ func (c *Client) sendReadCoreV1NamespacedServiceAccount(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54615,7 +54615,7 @@ func (c *Client) sendReadCoreV1NamespacedServiceStatus(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54779,7 +54779,7 @@ func (c *Client) sendReadCoreV1Node(ctx context.Context, params ReadCoreV1NodePa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54923,7 +54923,7 @@ func (c *Client) sendReadCoreV1NodeStatus(ctx context.Context, params ReadCoreV1 defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55068,7 +55068,7 @@ func (c *Client) sendReadCoreV1PersistentVolume(ctx context.Context, params Read defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55212,7 +55212,7 @@ func (c *Client) sendReadCoreV1PersistentVolumeStatus(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55357,7 +55357,7 @@ func (c *Client) sendReadDiscoveryV1NamespacedEndpointSlice(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55520,7 +55520,7 @@ func (c *Client) sendReadDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55683,7 +55683,7 @@ func (c *Client) sendReadEventsV1NamespacedEvent(ctx context.Context, params Rea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55846,7 +55846,7 @@ func (c *Client) sendReadEventsV1beta1NamespacedEvent(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56009,7 +56009,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1FlowSchema(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56153,7 +56153,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1FlowSchemaStatus(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56298,7 +56298,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration(c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56442,7 +56442,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56587,7 +56587,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2FlowSchema(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56731,7 +56731,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2FlowSchemaStatus(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56876,7 +56876,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration(c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57020,7 +57020,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57165,7 +57165,7 @@ func (c *Client) sendReadInternalApiserverV1alpha1StorageVersion(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57309,7 +57309,7 @@ func (c *Client) sendReadInternalApiserverV1alpha1StorageVersionStatus(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57454,7 +57454,7 @@ func (c *Client) sendReadNetworkingV1IngressClass(ctx context.Context, params Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57598,7 +57598,7 @@ func (c *Client) sendReadNetworkingV1NamespacedIngress(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57761,7 +57761,7 @@ func (c *Client) sendReadNetworkingV1NamespacedIngressStatus(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57925,7 +57925,7 @@ func (c *Client) sendReadNetworkingV1NamespacedNetworkPolicy(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58088,7 +58088,7 @@ func (c *Client) sendReadNodeV1RuntimeClass(ctx context.Context, params ReadNode defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58232,7 +58232,7 @@ func (c *Client) sendReadNodeV1alpha1RuntimeClass(ctx context.Context, params Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58376,7 +58376,7 @@ func (c *Client) sendReadNodeV1beta1RuntimeClass(ctx context.Context, params Rea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58520,7 +58520,7 @@ func (c *Client) sendReadPolicyV1NamespacedPodDisruptionBudget(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58683,7 +58683,7 @@ func (c *Client) sendReadPolicyV1NamespacedPodDisruptionBudgetStatus(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58847,7 +58847,7 @@ func (c *Client) sendReadPolicyV1beta1NamespacedPodDisruptionBudget(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59010,7 +59010,7 @@ func (c *Client) sendReadPolicyV1beta1NamespacedPodDisruptionBudgetStatus(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59174,7 +59174,7 @@ func (c *Client) sendReadPolicyV1beta1PodSecurityPolicy(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59318,7 +59318,7 @@ func (c *Client) sendReadRbacAuthorizationV1ClusterRole(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59462,7 +59462,7 @@ func (c *Client) sendReadRbacAuthorizationV1ClusterRoleBinding(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59606,7 +59606,7 @@ func (c *Client) sendReadRbacAuthorizationV1NamespacedRole(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59769,7 +59769,7 @@ func (c *Client) sendReadRbacAuthorizationV1NamespacedRoleBinding(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59932,7 +59932,7 @@ func (c *Client) sendReadSchedulingV1PriorityClass(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60076,7 +60076,7 @@ func (c *Client) sendReadStorageV1CSIDriver(ctx context.Context, params ReadStor defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60220,7 +60220,7 @@ func (c *Client) sendReadStorageV1CSINode(ctx context.Context, params ReadStorag defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60364,7 +60364,7 @@ func (c *Client) sendReadStorageV1StorageClass(ctx context.Context, params ReadS defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60508,7 +60508,7 @@ func (c *Client) sendReadStorageV1VolumeAttachment(ctx context.Context, params R defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60652,7 +60652,7 @@ func (c *Client) sendReadStorageV1VolumeAttachmentStatus(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60797,7 +60797,7 @@ func (c *Client) sendReadStorageV1alpha1NamespacedCSIStorageCapacity(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60960,7 +60960,7 @@ func (c *Client) sendReadStorageV1beta1NamespacedCSIStorageCapacity(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61125,7 +61125,7 @@ func (c *Client) sendWatchAdmissionregistrationV1MutatingWebhookConfiguration(ct defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61423,7 +61423,7 @@ func (c *Client) sendWatchAdmissionregistrationV1MutatingWebhookConfigurationLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61704,7 +61704,7 @@ func (c *Client) sendWatchAdmissionregistrationV1ValidatingWebhookConfiguration( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62002,7 +62002,7 @@ func (c *Client) sendWatchAdmissionregistrationV1ValidatingWebhookConfigurationL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62282,7 +62282,7 @@ func (c *Client) sendWatchApiextensionsV1CustomResourceDefinition(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62580,7 +62580,7 @@ func (c *Client) sendWatchApiextensionsV1CustomResourceDefinitionList(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62860,7 +62860,7 @@ func (c *Client) sendWatchApiregistrationV1APIService(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63158,7 +63158,7 @@ func (c *Client) sendWatchApiregistrationV1APIServiceList(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63438,7 +63438,7 @@ func (c *Client) sendWatchAppsV1ControllerRevisionListForAllNamespaces(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63718,7 +63718,7 @@ func (c *Client) sendWatchAppsV1DaemonSetListForAllNamespaces(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63998,7 +63998,7 @@ func (c *Client) sendWatchAppsV1DeploymentListForAllNamespaces(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64278,7 +64278,7 @@ func (c *Client) sendWatchAppsV1NamespacedControllerRevision(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64595,7 +64595,7 @@ func (c *Client) sendWatchAppsV1NamespacedControllerRevisionList(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64894,7 +64894,7 @@ func (c *Client) sendWatchAppsV1NamespacedDaemonSet(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65211,7 +65211,7 @@ func (c *Client) sendWatchAppsV1NamespacedDaemonSetList(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65510,7 +65510,7 @@ func (c *Client) sendWatchAppsV1NamespacedDeployment(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65827,7 +65827,7 @@ func (c *Client) sendWatchAppsV1NamespacedDeploymentList(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66126,7 +66126,7 @@ func (c *Client) sendWatchAppsV1NamespacedReplicaSet(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66443,7 +66443,7 @@ func (c *Client) sendWatchAppsV1NamespacedReplicaSetList(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66742,7 +66742,7 @@ func (c *Client) sendWatchAppsV1NamespacedStatefulSet(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67059,7 +67059,7 @@ func (c *Client) sendWatchAppsV1NamespacedStatefulSetList(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67358,7 +67358,7 @@ func (c *Client) sendWatchAppsV1ReplicaSetListForAllNamespaces(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67638,7 +67638,7 @@ func (c *Client) sendWatchAppsV1StatefulSetListForAllNamespaces(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67918,7 +67918,7 @@ func (c *Client) sendWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespac defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68198,7 +68198,7 @@ func (c *Client) sendWatchAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68515,7 +68515,7 @@ func (c *Client) sendWatchAutoscalingV1NamespacedHorizontalPodAutoscalerList(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68814,7 +68814,7 @@ func (c *Client) sendWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNam defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69094,7 +69094,7 @@ func (c *Client) sendWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ct defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69411,7 +69411,7 @@ func (c *Client) sendWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69710,7 +69710,7 @@ func (c *Client) sendWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNam defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69990,7 +69990,7 @@ func (c *Client) sendWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ct defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70307,7 +70307,7 @@ func (c *Client) sendWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerLis defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70606,7 +70606,7 @@ func (c *Client) sendWatchBatchV1CronJobListForAllNamespaces(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70886,7 +70886,7 @@ func (c *Client) sendWatchBatchV1JobListForAllNamespaces(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71166,7 +71166,7 @@ func (c *Client) sendWatchBatchV1NamespacedCronJob(ctx context.Context, params W defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71483,7 +71483,7 @@ func (c *Client) sendWatchBatchV1NamespacedCronJobList(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71782,7 +71782,7 @@ func (c *Client) sendWatchBatchV1NamespacedJob(ctx context.Context, params Watch defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72099,7 +72099,7 @@ func (c *Client) sendWatchBatchV1NamespacedJobList(ctx context.Context, params W defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72398,7 +72398,7 @@ func (c *Client) sendWatchBatchV1beta1CronJobListForAllNamespaces(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72678,7 +72678,7 @@ func (c *Client) sendWatchBatchV1beta1NamespacedCronJob(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72995,7 +72995,7 @@ func (c *Client) sendWatchBatchV1beta1NamespacedCronJobList(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73295,7 +73295,7 @@ func (c *Client) sendWatchCertificatesV1CertificateSigningRequest(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73593,7 +73593,7 @@ func (c *Client) sendWatchCertificatesV1CertificateSigningRequestList(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73873,7 +73873,7 @@ func (c *Client) sendWatchCoordinationV1LeaseListForAllNamespaces(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74153,7 +74153,7 @@ func (c *Client) sendWatchCoordinationV1NamespacedLease(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74470,7 +74470,7 @@ func (c *Client) sendWatchCoordinationV1NamespacedLeaseList(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74769,7 +74769,7 @@ func (c *Client) sendWatchCoreV1ConfigMapListForAllNamespaces(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75049,7 +75049,7 @@ func (c *Client) sendWatchCoreV1EndpointsListForAllNamespaces(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75329,7 +75329,7 @@ func (c *Client) sendWatchCoreV1EventListForAllNamespaces(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75609,7 +75609,7 @@ func (c *Client) sendWatchCoreV1LimitRangeListForAllNamespaces(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75889,7 +75889,7 @@ func (c *Client) sendWatchCoreV1Namespace(ctx context.Context, params WatchCoreV defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76187,7 +76187,7 @@ func (c *Client) sendWatchCoreV1NamespaceList(ctx context.Context, params WatchC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76467,7 +76467,7 @@ func (c *Client) sendWatchCoreV1NamespacedConfigMap(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76784,7 +76784,7 @@ func (c *Client) sendWatchCoreV1NamespacedConfigMapList(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77083,7 +77083,7 @@ func (c *Client) sendWatchCoreV1NamespacedEndpoints(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77400,7 +77400,7 @@ func (c *Client) sendWatchCoreV1NamespacedEndpointsList(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77699,7 +77699,7 @@ func (c *Client) sendWatchCoreV1NamespacedEvent(ctx context.Context, params Watc defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78016,7 +78016,7 @@ func (c *Client) sendWatchCoreV1NamespacedEventList(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78315,7 +78315,7 @@ func (c *Client) sendWatchCoreV1NamespacedLimitRange(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78632,7 +78632,7 @@ func (c *Client) sendWatchCoreV1NamespacedLimitRangeList(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78931,7 +78931,7 @@ func (c *Client) sendWatchCoreV1NamespacedPersistentVolumeClaim(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79248,7 +79248,7 @@ func (c *Client) sendWatchCoreV1NamespacedPersistentVolumeClaimList(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79547,7 +79547,7 @@ func (c *Client) sendWatchCoreV1NamespacedPod(ctx context.Context, params WatchC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79864,7 +79864,7 @@ func (c *Client) sendWatchCoreV1NamespacedPodList(ctx context.Context, params Wa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80163,7 +80163,7 @@ func (c *Client) sendWatchCoreV1NamespacedPodTemplate(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80480,7 +80480,7 @@ func (c *Client) sendWatchCoreV1NamespacedPodTemplateList(ctx context.Context, p defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80779,7 +80779,7 @@ func (c *Client) sendWatchCoreV1NamespacedReplicationController(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -81096,7 +81096,7 @@ func (c *Client) sendWatchCoreV1NamespacedReplicationControllerList(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -81395,7 +81395,7 @@ func (c *Client) sendWatchCoreV1NamespacedResourceQuota(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -81712,7 +81712,7 @@ func (c *Client) sendWatchCoreV1NamespacedResourceQuotaList(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82011,7 +82011,7 @@ func (c *Client) sendWatchCoreV1NamespacedSecret(ctx context.Context, params Wat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82328,7 +82328,7 @@ func (c *Client) sendWatchCoreV1NamespacedSecretList(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82627,7 +82627,7 @@ func (c *Client) sendWatchCoreV1NamespacedService(ctx context.Context, params Wa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -82944,7 +82944,7 @@ func (c *Client) sendWatchCoreV1NamespacedServiceAccount(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -83261,7 +83261,7 @@ func (c *Client) sendWatchCoreV1NamespacedServiceAccountList(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -83560,7 +83560,7 @@ func (c *Client) sendWatchCoreV1NamespacedServiceList(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -83859,7 +83859,7 @@ func (c *Client) sendWatchCoreV1Node(ctx context.Context, params WatchCoreV1Node defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -84157,7 +84157,7 @@ func (c *Client) sendWatchCoreV1NodeList(ctx context.Context, params WatchCoreV1 defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -84437,7 +84437,7 @@ func (c *Client) sendWatchCoreV1PersistentVolume(ctx context.Context, params Wat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -84735,7 +84735,7 @@ func (c *Client) sendWatchCoreV1PersistentVolumeClaimListForAllNamespaces(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85015,7 +85015,7 @@ func (c *Client) sendWatchCoreV1PersistentVolumeList(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85295,7 +85295,7 @@ func (c *Client) sendWatchCoreV1PodListForAllNamespaces(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85575,7 +85575,7 @@ func (c *Client) sendWatchCoreV1PodTemplateListForAllNamespaces(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -85855,7 +85855,7 @@ func (c *Client) sendWatchCoreV1ReplicationControllerListForAllNamespaces(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86135,7 +86135,7 @@ func (c *Client) sendWatchCoreV1ResourceQuotaListForAllNamespaces(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86415,7 +86415,7 @@ func (c *Client) sendWatchCoreV1SecretListForAllNamespaces(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86695,7 +86695,7 @@ func (c *Client) sendWatchCoreV1ServiceAccountListForAllNamespaces(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -86975,7 +86975,7 @@ func (c *Client) sendWatchCoreV1ServiceListForAllNamespaces(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87255,7 +87255,7 @@ func (c *Client) sendWatchDiscoveryV1EndpointSliceListForAllNamespaces(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87535,7 +87535,7 @@ func (c *Client) sendWatchDiscoveryV1NamespacedEndpointSlice(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -87852,7 +87852,7 @@ func (c *Client) sendWatchDiscoveryV1NamespacedEndpointSliceList(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -88151,7 +88151,7 @@ func (c *Client) sendWatchDiscoveryV1beta1EndpointSliceListForAllNamespaces(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -88431,7 +88431,7 @@ func (c *Client) sendWatchDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -88748,7 +88748,7 @@ func (c *Client) sendWatchDiscoveryV1beta1NamespacedEndpointSliceList(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -89047,7 +89047,7 @@ func (c *Client) sendWatchEventsV1EventListForAllNamespaces(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -89327,7 +89327,7 @@ func (c *Client) sendWatchEventsV1NamespacedEvent(ctx context.Context, params Wa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -89644,7 +89644,7 @@ func (c *Client) sendWatchEventsV1NamespacedEventList(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -89943,7 +89943,7 @@ func (c *Client) sendWatchEventsV1beta1EventListForAllNamespaces(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -90223,7 +90223,7 @@ func (c *Client) sendWatchEventsV1beta1NamespacedEvent(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -90540,7 +90540,7 @@ func (c *Client) sendWatchEventsV1beta1NamespacedEventList(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -90839,7 +90839,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1FlowSchema(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91137,7 +91137,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1FlowSchemaList(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91418,7 +91418,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguration( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91716,7 +91716,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -91996,7 +91996,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2FlowSchema(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92294,7 +92294,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2FlowSchemaList(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92575,7 +92575,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguration( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -92873,7 +92873,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationL defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93153,7 +93153,7 @@ func (c *Client) sendWatchInternalApiserverV1alpha1StorageVersion(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93451,7 +93451,7 @@ func (c *Client) sendWatchInternalApiserverV1alpha1StorageVersionList(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -93731,7 +93731,7 @@ func (c *Client) sendWatchNetworkingV1IngressClass(ctx context.Context, params W defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -94029,7 +94029,7 @@ func (c *Client) sendWatchNetworkingV1IngressClassList(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -94309,7 +94309,7 @@ func (c *Client) sendWatchNetworkingV1IngressListForAllNamespaces(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -94589,7 +94589,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedIngress(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -94906,7 +94906,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedIngressList(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95205,7 +95205,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedNetworkPolicy(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95522,7 +95522,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedNetworkPolicyList(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -95821,7 +95821,7 @@ func (c *Client) sendWatchNetworkingV1NetworkPolicyListForAllNamespaces(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -96101,7 +96101,7 @@ func (c *Client) sendWatchNodeV1RuntimeClass(ctx context.Context, params WatchNo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -96399,7 +96399,7 @@ func (c *Client) sendWatchNodeV1RuntimeClassList(ctx context.Context, params Wat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -96679,7 +96679,7 @@ func (c *Client) sendWatchNodeV1alpha1RuntimeClass(ctx context.Context, params W defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -96977,7 +96977,7 @@ func (c *Client) sendWatchNodeV1alpha1RuntimeClassList(ctx context.Context, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97257,7 +97257,7 @@ func (c *Client) sendWatchNodeV1beta1RuntimeClass(ctx context.Context, params Wa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97555,7 +97555,7 @@ func (c *Client) sendWatchNodeV1beta1RuntimeClassList(ctx context.Context, param defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -97835,7 +97835,7 @@ func (c *Client) sendWatchPolicyV1NamespacedPodDisruptionBudget(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98152,7 +98152,7 @@ func (c *Client) sendWatchPolicyV1NamespacedPodDisruptionBudgetList(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98451,7 +98451,7 @@ func (c *Client) sendWatchPolicyV1PodDisruptionBudgetListForAllNamespaces(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -98731,7 +98731,7 @@ func (c *Client) sendWatchPolicyV1beta1NamespacedPodDisruptionBudget(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99048,7 +99048,7 @@ func (c *Client) sendWatchPolicyV1beta1NamespacedPodDisruptionBudgetList(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99347,7 +99347,7 @@ func (c *Client) sendWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces(c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99627,7 +99627,7 @@ func (c *Client) sendWatchPolicyV1beta1PodSecurityPolicy(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -99925,7 +99925,7 @@ func (c *Client) sendWatchPolicyV1beta1PodSecurityPolicyList(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100205,7 +100205,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRole(ctx context.Context, pa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100503,7 +100503,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleBinding(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -100801,7 +100801,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleBindingList(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101081,7 +101081,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleList(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101361,7 +101361,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRole(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101678,7 +101678,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleBinding(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -101995,7 +101995,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleBindingList(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -102294,7 +102294,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleList(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -102593,7 +102593,7 @@ func (c *Client) sendWatchRbacAuthorizationV1RoleBindingListForAllNamespaces(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -102873,7 +102873,7 @@ func (c *Client) sendWatchRbacAuthorizationV1RoleListForAllNamespaces(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -103153,7 +103153,7 @@ func (c *Client) sendWatchSchedulingV1PriorityClass(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -103451,7 +103451,7 @@ func (c *Client) sendWatchSchedulingV1PriorityClassList(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -103731,7 +103731,7 @@ func (c *Client) sendWatchStorageV1CSIDriver(ctx context.Context, params WatchSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -104029,7 +104029,7 @@ func (c *Client) sendWatchStorageV1CSIDriverList(ctx context.Context, params Wat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -104309,7 +104309,7 @@ func (c *Client) sendWatchStorageV1CSINode(ctx context.Context, params WatchStor defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -104607,7 +104607,7 @@ func (c *Client) sendWatchStorageV1CSINodeList(ctx context.Context, params Watch defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -104887,7 +104887,7 @@ func (c *Client) sendWatchStorageV1StorageClass(ctx context.Context, params Watc defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -105185,7 +105185,7 @@ func (c *Client) sendWatchStorageV1StorageClassList(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -105465,7 +105465,7 @@ func (c *Client) sendWatchStorageV1VolumeAttachment(ctx context.Context, params defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -105763,7 +105763,7 @@ func (c *Client) sendWatchStorageV1VolumeAttachmentList(ctx context.Context, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -106043,7 +106043,7 @@ func (c *Client) sendWatchStorageV1alpha1CSIStorageCapacityListForAllNamespaces( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -106323,7 +106323,7 @@ func (c *Client) sendWatchStorageV1alpha1NamespacedCSIStorageCapacity(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -106640,7 +106640,7 @@ func (c *Client) sendWatchStorageV1alpha1NamespacedCSIStorageCapacityList(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -106939,7 +106939,7 @@ func (c *Client) sendWatchStorageV1beta1CSIStorageCapacityListForAllNamespaces(c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -107219,7 +107219,7 @@ func (c *Client) sendWatchStorageV1beta1NamespacedCSIStorageCapacity(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -107536,7 +107536,7 @@ func (c *Client) sendWatchStorageV1beta1NamespacedCSIStorageCapacityList(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_k8s/oas_handlers_gen.go b/examples/ex_k8s/oas_handlers_gen.go index 15c59f636..6081b3386 100644 --- a/examples/ex_k8s/oas_handlers_gen.go +++ b/examples/ex_k8s/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedPodProxyRequest(args [2]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedPodProxyRequest(args [2]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -268,7 +264,7 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedPodProxyWithPathRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -279,12 +275,8 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedPodProxyWithPathRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -466,7 +458,7 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedServiceProxyRequest(args [2] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -477,12 +469,8 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedServiceProxyRequest(args [2] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -660,7 +648,7 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedServiceProxyWithPathRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -671,12 +659,8 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedServiceProxyWithPathRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -858,7 +842,7 @@ func (s *Server) handleConnectCoreV1DeleteNodeProxyRequest(args [1]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -869,12 +853,8 @@ func (s *Server) handleConnectCoreV1DeleteNodeProxyRequest(args [1]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1048,7 +1028,7 @@ func (s *Server) handleConnectCoreV1DeleteNodeProxyWithPathRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1059,12 +1039,8 @@ func (s *Server) handleConnectCoreV1DeleteNodeProxyWithPathRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1242,7 +1218,7 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodAttachRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1253,12 +1229,8 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodAttachRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1452,7 +1424,7 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodExecRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1463,12 +1435,8 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodExecRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1666,7 +1634,7 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodPortforwardRequest(args [2]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1677,12 +1645,8 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodPortforwardRequest(args [2]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1860,7 +1824,7 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodProxyRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1871,12 +1835,8 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodProxyRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2054,7 +2014,7 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodProxyWithPathRequest(args [3 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2065,12 +2025,8 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodProxyWithPathRequest(args [3 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2252,7 +2208,7 @@ func (s *Server) handleConnectCoreV1GetNamespacedServiceProxyRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2263,12 +2219,8 @@ func (s *Server) handleConnectCoreV1GetNamespacedServiceProxyRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2446,7 +2398,7 @@ func (s *Server) handleConnectCoreV1GetNamespacedServiceProxyWithPathRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2457,12 +2409,8 @@ func (s *Server) handleConnectCoreV1GetNamespacedServiceProxyWithPathRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2644,7 +2592,7 @@ func (s *Server) handleConnectCoreV1GetNodeProxyRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2655,12 +2603,8 @@ func (s *Server) handleConnectCoreV1GetNodeProxyRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2834,7 +2778,7 @@ func (s *Server) handleConnectCoreV1GetNodeProxyWithPathRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2845,12 +2789,8 @@ func (s *Server) handleConnectCoreV1GetNodeProxyWithPathRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3028,7 +2968,7 @@ func (s *Server) handleConnectCoreV1HeadNamespacedPodProxyRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3039,12 +2979,8 @@ func (s *Server) handleConnectCoreV1HeadNamespacedPodProxyRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3222,7 +3158,7 @@ func (s *Server) handleConnectCoreV1HeadNamespacedPodProxyWithPathRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3233,12 +3169,8 @@ func (s *Server) handleConnectCoreV1HeadNamespacedPodProxyWithPathRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3420,7 +3352,7 @@ func (s *Server) handleConnectCoreV1HeadNamespacedServiceProxyRequest(args [2]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3431,12 +3363,8 @@ func (s *Server) handleConnectCoreV1HeadNamespacedServiceProxyRequest(args [2]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3614,7 +3542,7 @@ func (s *Server) handleConnectCoreV1HeadNamespacedServiceProxyWithPathRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3625,12 +3553,8 @@ func (s *Server) handleConnectCoreV1HeadNamespacedServiceProxyWithPathRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3812,7 +3736,7 @@ func (s *Server) handleConnectCoreV1HeadNodeProxyRequest(args [1]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3823,12 +3747,8 @@ func (s *Server) handleConnectCoreV1HeadNodeProxyRequest(args [1]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4002,7 +3922,7 @@ func (s *Server) handleConnectCoreV1HeadNodeProxyWithPathRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4013,12 +3933,8 @@ func (s *Server) handleConnectCoreV1HeadNodeProxyWithPathRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4196,7 +4112,7 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedPodProxyRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4207,12 +4123,8 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedPodProxyRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4390,7 +4302,7 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedPodProxyWithPathRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4401,12 +4313,8 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedPodProxyWithPathRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4588,7 +4496,7 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedServiceProxyRequest(args [2 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4599,12 +4507,8 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedServiceProxyRequest(args [2 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4782,7 +4686,7 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedServiceProxyWithPathRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4793,12 +4697,8 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedServiceProxyWithPathRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4980,7 +4880,7 @@ func (s *Server) handleConnectCoreV1OptionsNodeProxyRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4991,12 +4891,8 @@ func (s *Server) handleConnectCoreV1OptionsNodeProxyRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5170,7 +5066,7 @@ func (s *Server) handleConnectCoreV1OptionsNodeProxyWithPathRequest(args [2]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5181,12 +5077,8 @@ func (s *Server) handleConnectCoreV1OptionsNodeProxyWithPathRequest(args [2]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5364,7 +5256,7 @@ func (s *Server) handleConnectCoreV1PatchNamespacedPodProxyRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5375,12 +5267,8 @@ func (s *Server) handleConnectCoreV1PatchNamespacedPodProxyRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5558,7 +5446,7 @@ func (s *Server) handleConnectCoreV1PatchNamespacedPodProxyWithPathRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5569,12 +5457,8 @@ func (s *Server) handleConnectCoreV1PatchNamespacedPodProxyWithPathRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5756,7 +5640,7 @@ func (s *Server) handleConnectCoreV1PatchNamespacedServiceProxyRequest(args [2]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5767,12 +5651,8 @@ func (s *Server) handleConnectCoreV1PatchNamespacedServiceProxyRequest(args [2]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5950,7 +5830,7 @@ func (s *Server) handleConnectCoreV1PatchNamespacedServiceProxyWithPathRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5961,12 +5841,8 @@ func (s *Server) handleConnectCoreV1PatchNamespacedServiceProxyWithPathRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6148,7 +6024,7 @@ func (s *Server) handleConnectCoreV1PatchNodeProxyRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6159,12 +6035,8 @@ func (s *Server) handleConnectCoreV1PatchNodeProxyRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6338,7 +6210,7 @@ func (s *Server) handleConnectCoreV1PatchNodeProxyWithPathRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6349,12 +6221,8 @@ func (s *Server) handleConnectCoreV1PatchNodeProxyWithPathRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6532,7 +6400,7 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodAttachRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6543,12 +6411,8 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodAttachRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6742,7 +6606,7 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodExecRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6753,12 +6617,8 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodExecRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6956,7 +6816,7 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodPortforwardRequest(args [2] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6967,12 +6827,8 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodPortforwardRequest(args [2] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7150,7 +7006,7 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodProxyRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7161,12 +7017,8 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodProxyRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7344,7 +7196,7 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodProxyWithPathRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7355,12 +7207,8 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodProxyWithPathRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7542,7 +7390,7 @@ func (s *Server) handleConnectCoreV1PostNamespacedServiceProxyRequest(args [2]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7553,12 +7401,8 @@ func (s *Server) handleConnectCoreV1PostNamespacedServiceProxyRequest(args [2]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7736,7 +7580,7 @@ func (s *Server) handleConnectCoreV1PostNamespacedServiceProxyWithPathRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7747,12 +7591,8 @@ func (s *Server) handleConnectCoreV1PostNamespacedServiceProxyWithPathRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7934,7 +7774,7 @@ func (s *Server) handleConnectCoreV1PostNodeProxyRequest(args [1]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7945,12 +7785,8 @@ func (s *Server) handleConnectCoreV1PostNodeProxyRequest(args [1]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8124,7 +7960,7 @@ func (s *Server) handleConnectCoreV1PostNodeProxyWithPathRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8135,12 +7971,8 @@ func (s *Server) handleConnectCoreV1PostNodeProxyWithPathRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8318,7 +8150,7 @@ func (s *Server) handleConnectCoreV1PutNamespacedPodProxyRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8329,12 +8161,8 @@ func (s *Server) handleConnectCoreV1PutNamespacedPodProxyRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8512,7 +8340,7 @@ func (s *Server) handleConnectCoreV1PutNamespacedPodProxyWithPathRequest(args [3 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8523,12 +8351,8 @@ func (s *Server) handleConnectCoreV1PutNamespacedPodProxyWithPathRequest(args [3 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8710,7 +8534,7 @@ func (s *Server) handleConnectCoreV1PutNamespacedServiceProxyRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8721,12 +8545,8 @@ func (s *Server) handleConnectCoreV1PutNamespacedServiceProxyRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8904,7 +8724,7 @@ func (s *Server) handleConnectCoreV1PutNamespacedServiceProxyWithPathRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8915,12 +8735,8 @@ func (s *Server) handleConnectCoreV1PutNamespacedServiceProxyWithPathRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9102,7 +8918,7 @@ func (s *Server) handleConnectCoreV1PutNodeProxyRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9113,12 +8929,8 @@ func (s *Server) handleConnectCoreV1PutNodeProxyRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9292,7 +9104,7 @@ func (s *Server) handleConnectCoreV1PutNodeProxyWithPathRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9303,12 +9115,8 @@ func (s *Server) handleConnectCoreV1PutNodeProxyWithPathRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9486,7 +9294,7 @@ func (s *Server) handleGetAPIVersionsRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9497,12 +9305,8 @@ func (s *Server) handleGetAPIVersionsRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9657,7 +9461,7 @@ func (s *Server) handleGetAdmissionregistrationAPIGroupRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9668,12 +9472,8 @@ func (s *Server) handleGetAdmissionregistrationAPIGroupRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9828,7 +9628,7 @@ func (s *Server) handleGetAdmissionregistrationV1APIResourcesRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9839,12 +9639,8 @@ func (s *Server) handleGetAdmissionregistrationV1APIResourcesRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9999,7 +9795,7 @@ func (s *Server) handleGetApiextensionsAPIGroupRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10010,12 +9806,8 @@ func (s *Server) handleGetApiextensionsAPIGroupRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10170,7 +9962,7 @@ func (s *Server) handleGetApiextensionsV1APIResourcesRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10181,12 +9973,8 @@ func (s *Server) handleGetApiextensionsV1APIResourcesRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10341,7 +10129,7 @@ func (s *Server) handleGetApiregistrationAPIGroupRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10352,12 +10140,8 @@ func (s *Server) handleGetApiregistrationAPIGroupRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10512,7 +10296,7 @@ func (s *Server) handleGetApiregistrationV1APIResourcesRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10523,12 +10307,8 @@ func (s *Server) handleGetApiregistrationV1APIResourcesRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10683,7 +10463,7 @@ func (s *Server) handleGetAppsAPIGroupRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10694,12 +10474,8 @@ func (s *Server) handleGetAppsAPIGroupRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10854,7 +10630,7 @@ func (s *Server) handleGetAppsV1APIResourcesRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10865,12 +10641,8 @@ func (s *Server) handleGetAppsV1APIResourcesRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11025,7 +10797,7 @@ func (s *Server) handleGetAuthenticationAPIGroupRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11036,12 +10808,8 @@ func (s *Server) handleGetAuthenticationAPIGroupRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11196,7 +10964,7 @@ func (s *Server) handleGetAuthenticationV1APIResourcesRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11207,12 +10975,8 @@ func (s *Server) handleGetAuthenticationV1APIResourcesRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11367,7 +11131,7 @@ func (s *Server) handleGetAuthorizationAPIGroupRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11378,12 +11142,8 @@ func (s *Server) handleGetAuthorizationAPIGroupRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11538,7 +11298,7 @@ func (s *Server) handleGetAuthorizationV1APIResourcesRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11549,12 +11309,8 @@ func (s *Server) handleGetAuthorizationV1APIResourcesRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11709,7 +11465,7 @@ func (s *Server) handleGetAutoscalingAPIGroupRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11720,12 +11476,8 @@ func (s *Server) handleGetAutoscalingAPIGroupRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11880,7 +11632,7 @@ func (s *Server) handleGetAutoscalingV1APIResourcesRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11891,12 +11643,8 @@ func (s *Server) handleGetAutoscalingV1APIResourcesRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12051,7 +11799,7 @@ func (s *Server) handleGetAutoscalingV2beta1APIResourcesRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12062,12 +11810,8 @@ func (s *Server) handleGetAutoscalingV2beta1APIResourcesRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12222,7 +11966,7 @@ func (s *Server) handleGetAutoscalingV2beta2APIResourcesRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12233,12 +11977,8 @@ func (s *Server) handleGetAutoscalingV2beta2APIResourcesRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12393,7 +12133,7 @@ func (s *Server) handleGetBatchAPIGroupRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12404,12 +12144,8 @@ func (s *Server) handleGetBatchAPIGroupRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12564,7 +12300,7 @@ func (s *Server) handleGetBatchV1APIResourcesRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12575,12 +12311,8 @@ func (s *Server) handleGetBatchV1APIResourcesRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12735,7 +12467,7 @@ func (s *Server) handleGetBatchV1beta1APIResourcesRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12746,12 +12478,8 @@ func (s *Server) handleGetBatchV1beta1APIResourcesRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12906,7 +12634,7 @@ func (s *Server) handleGetCertificatesAPIGroupRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12917,12 +12645,8 @@ func (s *Server) handleGetCertificatesAPIGroupRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13077,7 +12801,7 @@ func (s *Server) handleGetCertificatesV1APIResourcesRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13088,12 +12812,8 @@ func (s *Server) handleGetCertificatesV1APIResourcesRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13248,7 +12968,7 @@ func (s *Server) handleGetCodeVersionRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13259,12 +12979,8 @@ func (s *Server) handleGetCodeVersionRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13419,7 +13135,7 @@ func (s *Server) handleGetCoordinationAPIGroupRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13430,12 +13146,8 @@ func (s *Server) handleGetCoordinationAPIGroupRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13590,7 +13302,7 @@ func (s *Server) handleGetCoordinationV1APIResourcesRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13601,12 +13313,8 @@ func (s *Server) handleGetCoordinationV1APIResourcesRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13761,7 +13469,7 @@ func (s *Server) handleGetCoreAPIVersionsRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13772,12 +13480,8 @@ func (s *Server) handleGetCoreAPIVersionsRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13932,7 +13636,7 @@ func (s *Server) handleGetCoreV1APIResourcesRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13943,12 +13647,8 @@ func (s *Server) handleGetCoreV1APIResourcesRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14103,7 +13803,7 @@ func (s *Server) handleGetDiscoveryAPIGroupRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14114,12 +13814,8 @@ func (s *Server) handleGetDiscoveryAPIGroupRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14274,7 +13970,7 @@ func (s *Server) handleGetDiscoveryV1APIResourcesRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14285,12 +13981,8 @@ func (s *Server) handleGetDiscoveryV1APIResourcesRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14445,7 +14137,7 @@ func (s *Server) handleGetDiscoveryV1beta1APIResourcesRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14456,12 +14148,8 @@ func (s *Server) handleGetDiscoveryV1beta1APIResourcesRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14616,7 +14304,7 @@ func (s *Server) handleGetEventsAPIGroupRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14627,12 +14315,8 @@ func (s *Server) handleGetEventsAPIGroupRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14787,7 +14471,7 @@ func (s *Server) handleGetEventsV1APIResourcesRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14798,12 +14482,8 @@ func (s *Server) handleGetEventsV1APIResourcesRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14958,7 +14638,7 @@ func (s *Server) handleGetEventsV1beta1APIResourcesRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14969,12 +14649,8 @@ func (s *Server) handleGetEventsV1beta1APIResourcesRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15129,7 +14805,7 @@ func (s *Server) handleGetFlowcontrolApiserverAPIGroupRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15140,12 +14816,8 @@ func (s *Server) handleGetFlowcontrolApiserverAPIGroupRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15300,7 +14972,7 @@ func (s *Server) handleGetFlowcontrolApiserverV1beta1APIResourcesRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15311,12 +14983,8 @@ func (s *Server) handleGetFlowcontrolApiserverV1beta1APIResourcesRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15471,7 +15139,7 @@ func (s *Server) handleGetFlowcontrolApiserverV1beta2APIResourcesRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15482,12 +15150,8 @@ func (s *Server) handleGetFlowcontrolApiserverV1beta2APIResourcesRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15642,7 +15306,7 @@ func (s *Server) handleGetInternalApiserverAPIGroupRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15653,12 +15317,8 @@ func (s *Server) handleGetInternalApiserverAPIGroupRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15813,7 +15473,7 @@ func (s *Server) handleGetInternalApiserverV1alpha1APIResourcesRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15824,12 +15484,8 @@ func (s *Server) handleGetInternalApiserverV1alpha1APIResourcesRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15984,7 +15640,7 @@ func (s *Server) handleGetNetworkingAPIGroupRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15995,12 +15651,8 @@ func (s *Server) handleGetNetworkingAPIGroupRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16155,7 +15807,7 @@ func (s *Server) handleGetNetworkingV1APIResourcesRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16166,12 +15818,8 @@ func (s *Server) handleGetNetworkingV1APIResourcesRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16326,7 +15974,7 @@ func (s *Server) handleGetNodeAPIGroupRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16337,12 +15985,8 @@ func (s *Server) handleGetNodeAPIGroupRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16497,7 +16141,7 @@ func (s *Server) handleGetNodeV1APIResourcesRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16508,12 +16152,8 @@ func (s *Server) handleGetNodeV1APIResourcesRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16668,7 +16308,7 @@ func (s *Server) handleGetNodeV1alpha1APIResourcesRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16679,12 +16319,8 @@ func (s *Server) handleGetNodeV1alpha1APIResourcesRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16839,7 +16475,7 @@ func (s *Server) handleGetNodeV1beta1APIResourcesRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16850,12 +16486,8 @@ func (s *Server) handleGetNodeV1beta1APIResourcesRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17010,7 +16642,7 @@ func (s *Server) handleGetPolicyAPIGroupRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17021,12 +16653,8 @@ func (s *Server) handleGetPolicyAPIGroupRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17181,7 +16809,7 @@ func (s *Server) handleGetPolicyV1APIResourcesRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17192,12 +16820,8 @@ func (s *Server) handleGetPolicyV1APIResourcesRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17352,7 +16976,7 @@ func (s *Server) handleGetPolicyV1beta1APIResourcesRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17363,12 +16987,8 @@ func (s *Server) handleGetPolicyV1beta1APIResourcesRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17523,7 +17143,7 @@ func (s *Server) handleGetRbacAuthorizationAPIGroupRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17534,12 +17154,8 @@ func (s *Server) handleGetRbacAuthorizationAPIGroupRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17694,7 +17310,7 @@ func (s *Server) handleGetRbacAuthorizationV1APIResourcesRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17705,12 +17321,8 @@ func (s *Server) handleGetRbacAuthorizationV1APIResourcesRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17865,7 +17477,7 @@ func (s *Server) handleGetSchedulingAPIGroupRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17876,12 +17488,8 @@ func (s *Server) handleGetSchedulingAPIGroupRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18036,7 +17644,7 @@ func (s *Server) handleGetSchedulingV1APIResourcesRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18047,12 +17655,8 @@ func (s *Server) handleGetSchedulingV1APIResourcesRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18207,7 +17811,7 @@ func (s *Server) handleGetServiceAccountIssuerOpenIDConfigurationRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18218,12 +17822,8 @@ func (s *Server) handleGetServiceAccountIssuerOpenIDConfigurationRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18378,7 +17978,7 @@ func (s *Server) handleGetServiceAccountIssuerOpenIDKeysetRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18389,12 +17989,8 @@ func (s *Server) handleGetServiceAccountIssuerOpenIDKeysetRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18549,7 +18145,7 @@ func (s *Server) handleGetStorageAPIGroupRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18560,12 +18156,8 @@ func (s *Server) handleGetStorageAPIGroupRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18720,7 +18312,7 @@ func (s *Server) handleGetStorageV1APIResourcesRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18731,12 +18323,8 @@ func (s *Server) handleGetStorageV1APIResourcesRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18891,7 +18479,7 @@ func (s *Server) handleGetStorageV1alpha1APIResourcesRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18902,12 +18490,8 @@ func (s *Server) handleGetStorageV1alpha1APIResourcesRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19062,7 +18646,7 @@ func (s *Server) handleGetStorageV1beta1APIResourcesRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19073,12 +18657,8 @@ func (s *Server) handleGetStorageV1beta1APIResourcesRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19233,7 +18813,7 @@ func (s *Server) handleListAdmissionregistrationV1MutatingWebhookConfigurationRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19244,12 +18824,8 @@ func (s *Server) handleListAdmissionregistrationV1MutatingWebhookConfigurationRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19455,7 +19031,7 @@ func (s *Server) handleListAdmissionregistrationV1ValidatingWebhookConfiguration s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19466,12 +19042,8 @@ func (s *Server) handleListAdmissionregistrationV1ValidatingWebhookConfiguration // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19677,7 +19249,7 @@ func (s *Server) handleListApiextensionsV1CustomResourceDefinitionRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19688,12 +19260,8 @@ func (s *Server) handleListApiextensionsV1CustomResourceDefinitionRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19899,7 +19467,7 @@ func (s *Server) handleListApiregistrationV1APIServiceRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19910,12 +19478,8 @@ func (s *Server) handleListApiregistrationV1APIServiceRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20121,7 +19685,7 @@ func (s *Server) handleListAppsV1ControllerRevisionForAllNamespacesRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20132,12 +19696,8 @@ func (s *Server) handleListAppsV1ControllerRevisionForAllNamespacesRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20343,7 +19903,7 @@ func (s *Server) handleListAppsV1DaemonSetForAllNamespacesRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20354,12 +19914,8 @@ func (s *Server) handleListAppsV1DaemonSetForAllNamespacesRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20565,7 +20121,7 @@ func (s *Server) handleListAppsV1DeploymentForAllNamespacesRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20576,12 +20132,8 @@ func (s *Server) handleListAppsV1DeploymentForAllNamespacesRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20787,7 +20339,7 @@ func (s *Server) handleListAppsV1NamespacedControllerRevisionRequest(args [1]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20798,12 +20350,8 @@ func (s *Server) handleListAppsV1NamespacedControllerRevisionRequest(args [1]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21013,7 +20561,7 @@ func (s *Server) handleListAppsV1NamespacedDaemonSetRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21024,12 +20572,8 @@ func (s *Server) handleListAppsV1NamespacedDaemonSetRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21239,7 +20783,7 @@ func (s *Server) handleListAppsV1NamespacedDeploymentRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21250,12 +20794,8 @@ func (s *Server) handleListAppsV1NamespacedDeploymentRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21465,7 +21005,7 @@ func (s *Server) handleListAppsV1NamespacedReplicaSetRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21476,12 +21016,8 @@ func (s *Server) handleListAppsV1NamespacedReplicaSetRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21691,7 +21227,7 @@ func (s *Server) handleListAppsV1NamespacedStatefulSetRequest(args [1]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21702,12 +21238,8 @@ func (s *Server) handleListAppsV1NamespacedStatefulSetRequest(args [1]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21917,7 +21449,7 @@ func (s *Server) handleListAppsV1ReplicaSetForAllNamespacesRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21928,12 +21460,8 @@ func (s *Server) handleListAppsV1ReplicaSetForAllNamespacesRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22139,7 +21667,7 @@ func (s *Server) handleListAppsV1StatefulSetForAllNamespacesRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22150,12 +21678,8 @@ func (s *Server) handleListAppsV1StatefulSetForAllNamespacesRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22361,7 +21885,7 @@ func (s *Server) handleListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesR s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22372,12 +21896,8 @@ func (s *Server) handleListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesR // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22583,7 +22103,7 @@ func (s *Server) handleListAutoscalingV1NamespacedHorizontalPodAutoscalerRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22594,12 +22114,8 @@ func (s *Server) handleListAutoscalingV1NamespacedHorizontalPodAutoscalerRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22809,7 +22325,7 @@ func (s *Server) handleListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamesp s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22820,12 +22336,8 @@ func (s *Server) handleListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamesp // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23031,7 +22543,7 @@ func (s *Server) handleListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23042,12 +22554,8 @@ func (s *Server) handleListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23257,7 +22765,7 @@ func (s *Server) handleListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamesp s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23268,12 +22776,8 @@ func (s *Server) handleListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamesp // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23479,7 +22983,7 @@ func (s *Server) handleListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23490,12 +22994,8 @@ func (s *Server) handleListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23705,7 +23205,7 @@ func (s *Server) handleListBatchV1CronJobForAllNamespacesRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23716,12 +23216,8 @@ func (s *Server) handleListBatchV1CronJobForAllNamespacesRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23927,7 +23423,7 @@ func (s *Server) handleListBatchV1JobForAllNamespacesRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23938,12 +23434,8 @@ func (s *Server) handleListBatchV1JobForAllNamespacesRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24149,7 +23641,7 @@ func (s *Server) handleListBatchV1NamespacedCronJobRequest(args [1]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24160,12 +23652,8 @@ func (s *Server) handleListBatchV1NamespacedCronJobRequest(args [1]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24375,7 +23863,7 @@ func (s *Server) handleListBatchV1NamespacedJobRequest(args [1]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24386,12 +23874,8 @@ func (s *Server) handleListBatchV1NamespacedJobRequest(args [1]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24601,7 +24085,7 @@ func (s *Server) handleListBatchV1beta1CronJobForAllNamespacesRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24612,12 +24096,8 @@ func (s *Server) handleListBatchV1beta1CronJobForAllNamespacesRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24823,7 +24303,7 @@ func (s *Server) handleListBatchV1beta1NamespacedCronJobRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24834,12 +24314,8 @@ func (s *Server) handleListBatchV1beta1NamespacedCronJobRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25049,7 +24525,7 @@ func (s *Server) handleListCertificatesV1CertificateSigningRequestRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25060,12 +24536,8 @@ func (s *Server) handleListCertificatesV1CertificateSigningRequestRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25271,7 +24743,7 @@ func (s *Server) handleListCoordinationV1LeaseForAllNamespacesRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25282,12 +24754,8 @@ func (s *Server) handleListCoordinationV1LeaseForAllNamespacesRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25493,7 +24961,7 @@ func (s *Server) handleListCoordinationV1NamespacedLeaseRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25504,12 +24972,8 @@ func (s *Server) handleListCoordinationV1NamespacedLeaseRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25719,7 +25183,7 @@ func (s *Server) handleListCoreV1ComponentStatusRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25730,12 +25194,8 @@ func (s *Server) handleListCoreV1ComponentStatusRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25941,7 +25401,7 @@ func (s *Server) handleListCoreV1ConfigMapForAllNamespacesRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25952,12 +25412,8 @@ func (s *Server) handleListCoreV1ConfigMapForAllNamespacesRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26163,7 +25619,7 @@ func (s *Server) handleListCoreV1EndpointsForAllNamespacesRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26174,12 +25630,8 @@ func (s *Server) handleListCoreV1EndpointsForAllNamespacesRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26385,7 +25837,7 @@ func (s *Server) handleListCoreV1EventForAllNamespacesRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26396,12 +25848,8 @@ func (s *Server) handleListCoreV1EventForAllNamespacesRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26607,7 +26055,7 @@ func (s *Server) handleListCoreV1LimitRangeForAllNamespacesRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26618,12 +26066,8 @@ func (s *Server) handleListCoreV1LimitRangeForAllNamespacesRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26829,7 +26273,7 @@ func (s *Server) handleListCoreV1NamespaceRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26840,12 +26284,8 @@ func (s *Server) handleListCoreV1NamespaceRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27051,7 +26491,7 @@ func (s *Server) handleListCoreV1NamespacedConfigMapRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27062,12 +26502,8 @@ func (s *Server) handleListCoreV1NamespacedConfigMapRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27277,7 +26713,7 @@ func (s *Server) handleListCoreV1NamespacedEndpointsRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27288,12 +26724,8 @@ func (s *Server) handleListCoreV1NamespacedEndpointsRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27503,7 +26935,7 @@ func (s *Server) handleListCoreV1NamespacedEventRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27514,12 +26946,8 @@ func (s *Server) handleListCoreV1NamespacedEventRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27729,7 +27157,7 @@ func (s *Server) handleListCoreV1NamespacedLimitRangeRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27740,12 +27168,8 @@ func (s *Server) handleListCoreV1NamespacedLimitRangeRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27955,7 +27379,7 @@ func (s *Server) handleListCoreV1NamespacedPersistentVolumeClaimRequest(args [1] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27966,12 +27390,8 @@ func (s *Server) handleListCoreV1NamespacedPersistentVolumeClaimRequest(args [1] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28181,7 +27601,7 @@ func (s *Server) handleListCoreV1NamespacedPodRequest(args [1]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28192,12 +27612,8 @@ func (s *Server) handleListCoreV1NamespacedPodRequest(args [1]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28407,7 +27823,7 @@ func (s *Server) handleListCoreV1NamespacedPodTemplateRequest(args [1]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28418,12 +27834,8 @@ func (s *Server) handleListCoreV1NamespacedPodTemplateRequest(args [1]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28633,7 +28045,7 @@ func (s *Server) handleListCoreV1NamespacedReplicationControllerRequest(args [1] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28644,12 +28056,8 @@ func (s *Server) handleListCoreV1NamespacedReplicationControllerRequest(args [1] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28859,7 +28267,7 @@ func (s *Server) handleListCoreV1NamespacedResourceQuotaRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28870,12 +28278,8 @@ func (s *Server) handleListCoreV1NamespacedResourceQuotaRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29085,7 +28489,7 @@ func (s *Server) handleListCoreV1NamespacedSecretRequest(args [1]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29096,12 +28500,8 @@ func (s *Server) handleListCoreV1NamespacedSecretRequest(args [1]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29311,7 +28711,7 @@ func (s *Server) handleListCoreV1NamespacedServiceRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29322,12 +28722,8 @@ func (s *Server) handleListCoreV1NamespacedServiceRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29537,7 +28933,7 @@ func (s *Server) handleListCoreV1NamespacedServiceAccountRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29548,12 +28944,8 @@ func (s *Server) handleListCoreV1NamespacedServiceAccountRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29763,7 +29155,7 @@ func (s *Server) handleListCoreV1NodeRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29774,12 +29166,8 @@ func (s *Server) handleListCoreV1NodeRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29985,7 +29373,7 @@ func (s *Server) handleListCoreV1PersistentVolumeRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29996,12 +29384,8 @@ func (s *Server) handleListCoreV1PersistentVolumeRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30207,7 +29591,7 @@ func (s *Server) handleListCoreV1PersistentVolumeClaimForAllNamespacesRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30218,12 +29602,8 @@ func (s *Server) handleListCoreV1PersistentVolumeClaimForAllNamespacesRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30429,7 +29809,7 @@ func (s *Server) handleListCoreV1PodForAllNamespacesRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30440,12 +29820,8 @@ func (s *Server) handleListCoreV1PodForAllNamespacesRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30651,7 +30027,7 @@ func (s *Server) handleListCoreV1PodTemplateForAllNamespacesRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30662,12 +30038,8 @@ func (s *Server) handleListCoreV1PodTemplateForAllNamespacesRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30873,7 +30245,7 @@ func (s *Server) handleListCoreV1ReplicationControllerForAllNamespacesRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30884,12 +30256,8 @@ func (s *Server) handleListCoreV1ReplicationControllerForAllNamespacesRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31095,7 +30463,7 @@ func (s *Server) handleListCoreV1ResourceQuotaForAllNamespacesRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31106,12 +30474,8 @@ func (s *Server) handleListCoreV1ResourceQuotaForAllNamespacesRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31317,7 +30681,7 @@ func (s *Server) handleListCoreV1SecretForAllNamespacesRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31328,12 +30692,8 @@ func (s *Server) handleListCoreV1SecretForAllNamespacesRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31539,7 +30899,7 @@ func (s *Server) handleListCoreV1ServiceAccountForAllNamespacesRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31550,12 +30910,8 @@ func (s *Server) handleListCoreV1ServiceAccountForAllNamespacesRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31761,7 +31117,7 @@ func (s *Server) handleListCoreV1ServiceForAllNamespacesRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31772,12 +31128,8 @@ func (s *Server) handleListCoreV1ServiceForAllNamespacesRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31983,7 +31335,7 @@ func (s *Server) handleListDiscoveryV1EndpointSliceForAllNamespacesRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31994,12 +31346,8 @@ func (s *Server) handleListDiscoveryV1EndpointSliceForAllNamespacesRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32205,7 +31553,7 @@ func (s *Server) handleListDiscoveryV1NamespacedEndpointSliceRequest(args [1]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32216,12 +31564,8 @@ func (s *Server) handleListDiscoveryV1NamespacedEndpointSliceRequest(args [1]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32431,7 +31775,7 @@ func (s *Server) handleListDiscoveryV1beta1EndpointSliceForAllNamespacesRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32442,12 +31786,8 @@ func (s *Server) handleListDiscoveryV1beta1EndpointSliceForAllNamespacesRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32653,7 +31993,7 @@ func (s *Server) handleListDiscoveryV1beta1NamespacedEndpointSliceRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32664,12 +32004,8 @@ func (s *Server) handleListDiscoveryV1beta1NamespacedEndpointSliceRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32879,7 +32215,7 @@ func (s *Server) handleListEventsV1EventForAllNamespacesRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32890,12 +32226,8 @@ func (s *Server) handleListEventsV1EventForAllNamespacesRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33101,7 +32433,7 @@ func (s *Server) handleListEventsV1NamespacedEventRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33112,12 +32444,8 @@ func (s *Server) handleListEventsV1NamespacedEventRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33327,7 +32655,7 @@ func (s *Server) handleListEventsV1beta1EventForAllNamespacesRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33338,12 +32666,8 @@ func (s *Server) handleListEventsV1beta1EventForAllNamespacesRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33549,7 +32873,7 @@ func (s *Server) handleListEventsV1beta1NamespacedEventRequest(args [1]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33560,12 +32884,8 @@ func (s *Server) handleListEventsV1beta1NamespacedEventRequest(args [1]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33775,7 +33095,7 @@ func (s *Server) handleListFlowcontrolApiserverV1beta1FlowSchemaRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33786,12 +33106,8 @@ func (s *Server) handleListFlowcontrolApiserverV1beta1FlowSchemaRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33997,7 +33313,7 @@ func (s *Server) handleListFlowcontrolApiserverV1beta1PriorityLevelConfiguration s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34008,12 +33324,8 @@ func (s *Server) handleListFlowcontrolApiserverV1beta1PriorityLevelConfiguration // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34219,7 +33531,7 @@ func (s *Server) handleListFlowcontrolApiserverV1beta2FlowSchemaRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34230,12 +33542,8 @@ func (s *Server) handleListFlowcontrolApiserverV1beta2FlowSchemaRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34441,7 +33749,7 @@ func (s *Server) handleListFlowcontrolApiserverV1beta2PriorityLevelConfiguration s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34452,12 +33760,8 @@ func (s *Server) handleListFlowcontrolApiserverV1beta2PriorityLevelConfiguration // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34663,7 +33967,7 @@ func (s *Server) handleListInternalApiserverV1alpha1StorageVersionRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34674,12 +33978,8 @@ func (s *Server) handleListInternalApiserverV1alpha1StorageVersionRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34885,7 +34185,7 @@ func (s *Server) handleListNetworkingV1IngressClassRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34896,12 +34196,8 @@ func (s *Server) handleListNetworkingV1IngressClassRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35107,7 +34403,7 @@ func (s *Server) handleListNetworkingV1IngressForAllNamespacesRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35118,12 +34414,8 @@ func (s *Server) handleListNetworkingV1IngressForAllNamespacesRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35329,7 +34621,7 @@ func (s *Server) handleListNetworkingV1NamespacedIngressRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35340,12 +34632,8 @@ func (s *Server) handleListNetworkingV1NamespacedIngressRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35555,7 +34843,7 @@ func (s *Server) handleListNetworkingV1NamespacedNetworkPolicyRequest(args [1]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35566,12 +34854,8 @@ func (s *Server) handleListNetworkingV1NamespacedNetworkPolicyRequest(args [1]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35781,7 +35065,7 @@ func (s *Server) handleListNetworkingV1NetworkPolicyForAllNamespacesRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35792,12 +35076,8 @@ func (s *Server) handleListNetworkingV1NetworkPolicyForAllNamespacesRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36003,7 +35283,7 @@ func (s *Server) handleListNodeV1RuntimeClassRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36014,12 +35294,8 @@ func (s *Server) handleListNodeV1RuntimeClassRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36225,7 +35501,7 @@ func (s *Server) handleListNodeV1alpha1RuntimeClassRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36236,12 +35512,8 @@ func (s *Server) handleListNodeV1alpha1RuntimeClassRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36447,7 +35719,7 @@ func (s *Server) handleListNodeV1beta1RuntimeClassRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36458,12 +35730,8 @@ func (s *Server) handleListNodeV1beta1RuntimeClassRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36669,7 +35937,7 @@ func (s *Server) handleListPolicyV1NamespacedPodDisruptionBudgetRequest(args [1] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36680,12 +35948,8 @@ func (s *Server) handleListPolicyV1NamespacedPodDisruptionBudgetRequest(args [1] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36895,7 +36159,7 @@ func (s *Server) handleListPolicyV1PodDisruptionBudgetForAllNamespacesRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36906,12 +36170,8 @@ func (s *Server) handleListPolicyV1PodDisruptionBudgetForAllNamespacesRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37117,7 +36377,7 @@ func (s *Server) handleListPolicyV1beta1NamespacedPodDisruptionBudgetRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37128,12 +36388,8 @@ func (s *Server) handleListPolicyV1beta1NamespacedPodDisruptionBudgetRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37343,7 +36599,7 @@ func (s *Server) handleListPolicyV1beta1PodDisruptionBudgetForAllNamespacesReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37354,12 +36610,8 @@ func (s *Server) handleListPolicyV1beta1PodDisruptionBudgetForAllNamespacesReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37565,7 +36817,7 @@ func (s *Server) handleListPolicyV1beta1PodSecurityPolicyRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37576,12 +36828,8 @@ func (s *Server) handleListPolicyV1beta1PodSecurityPolicyRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37787,7 +37035,7 @@ func (s *Server) handleListRbacAuthorizationV1ClusterRoleRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37798,12 +37046,8 @@ func (s *Server) handleListRbacAuthorizationV1ClusterRoleRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38009,7 +37253,7 @@ func (s *Server) handleListRbacAuthorizationV1ClusterRoleBindingRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38020,12 +37264,8 @@ func (s *Server) handleListRbacAuthorizationV1ClusterRoleBindingRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38231,7 +37471,7 @@ func (s *Server) handleListRbacAuthorizationV1NamespacedRoleRequest(args [1]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38242,12 +37482,8 @@ func (s *Server) handleListRbacAuthorizationV1NamespacedRoleRequest(args [1]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38457,7 +37693,7 @@ func (s *Server) handleListRbacAuthorizationV1NamespacedRoleBindingRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38468,12 +37704,8 @@ func (s *Server) handleListRbacAuthorizationV1NamespacedRoleBindingRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38683,7 +37915,7 @@ func (s *Server) handleListRbacAuthorizationV1RoleBindingForAllNamespacesRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38694,12 +37926,8 @@ func (s *Server) handleListRbacAuthorizationV1RoleBindingForAllNamespacesRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38905,7 +38133,7 @@ func (s *Server) handleListRbacAuthorizationV1RoleForAllNamespacesRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38916,12 +38144,8 @@ func (s *Server) handleListRbacAuthorizationV1RoleForAllNamespacesRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39127,7 +38351,7 @@ func (s *Server) handleListSchedulingV1PriorityClassRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39138,12 +38362,8 @@ func (s *Server) handleListSchedulingV1PriorityClassRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39349,7 +38569,7 @@ func (s *Server) handleListStorageV1CSIDriverRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39360,12 +38580,8 @@ func (s *Server) handleListStorageV1CSIDriverRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39571,7 +38787,7 @@ func (s *Server) handleListStorageV1CSINodeRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39582,12 +38798,8 @@ func (s *Server) handleListStorageV1CSINodeRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39793,7 +39005,7 @@ func (s *Server) handleListStorageV1StorageClassRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39804,12 +39016,8 @@ func (s *Server) handleListStorageV1StorageClassRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40015,7 +39223,7 @@ func (s *Server) handleListStorageV1VolumeAttachmentRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40026,12 +39234,8 @@ func (s *Server) handleListStorageV1VolumeAttachmentRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40237,7 +39441,7 @@ func (s *Server) handleListStorageV1alpha1CSIStorageCapacityForAllNamespacesRequ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40248,12 +39452,8 @@ func (s *Server) handleListStorageV1alpha1CSIStorageCapacityForAllNamespacesRequ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40459,7 +39659,7 @@ func (s *Server) handleListStorageV1alpha1NamespacedCSIStorageCapacityRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40470,12 +39670,8 @@ func (s *Server) handleListStorageV1alpha1NamespacedCSIStorageCapacityRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40685,7 +39881,7 @@ func (s *Server) handleListStorageV1beta1CSIStorageCapacityForAllNamespacesReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40696,12 +39892,8 @@ func (s *Server) handleListStorageV1beta1CSIStorageCapacityForAllNamespacesReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40907,7 +40099,7 @@ func (s *Server) handleListStorageV1beta1NamespacedCSIStorageCapacityRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40918,12 +40110,8 @@ func (s *Server) handleListStorageV1beta1NamespacedCSIStorageCapacityRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41131,7 +40319,7 @@ func (s *Server) handleLogFileHandlerRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41142,12 +40330,8 @@ func (s *Server) handleLogFileHandlerRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41315,7 +40499,7 @@ func (s *Server) handleLogFileListHandlerRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41326,12 +40510,8 @@ func (s *Server) handleLogFileListHandlerRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41486,7 +40666,7 @@ func (s *Server) handleReadAdmissionregistrationV1MutatingWebhookConfigurationRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41497,12 +40677,8 @@ func (s *Server) handleReadAdmissionregistrationV1MutatingWebhookConfigurationRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41676,7 +40852,7 @@ func (s *Server) handleReadAdmissionregistrationV1ValidatingWebhookConfiguration s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41687,12 +40863,8 @@ func (s *Server) handleReadAdmissionregistrationV1ValidatingWebhookConfiguration // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41866,7 +41038,7 @@ func (s *Server) handleReadApiextensionsV1CustomResourceDefinitionRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41877,12 +41049,8 @@ func (s *Server) handleReadApiextensionsV1CustomResourceDefinitionRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42056,7 +41224,7 @@ func (s *Server) handleReadApiextensionsV1CustomResourceDefinitionStatusRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42067,12 +41235,8 @@ func (s *Server) handleReadApiextensionsV1CustomResourceDefinitionStatusRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42246,7 +41410,7 @@ func (s *Server) handleReadApiregistrationV1APIServiceRequest(args [1]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42257,12 +41421,8 @@ func (s *Server) handleReadApiregistrationV1APIServiceRequest(args [1]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42436,7 +41596,7 @@ func (s *Server) handleReadApiregistrationV1APIServiceStatusRequest(args [1]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42447,12 +41607,8 @@ func (s *Server) handleReadApiregistrationV1APIServiceStatusRequest(args [1]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42626,7 +41782,7 @@ func (s *Server) handleReadAppsV1NamespacedControllerRevisionRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42637,12 +41793,8 @@ func (s *Server) handleReadAppsV1NamespacedControllerRevisionRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42820,7 +41972,7 @@ func (s *Server) handleReadAppsV1NamespacedDaemonSetRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42831,12 +41983,8 @@ func (s *Server) handleReadAppsV1NamespacedDaemonSetRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43014,7 +42162,7 @@ func (s *Server) handleReadAppsV1NamespacedDaemonSetStatusRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43025,12 +42173,8 @@ func (s *Server) handleReadAppsV1NamespacedDaemonSetStatusRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43208,7 +42352,7 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43219,12 +42363,8 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43402,7 +42542,7 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentScaleRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43413,12 +42553,8 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentScaleRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43596,7 +42732,7 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentStatusRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43607,12 +42743,8 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentStatusRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43790,7 +42922,7 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43801,12 +42933,8 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43984,7 +43112,7 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetScaleRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43995,12 +43123,8 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetScaleRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44178,7 +43302,7 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetStatusRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44189,12 +43313,8 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetStatusRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44372,7 +43492,7 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44383,12 +43503,8 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44566,7 +43682,7 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetScaleRequest(args [2]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44577,12 +43693,8 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetScaleRequest(args [2]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44760,7 +43872,7 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetStatusRequest(args [2]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44771,12 +43883,8 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetStatusRequest(args [2]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44954,7 +44062,7 @@ func (s *Server) handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44965,12 +44073,8 @@ func (s *Server) handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45148,7 +44252,7 @@ func (s *Server) handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusR s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45159,12 +44263,8 @@ func (s *Server) handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusR // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45342,7 +44442,7 @@ func (s *Server) handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45353,12 +44453,8 @@ func (s *Server) handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45536,7 +44632,7 @@ func (s *Server) handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerSt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45547,12 +44643,8 @@ func (s *Server) handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerSt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45730,7 +44822,7 @@ func (s *Server) handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45741,12 +44833,8 @@ func (s *Server) handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45924,7 +45012,7 @@ func (s *Server) handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerSt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45935,12 +45023,8 @@ func (s *Server) handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerSt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46118,7 +45202,7 @@ func (s *Server) handleReadBatchV1NamespacedCronJobRequest(args [2]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46129,12 +45213,8 @@ func (s *Server) handleReadBatchV1NamespacedCronJobRequest(args [2]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46312,7 +45392,7 @@ func (s *Server) handleReadBatchV1NamespacedCronJobStatusRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46323,12 +45403,8 @@ func (s *Server) handleReadBatchV1NamespacedCronJobStatusRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46506,7 +45582,7 @@ func (s *Server) handleReadBatchV1NamespacedJobRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46517,12 +45593,8 @@ func (s *Server) handleReadBatchV1NamespacedJobRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46700,7 +45772,7 @@ func (s *Server) handleReadBatchV1NamespacedJobStatusRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46711,12 +45783,8 @@ func (s *Server) handleReadBatchV1NamespacedJobStatusRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46894,7 +45962,7 @@ func (s *Server) handleReadBatchV1beta1NamespacedCronJobRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46905,12 +45973,8 @@ func (s *Server) handleReadBatchV1beta1NamespacedCronJobRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47088,7 +46152,7 @@ func (s *Server) handleReadBatchV1beta1NamespacedCronJobStatusRequest(args [2]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47099,12 +46163,8 @@ func (s *Server) handleReadBatchV1beta1NamespacedCronJobStatusRequest(args [2]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47282,7 +46342,7 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47293,12 +46353,8 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47472,7 +46528,7 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestApprovalReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47483,12 +46539,8 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestApprovalReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47662,7 +46714,7 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestStatusRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47673,12 +46725,8 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestStatusRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47852,7 +46900,7 @@ func (s *Server) handleReadCoordinationV1NamespacedLeaseRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47863,12 +46911,8 @@ func (s *Server) handleReadCoordinationV1NamespacedLeaseRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48046,7 +47090,7 @@ func (s *Server) handleReadCoreV1ComponentStatusRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48057,12 +47101,8 @@ func (s *Server) handleReadCoreV1ComponentStatusRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48236,7 +47276,7 @@ func (s *Server) handleReadCoreV1NamespaceRequest(args [1]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48247,12 +47287,8 @@ func (s *Server) handleReadCoreV1NamespaceRequest(args [1]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48426,7 +47462,7 @@ func (s *Server) handleReadCoreV1NamespaceStatusRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48437,12 +47473,8 @@ func (s *Server) handleReadCoreV1NamespaceStatusRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48616,7 +47648,7 @@ func (s *Server) handleReadCoreV1NamespacedConfigMapRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48627,12 +47659,8 @@ func (s *Server) handleReadCoreV1NamespacedConfigMapRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48810,7 +47838,7 @@ func (s *Server) handleReadCoreV1NamespacedEndpointsRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48821,12 +47849,8 @@ func (s *Server) handleReadCoreV1NamespacedEndpointsRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49004,7 +48028,7 @@ func (s *Server) handleReadCoreV1NamespacedEventRequest(args [2]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49015,12 +48039,8 @@ func (s *Server) handleReadCoreV1NamespacedEventRequest(args [2]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49198,7 +48218,7 @@ func (s *Server) handleReadCoreV1NamespacedLimitRangeRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49209,12 +48229,8 @@ func (s *Server) handleReadCoreV1NamespacedLimitRangeRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49392,7 +48408,7 @@ func (s *Server) handleReadCoreV1NamespacedPersistentVolumeClaimRequest(args [2] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49403,12 +48419,8 @@ func (s *Server) handleReadCoreV1NamespacedPersistentVolumeClaimRequest(args [2] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49586,7 +48598,7 @@ func (s *Server) handleReadCoreV1NamespacedPersistentVolumeClaimStatusRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49597,12 +48609,8 @@ func (s *Server) handleReadCoreV1NamespacedPersistentVolumeClaimStatusRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49780,7 +48788,7 @@ func (s *Server) handleReadCoreV1NamespacedPodRequest(args [2]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49791,12 +48799,8 @@ func (s *Server) handleReadCoreV1NamespacedPodRequest(args [2]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49974,7 +48978,7 @@ func (s *Server) handleReadCoreV1NamespacedPodEphemeralcontainersRequest(args [2 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49985,12 +48989,8 @@ func (s *Server) handleReadCoreV1NamespacedPodEphemeralcontainersRequest(args [2 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50168,7 +49168,7 @@ func (s *Server) handleReadCoreV1NamespacedPodLogRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50179,12 +49179,8 @@ func (s *Server) handleReadCoreV1NamespacedPodLogRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50394,7 +49390,7 @@ func (s *Server) handleReadCoreV1NamespacedPodStatusRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50405,12 +49401,8 @@ func (s *Server) handleReadCoreV1NamespacedPodStatusRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50588,7 +49580,7 @@ func (s *Server) handleReadCoreV1NamespacedPodTemplateRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50599,12 +49591,8 @@ func (s *Server) handleReadCoreV1NamespacedPodTemplateRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50782,7 +49770,7 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerRequest(args [2] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50793,12 +49781,8 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerRequest(args [2] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50976,7 +49960,7 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerScaleRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50987,12 +49971,8 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerScaleRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51170,7 +50150,7 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerStatusRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51181,12 +50161,8 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerStatusRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51364,7 +50340,7 @@ func (s *Server) handleReadCoreV1NamespacedResourceQuotaRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51375,12 +50351,8 @@ func (s *Server) handleReadCoreV1NamespacedResourceQuotaRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51558,7 +50530,7 @@ func (s *Server) handleReadCoreV1NamespacedResourceQuotaStatusRequest(args [2]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51569,12 +50541,8 @@ func (s *Server) handleReadCoreV1NamespacedResourceQuotaStatusRequest(args [2]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51752,7 +50720,7 @@ func (s *Server) handleReadCoreV1NamespacedSecretRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51763,12 +50731,8 @@ func (s *Server) handleReadCoreV1NamespacedSecretRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51946,7 +50910,7 @@ func (s *Server) handleReadCoreV1NamespacedServiceRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51957,12 +50921,8 @@ func (s *Server) handleReadCoreV1NamespacedServiceRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52140,7 +51100,7 @@ func (s *Server) handleReadCoreV1NamespacedServiceAccountRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52151,12 +51111,8 @@ func (s *Server) handleReadCoreV1NamespacedServiceAccountRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52334,7 +51290,7 @@ func (s *Server) handleReadCoreV1NamespacedServiceStatusRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52345,12 +51301,8 @@ func (s *Server) handleReadCoreV1NamespacedServiceStatusRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52528,7 +51480,7 @@ func (s *Server) handleReadCoreV1NodeRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52539,12 +51491,8 @@ func (s *Server) handleReadCoreV1NodeRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52718,7 +51666,7 @@ func (s *Server) handleReadCoreV1NodeStatusRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52729,12 +51677,8 @@ func (s *Server) handleReadCoreV1NodeStatusRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52908,7 +51852,7 @@ func (s *Server) handleReadCoreV1PersistentVolumeRequest(args [1]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52919,12 +51863,8 @@ func (s *Server) handleReadCoreV1PersistentVolumeRequest(args [1]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53098,7 +52038,7 @@ func (s *Server) handleReadCoreV1PersistentVolumeStatusRequest(args [1]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53109,12 +52049,8 @@ func (s *Server) handleReadCoreV1PersistentVolumeStatusRequest(args [1]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53288,7 +52224,7 @@ func (s *Server) handleReadDiscoveryV1NamespacedEndpointSliceRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53299,12 +52235,8 @@ func (s *Server) handleReadDiscoveryV1NamespacedEndpointSliceRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53482,7 +52414,7 @@ func (s *Server) handleReadDiscoveryV1beta1NamespacedEndpointSliceRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53493,12 +52425,8 @@ func (s *Server) handleReadDiscoveryV1beta1NamespacedEndpointSliceRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53676,7 +52604,7 @@ func (s *Server) handleReadEventsV1NamespacedEventRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53687,12 +52615,8 @@ func (s *Server) handleReadEventsV1NamespacedEventRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53870,7 +52794,7 @@ func (s *Server) handleReadEventsV1beta1NamespacedEventRequest(args [2]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53881,12 +52805,8 @@ func (s *Server) handleReadEventsV1beta1NamespacedEventRequest(args [2]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54064,7 +52984,7 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1FlowSchemaRequest(args [1] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54075,12 +52995,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1FlowSchemaRequest(args [1] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54254,7 +53170,7 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1FlowSchemaStatusRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54265,12 +53181,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1FlowSchemaStatusRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54444,7 +53356,7 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54455,12 +53367,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54634,7 +53542,7 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54645,12 +53553,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54824,7 +53728,7 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2FlowSchemaRequest(args [1] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54835,12 +53739,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2FlowSchemaRequest(args [1] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55014,7 +53914,7 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2FlowSchemaStatusRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55025,12 +53925,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2FlowSchemaStatusRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55204,7 +54100,7 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55215,12 +54111,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55394,7 +54286,7 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55405,12 +54297,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55584,7 +54472,7 @@ func (s *Server) handleReadInternalApiserverV1alpha1StorageVersionRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55595,12 +54483,8 @@ func (s *Server) handleReadInternalApiserverV1alpha1StorageVersionRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55774,7 +54658,7 @@ func (s *Server) handleReadInternalApiserverV1alpha1StorageVersionStatusRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55785,12 +54669,8 @@ func (s *Server) handleReadInternalApiserverV1alpha1StorageVersionStatusRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55964,7 +54844,7 @@ func (s *Server) handleReadNetworkingV1IngressClassRequest(args [1]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55975,12 +54855,8 @@ func (s *Server) handleReadNetworkingV1IngressClassRequest(args [1]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56154,7 +55030,7 @@ func (s *Server) handleReadNetworkingV1NamespacedIngressRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56165,12 +55041,8 @@ func (s *Server) handleReadNetworkingV1NamespacedIngressRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56348,7 +55220,7 @@ func (s *Server) handleReadNetworkingV1NamespacedIngressStatusRequest(args [2]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56359,12 +55231,8 @@ func (s *Server) handleReadNetworkingV1NamespacedIngressStatusRequest(args [2]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56542,7 +55410,7 @@ func (s *Server) handleReadNetworkingV1NamespacedNetworkPolicyRequest(args [2]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56553,12 +55421,8 @@ func (s *Server) handleReadNetworkingV1NamespacedNetworkPolicyRequest(args [2]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56736,7 +55600,7 @@ func (s *Server) handleReadNodeV1RuntimeClassRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56747,12 +55611,8 @@ func (s *Server) handleReadNodeV1RuntimeClassRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56926,7 +55786,7 @@ func (s *Server) handleReadNodeV1alpha1RuntimeClassRequest(args [1]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56937,12 +55797,8 @@ func (s *Server) handleReadNodeV1alpha1RuntimeClassRequest(args [1]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57116,7 +55972,7 @@ func (s *Server) handleReadNodeV1beta1RuntimeClassRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57127,12 +55983,8 @@ func (s *Server) handleReadNodeV1beta1RuntimeClassRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57306,7 +56158,7 @@ func (s *Server) handleReadPolicyV1NamespacedPodDisruptionBudgetRequest(args [2] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57317,12 +56169,8 @@ func (s *Server) handleReadPolicyV1NamespacedPodDisruptionBudgetRequest(args [2] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57500,7 +56348,7 @@ func (s *Server) handleReadPolicyV1NamespacedPodDisruptionBudgetStatusRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57511,12 +56359,8 @@ func (s *Server) handleReadPolicyV1NamespacedPodDisruptionBudgetStatusRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57694,7 +56538,7 @@ func (s *Server) handleReadPolicyV1beta1NamespacedPodDisruptionBudgetRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57705,12 +56549,8 @@ func (s *Server) handleReadPolicyV1beta1NamespacedPodDisruptionBudgetRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57888,7 +56728,7 @@ func (s *Server) handleReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57899,12 +56739,8 @@ func (s *Server) handleReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58082,7 +56918,7 @@ func (s *Server) handleReadPolicyV1beta1PodSecurityPolicyRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58093,12 +56929,8 @@ func (s *Server) handleReadPolicyV1beta1PodSecurityPolicyRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58272,7 +57104,7 @@ func (s *Server) handleReadRbacAuthorizationV1ClusterRoleRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58283,12 +57115,8 @@ func (s *Server) handleReadRbacAuthorizationV1ClusterRoleRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58462,7 +57290,7 @@ func (s *Server) handleReadRbacAuthorizationV1ClusterRoleBindingRequest(args [1] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58473,12 +57301,8 @@ func (s *Server) handleReadRbacAuthorizationV1ClusterRoleBindingRequest(args [1] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58652,7 +57476,7 @@ func (s *Server) handleReadRbacAuthorizationV1NamespacedRoleRequest(args [2]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58663,12 +57487,8 @@ func (s *Server) handleReadRbacAuthorizationV1NamespacedRoleRequest(args [2]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58846,7 +57666,7 @@ func (s *Server) handleReadRbacAuthorizationV1NamespacedRoleBindingRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58857,12 +57677,8 @@ func (s *Server) handleReadRbacAuthorizationV1NamespacedRoleBindingRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59040,7 +57856,7 @@ func (s *Server) handleReadSchedulingV1PriorityClassRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59051,12 +57867,8 @@ func (s *Server) handleReadSchedulingV1PriorityClassRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59230,7 +58042,7 @@ func (s *Server) handleReadStorageV1CSIDriverRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59241,12 +58053,8 @@ func (s *Server) handleReadStorageV1CSIDriverRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59420,7 +58228,7 @@ func (s *Server) handleReadStorageV1CSINodeRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59431,12 +58239,8 @@ func (s *Server) handleReadStorageV1CSINodeRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59610,7 +58414,7 @@ func (s *Server) handleReadStorageV1StorageClassRequest(args [1]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59621,12 +58425,8 @@ func (s *Server) handleReadStorageV1StorageClassRequest(args [1]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59800,7 +58600,7 @@ func (s *Server) handleReadStorageV1VolumeAttachmentRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59811,12 +58611,8 @@ func (s *Server) handleReadStorageV1VolumeAttachmentRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59990,7 +58786,7 @@ func (s *Server) handleReadStorageV1VolumeAttachmentStatusRequest(args [1]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60001,12 +58797,8 @@ func (s *Server) handleReadStorageV1VolumeAttachmentStatusRequest(args [1]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60180,7 +58972,7 @@ func (s *Server) handleReadStorageV1alpha1NamespacedCSIStorageCapacityRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60191,12 +58983,8 @@ func (s *Server) handleReadStorageV1alpha1NamespacedCSIStorageCapacityRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60374,7 +59162,7 @@ func (s *Server) handleReadStorageV1beta1NamespacedCSIStorageCapacityRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60385,12 +59173,8 @@ func (s *Server) handleReadStorageV1beta1NamespacedCSIStorageCapacityRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60570,7 +59354,7 @@ func (s *Server) handleWatchAdmissionregistrationV1MutatingWebhookConfigurationR s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60581,12 +59365,8 @@ func (s *Server) handleWatchAdmissionregistrationV1MutatingWebhookConfigurationR // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60797,7 +59577,7 @@ func (s *Server) handleWatchAdmissionregistrationV1MutatingWebhookConfigurationL s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60808,12 +59588,8 @@ func (s *Server) handleWatchAdmissionregistrationV1MutatingWebhookConfigurationL // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61021,7 +59797,7 @@ func (s *Server) handleWatchAdmissionregistrationV1ValidatingWebhookConfiguratio s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61032,12 +59808,8 @@ func (s *Server) handleWatchAdmissionregistrationV1ValidatingWebhookConfiguratio // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61248,7 +60020,7 @@ func (s *Server) handleWatchAdmissionregistrationV1ValidatingWebhookConfiguratio s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61259,12 +60031,8 @@ func (s *Server) handleWatchAdmissionregistrationV1ValidatingWebhookConfiguratio // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61471,7 +60239,7 @@ func (s *Server) handleWatchApiextensionsV1CustomResourceDefinitionRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61482,12 +60250,8 @@ func (s *Server) handleWatchApiextensionsV1CustomResourceDefinitionRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61698,7 +60462,7 @@ func (s *Server) handleWatchApiextensionsV1CustomResourceDefinitionListRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61709,12 +60473,8 @@ func (s *Server) handleWatchApiextensionsV1CustomResourceDefinitionListRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61921,7 +60681,7 @@ func (s *Server) handleWatchApiregistrationV1APIServiceRequest(args [1]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61932,12 +60692,8 @@ func (s *Server) handleWatchApiregistrationV1APIServiceRequest(args [1]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62148,7 +60904,7 @@ func (s *Server) handleWatchApiregistrationV1APIServiceListRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62159,12 +60915,8 @@ func (s *Server) handleWatchApiregistrationV1APIServiceListRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62371,7 +61123,7 @@ func (s *Server) handleWatchAppsV1ControllerRevisionListForAllNamespacesRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62382,12 +61134,8 @@ func (s *Server) handleWatchAppsV1ControllerRevisionListForAllNamespacesRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62594,7 +61342,7 @@ func (s *Server) handleWatchAppsV1DaemonSetListForAllNamespacesRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62605,12 +61353,8 @@ func (s *Server) handleWatchAppsV1DaemonSetListForAllNamespacesRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62817,7 +61561,7 @@ func (s *Server) handleWatchAppsV1DeploymentListForAllNamespacesRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62828,12 +61572,8 @@ func (s *Server) handleWatchAppsV1DeploymentListForAllNamespacesRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63040,7 +61780,7 @@ func (s *Server) handleWatchAppsV1NamespacedControllerRevisionRequest(args [2]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63051,12 +61791,8 @@ func (s *Server) handleWatchAppsV1NamespacedControllerRevisionRequest(args [2]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63271,7 +62007,7 @@ func (s *Server) handleWatchAppsV1NamespacedControllerRevisionListRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63282,12 +62018,8 @@ func (s *Server) handleWatchAppsV1NamespacedControllerRevisionListRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63498,7 +62230,7 @@ func (s *Server) handleWatchAppsV1NamespacedDaemonSetRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63509,12 +62241,8 @@ func (s *Server) handleWatchAppsV1NamespacedDaemonSetRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63729,7 +62457,7 @@ func (s *Server) handleWatchAppsV1NamespacedDaemonSetListRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63740,12 +62468,8 @@ func (s *Server) handleWatchAppsV1NamespacedDaemonSetListRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63956,7 +62680,7 @@ func (s *Server) handleWatchAppsV1NamespacedDeploymentRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63967,12 +62691,8 @@ func (s *Server) handleWatchAppsV1NamespacedDeploymentRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64187,7 +62907,7 @@ func (s *Server) handleWatchAppsV1NamespacedDeploymentListRequest(args [1]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64198,12 +62918,8 @@ func (s *Server) handleWatchAppsV1NamespacedDeploymentListRequest(args [1]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64414,7 +63130,7 @@ func (s *Server) handleWatchAppsV1NamespacedReplicaSetRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64425,12 +63141,8 @@ func (s *Server) handleWatchAppsV1NamespacedReplicaSetRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64645,7 +63357,7 @@ func (s *Server) handleWatchAppsV1NamespacedReplicaSetListRequest(args [1]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64656,12 +63368,8 @@ func (s *Server) handleWatchAppsV1NamespacedReplicaSetListRequest(args [1]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64872,7 +63580,7 @@ func (s *Server) handleWatchAppsV1NamespacedStatefulSetRequest(args [2]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64883,12 +63591,8 @@ func (s *Server) handleWatchAppsV1NamespacedStatefulSetRequest(args [2]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65103,7 +63807,7 @@ func (s *Server) handleWatchAppsV1NamespacedStatefulSetListRequest(args [1]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65114,12 +63818,8 @@ func (s *Server) handleWatchAppsV1NamespacedStatefulSetListRequest(args [1]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65330,7 +64030,7 @@ func (s *Server) handleWatchAppsV1ReplicaSetListForAllNamespacesRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65341,12 +64041,8 @@ func (s *Server) handleWatchAppsV1ReplicaSetListForAllNamespacesRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65553,7 +64249,7 @@ func (s *Server) handleWatchAppsV1StatefulSetListForAllNamespacesRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65564,12 +64260,8 @@ func (s *Server) handleWatchAppsV1StatefulSetListForAllNamespacesRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65776,7 +64468,7 @@ func (s *Server) handleWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamesp s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65787,12 +64479,8 @@ func (s *Server) handleWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamesp // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65999,7 +64687,7 @@ func (s *Server) handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66010,12 +64698,8 @@ func (s *Server) handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66230,7 +64914,7 @@ func (s *Server) handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerListRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66241,12 +64925,8 @@ func (s *Server) handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerListRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66457,7 +65137,7 @@ func (s *Server) handleWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllN s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66468,12 +65148,8 @@ func (s *Server) handleWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllN // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66680,7 +65356,7 @@ func (s *Server) handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerR s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66691,12 +65367,8 @@ func (s *Server) handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerR // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66911,7 +65583,7 @@ func (s *Server) handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerL s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66922,12 +65594,8 @@ func (s *Server) handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerL // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67138,7 +65806,7 @@ func (s *Server) handleWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllN s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67149,12 +65817,8 @@ func (s *Server) handleWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllN // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67361,7 +66025,7 @@ func (s *Server) handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerR s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67372,12 +66036,8 @@ func (s *Server) handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerR // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67592,7 +66252,7 @@ func (s *Server) handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerL s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67603,12 +66263,8 @@ func (s *Server) handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerL // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67819,7 +66475,7 @@ func (s *Server) handleWatchBatchV1CronJobListForAllNamespacesRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67830,12 +66486,8 @@ func (s *Server) handleWatchBatchV1CronJobListForAllNamespacesRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68042,7 +66694,7 @@ func (s *Server) handleWatchBatchV1JobListForAllNamespacesRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68053,12 +66705,8 @@ func (s *Server) handleWatchBatchV1JobListForAllNamespacesRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68265,7 +66913,7 @@ func (s *Server) handleWatchBatchV1NamespacedCronJobRequest(args [2]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68276,12 +66924,8 @@ func (s *Server) handleWatchBatchV1NamespacedCronJobRequest(args [2]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68496,7 +67140,7 @@ func (s *Server) handleWatchBatchV1NamespacedCronJobListRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68507,12 +67151,8 @@ func (s *Server) handleWatchBatchV1NamespacedCronJobListRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68723,7 +67363,7 @@ func (s *Server) handleWatchBatchV1NamespacedJobRequest(args [2]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68734,12 +67374,8 @@ func (s *Server) handleWatchBatchV1NamespacedJobRequest(args [2]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68954,7 +67590,7 @@ func (s *Server) handleWatchBatchV1NamespacedJobListRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68965,12 +67601,8 @@ func (s *Server) handleWatchBatchV1NamespacedJobListRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69181,7 +67813,7 @@ func (s *Server) handleWatchBatchV1beta1CronJobListForAllNamespacesRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69192,12 +67824,8 @@ func (s *Server) handleWatchBatchV1beta1CronJobListForAllNamespacesRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69404,7 +68032,7 @@ func (s *Server) handleWatchBatchV1beta1NamespacedCronJobRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69415,12 +68043,8 @@ func (s *Server) handleWatchBatchV1beta1NamespacedCronJobRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69635,7 +68259,7 @@ func (s *Server) handleWatchBatchV1beta1NamespacedCronJobListRequest(args [1]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69646,12 +68270,8 @@ func (s *Server) handleWatchBatchV1beta1NamespacedCronJobListRequest(args [1]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69863,7 +68483,7 @@ func (s *Server) handleWatchCertificatesV1CertificateSigningRequestRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69874,12 +68494,8 @@ func (s *Server) handleWatchCertificatesV1CertificateSigningRequestRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70090,7 +68706,7 @@ func (s *Server) handleWatchCertificatesV1CertificateSigningRequestListRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70101,12 +68717,8 @@ func (s *Server) handleWatchCertificatesV1CertificateSigningRequestListRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70313,7 +68925,7 @@ func (s *Server) handleWatchCoordinationV1LeaseListForAllNamespacesRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70324,12 +68936,8 @@ func (s *Server) handleWatchCoordinationV1LeaseListForAllNamespacesRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70536,7 +69144,7 @@ func (s *Server) handleWatchCoordinationV1NamespacedLeaseRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70547,12 +69155,8 @@ func (s *Server) handleWatchCoordinationV1NamespacedLeaseRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70767,7 +69371,7 @@ func (s *Server) handleWatchCoordinationV1NamespacedLeaseListRequest(args [1]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70778,12 +69382,8 @@ func (s *Server) handleWatchCoordinationV1NamespacedLeaseListRequest(args [1]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70994,7 +69594,7 @@ func (s *Server) handleWatchCoreV1ConfigMapListForAllNamespacesRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71005,12 +69605,8 @@ func (s *Server) handleWatchCoreV1ConfigMapListForAllNamespacesRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71217,7 +69813,7 @@ func (s *Server) handleWatchCoreV1EndpointsListForAllNamespacesRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71228,12 +69824,8 @@ func (s *Server) handleWatchCoreV1EndpointsListForAllNamespacesRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71440,7 +70032,7 @@ func (s *Server) handleWatchCoreV1EventListForAllNamespacesRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71451,12 +70043,8 @@ func (s *Server) handleWatchCoreV1EventListForAllNamespacesRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71663,7 +70251,7 @@ func (s *Server) handleWatchCoreV1LimitRangeListForAllNamespacesRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71674,12 +70262,8 @@ func (s *Server) handleWatchCoreV1LimitRangeListForAllNamespacesRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71886,7 +70470,7 @@ func (s *Server) handleWatchCoreV1NamespaceRequest(args [1]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71897,12 +70481,8 @@ func (s *Server) handleWatchCoreV1NamespaceRequest(args [1]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72113,7 +70693,7 @@ func (s *Server) handleWatchCoreV1NamespaceListRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72124,12 +70704,8 @@ func (s *Server) handleWatchCoreV1NamespaceListRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72336,7 +70912,7 @@ func (s *Server) handleWatchCoreV1NamespacedConfigMapRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72347,12 +70923,8 @@ func (s *Server) handleWatchCoreV1NamespacedConfigMapRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72567,7 +71139,7 @@ func (s *Server) handleWatchCoreV1NamespacedConfigMapListRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72578,12 +71150,8 @@ func (s *Server) handleWatchCoreV1NamespacedConfigMapListRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72794,7 +71362,7 @@ func (s *Server) handleWatchCoreV1NamespacedEndpointsRequest(args [2]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72805,12 +71373,8 @@ func (s *Server) handleWatchCoreV1NamespacedEndpointsRequest(args [2]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73025,7 +71589,7 @@ func (s *Server) handleWatchCoreV1NamespacedEndpointsListRequest(args [1]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73036,12 +71600,8 @@ func (s *Server) handleWatchCoreV1NamespacedEndpointsListRequest(args [1]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73252,7 +71812,7 @@ func (s *Server) handleWatchCoreV1NamespacedEventRequest(args [2]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73263,12 +71823,8 @@ func (s *Server) handleWatchCoreV1NamespacedEventRequest(args [2]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73483,7 +72039,7 @@ func (s *Server) handleWatchCoreV1NamespacedEventListRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73494,12 +72050,8 @@ func (s *Server) handleWatchCoreV1NamespacedEventListRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73710,7 +72262,7 @@ func (s *Server) handleWatchCoreV1NamespacedLimitRangeRequest(args [2]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73721,12 +72273,8 @@ func (s *Server) handleWatchCoreV1NamespacedLimitRangeRequest(args [2]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73941,7 +72489,7 @@ func (s *Server) handleWatchCoreV1NamespacedLimitRangeListRequest(args [1]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73952,12 +72500,8 @@ func (s *Server) handleWatchCoreV1NamespacedLimitRangeListRequest(args [1]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74168,7 +72712,7 @@ func (s *Server) handleWatchCoreV1NamespacedPersistentVolumeClaimRequest(args [2 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74179,12 +72723,8 @@ func (s *Server) handleWatchCoreV1NamespacedPersistentVolumeClaimRequest(args [2 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74399,7 +72939,7 @@ func (s *Server) handleWatchCoreV1NamespacedPersistentVolumeClaimListRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74410,12 +72950,8 @@ func (s *Server) handleWatchCoreV1NamespacedPersistentVolumeClaimListRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74626,7 +73162,7 @@ func (s *Server) handleWatchCoreV1NamespacedPodRequest(args [2]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74637,12 +73173,8 @@ func (s *Server) handleWatchCoreV1NamespacedPodRequest(args [2]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74857,7 +73389,7 @@ func (s *Server) handleWatchCoreV1NamespacedPodListRequest(args [1]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74868,12 +73400,8 @@ func (s *Server) handleWatchCoreV1NamespacedPodListRequest(args [1]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75084,7 +73612,7 @@ func (s *Server) handleWatchCoreV1NamespacedPodTemplateRequest(args [2]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75095,12 +73623,8 @@ func (s *Server) handleWatchCoreV1NamespacedPodTemplateRequest(args [2]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75315,7 +73839,7 @@ func (s *Server) handleWatchCoreV1NamespacedPodTemplateListRequest(args [1]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75326,12 +73850,8 @@ func (s *Server) handleWatchCoreV1NamespacedPodTemplateListRequest(args [1]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75542,7 +74062,7 @@ func (s *Server) handleWatchCoreV1NamespacedReplicationControllerRequest(args [2 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75553,12 +74073,8 @@ func (s *Server) handleWatchCoreV1NamespacedReplicationControllerRequest(args [2 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75773,7 +74289,7 @@ func (s *Server) handleWatchCoreV1NamespacedReplicationControllerListRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75784,12 +74300,8 @@ func (s *Server) handleWatchCoreV1NamespacedReplicationControllerListRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76000,7 +74512,7 @@ func (s *Server) handleWatchCoreV1NamespacedResourceQuotaRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76011,12 +74523,8 @@ func (s *Server) handleWatchCoreV1NamespacedResourceQuotaRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76231,7 +74739,7 @@ func (s *Server) handleWatchCoreV1NamespacedResourceQuotaListRequest(args [1]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76242,12 +74750,8 @@ func (s *Server) handleWatchCoreV1NamespacedResourceQuotaListRequest(args [1]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76458,7 +74962,7 @@ func (s *Server) handleWatchCoreV1NamespacedSecretRequest(args [2]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76469,12 +74973,8 @@ func (s *Server) handleWatchCoreV1NamespacedSecretRequest(args [2]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76689,7 +75189,7 @@ func (s *Server) handleWatchCoreV1NamespacedSecretListRequest(args [1]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76700,12 +75200,8 @@ func (s *Server) handleWatchCoreV1NamespacedSecretListRequest(args [1]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76916,7 +75412,7 @@ func (s *Server) handleWatchCoreV1NamespacedServiceRequest(args [2]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76927,12 +75423,8 @@ func (s *Server) handleWatchCoreV1NamespacedServiceRequest(args [2]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77147,7 +75639,7 @@ func (s *Server) handleWatchCoreV1NamespacedServiceAccountRequest(args [2]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77158,12 +75650,8 @@ func (s *Server) handleWatchCoreV1NamespacedServiceAccountRequest(args [2]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77378,7 +75866,7 @@ func (s *Server) handleWatchCoreV1NamespacedServiceAccountListRequest(args [1]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77389,12 +75877,8 @@ func (s *Server) handleWatchCoreV1NamespacedServiceAccountListRequest(args [1]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77605,7 +76089,7 @@ func (s *Server) handleWatchCoreV1NamespacedServiceListRequest(args [1]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77616,12 +76100,8 @@ func (s *Server) handleWatchCoreV1NamespacedServiceListRequest(args [1]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77832,7 +76312,7 @@ func (s *Server) handleWatchCoreV1NodeRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77843,12 +76323,8 @@ func (s *Server) handleWatchCoreV1NodeRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78059,7 +76535,7 @@ func (s *Server) handleWatchCoreV1NodeListRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78070,12 +76546,8 @@ func (s *Server) handleWatchCoreV1NodeListRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78282,7 +76754,7 @@ func (s *Server) handleWatchCoreV1PersistentVolumeRequest(args [1]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78293,12 +76765,8 @@ func (s *Server) handleWatchCoreV1PersistentVolumeRequest(args [1]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78509,7 +76977,7 @@ func (s *Server) handleWatchCoreV1PersistentVolumeClaimListForAllNamespacesReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78520,12 +76988,8 @@ func (s *Server) handleWatchCoreV1PersistentVolumeClaimListForAllNamespacesReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78732,7 +77196,7 @@ func (s *Server) handleWatchCoreV1PersistentVolumeListRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78743,12 +77207,8 @@ func (s *Server) handleWatchCoreV1PersistentVolumeListRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78955,7 +77415,7 @@ func (s *Server) handleWatchCoreV1PodListForAllNamespacesRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78966,12 +77426,8 @@ func (s *Server) handleWatchCoreV1PodListForAllNamespacesRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79178,7 +77634,7 @@ func (s *Server) handleWatchCoreV1PodTemplateListForAllNamespacesRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79189,12 +77645,8 @@ func (s *Server) handleWatchCoreV1PodTemplateListForAllNamespacesRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79401,7 +77853,7 @@ func (s *Server) handleWatchCoreV1ReplicationControllerListForAllNamespacesReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79412,12 +77864,8 @@ func (s *Server) handleWatchCoreV1ReplicationControllerListForAllNamespacesReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79624,7 +78072,7 @@ func (s *Server) handleWatchCoreV1ResourceQuotaListForAllNamespacesRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79635,12 +78083,8 @@ func (s *Server) handleWatchCoreV1ResourceQuotaListForAllNamespacesRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79847,7 +78291,7 @@ func (s *Server) handleWatchCoreV1SecretListForAllNamespacesRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79858,12 +78302,8 @@ func (s *Server) handleWatchCoreV1SecretListForAllNamespacesRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80070,7 +78510,7 @@ func (s *Server) handleWatchCoreV1ServiceAccountListForAllNamespacesRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80081,12 +78521,8 @@ func (s *Server) handleWatchCoreV1ServiceAccountListForAllNamespacesRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80293,7 +78729,7 @@ func (s *Server) handleWatchCoreV1ServiceListForAllNamespacesRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80304,12 +78740,8 @@ func (s *Server) handleWatchCoreV1ServiceListForAllNamespacesRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80516,7 +78948,7 @@ func (s *Server) handleWatchDiscoveryV1EndpointSliceListForAllNamespacesRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80527,12 +78959,8 @@ func (s *Server) handleWatchDiscoveryV1EndpointSliceListForAllNamespacesRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80739,7 +79167,7 @@ func (s *Server) handleWatchDiscoveryV1NamespacedEndpointSliceRequest(args [2]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80750,12 +79178,8 @@ func (s *Server) handleWatchDiscoveryV1NamespacedEndpointSliceRequest(args [2]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80970,7 +79394,7 @@ func (s *Server) handleWatchDiscoveryV1NamespacedEndpointSliceListRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80981,12 +79405,8 @@ func (s *Server) handleWatchDiscoveryV1NamespacedEndpointSliceListRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81197,7 +79617,7 @@ func (s *Server) handleWatchDiscoveryV1beta1EndpointSliceListForAllNamespacesReq s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81208,12 +79628,8 @@ func (s *Server) handleWatchDiscoveryV1beta1EndpointSliceListForAllNamespacesReq // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81420,7 +79836,7 @@ func (s *Server) handleWatchDiscoveryV1beta1NamespacedEndpointSliceRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81431,12 +79847,8 @@ func (s *Server) handleWatchDiscoveryV1beta1NamespacedEndpointSliceRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81651,7 +80063,7 @@ func (s *Server) handleWatchDiscoveryV1beta1NamespacedEndpointSliceListRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81662,12 +80074,8 @@ func (s *Server) handleWatchDiscoveryV1beta1NamespacedEndpointSliceListRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81878,7 +80286,7 @@ func (s *Server) handleWatchEventsV1EventListForAllNamespacesRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81889,12 +80297,8 @@ func (s *Server) handleWatchEventsV1EventListForAllNamespacesRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82101,7 +80505,7 @@ func (s *Server) handleWatchEventsV1NamespacedEventRequest(args [2]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82112,12 +80516,8 @@ func (s *Server) handleWatchEventsV1NamespacedEventRequest(args [2]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82332,7 +80732,7 @@ func (s *Server) handleWatchEventsV1NamespacedEventListRequest(args [1]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82343,12 +80743,8 @@ func (s *Server) handleWatchEventsV1NamespacedEventListRequest(args [1]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82559,7 +80955,7 @@ func (s *Server) handleWatchEventsV1beta1EventListForAllNamespacesRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82570,12 +80966,8 @@ func (s *Server) handleWatchEventsV1beta1EventListForAllNamespacesRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82782,7 +81174,7 @@ func (s *Server) handleWatchEventsV1beta1NamespacedEventRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82793,12 +81185,8 @@ func (s *Server) handleWatchEventsV1beta1NamespacedEventRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83013,7 +81401,7 @@ func (s *Server) handleWatchEventsV1beta1NamespacedEventListRequest(args [1]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83024,12 +81412,8 @@ func (s *Server) handleWatchEventsV1beta1NamespacedEventListRequest(args [1]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83240,7 +81624,7 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1FlowSchemaRequest(args [1 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83251,12 +81635,8 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1FlowSchemaRequest(args [1 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83467,7 +81847,7 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1FlowSchemaListRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83478,12 +81858,8 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1FlowSchemaListRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83691,7 +82067,7 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguratio s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83702,12 +82078,8 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguratio // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83918,7 +82290,7 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguratio s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83929,12 +82301,8 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguratio // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84141,7 +82509,7 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2FlowSchemaRequest(args [1 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84152,12 +82520,8 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2FlowSchemaRequest(args [1 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84368,7 +82732,7 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2FlowSchemaListRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84379,12 +82743,8 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2FlowSchemaListRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84592,7 +82952,7 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguratio s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84603,12 +82963,8 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguratio // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84819,7 +83175,7 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguratio s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84830,12 +83186,8 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguratio // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85042,7 +83394,7 @@ func (s *Server) handleWatchInternalApiserverV1alpha1StorageVersionRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85053,12 +83405,8 @@ func (s *Server) handleWatchInternalApiserverV1alpha1StorageVersionRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85269,7 +83617,7 @@ func (s *Server) handleWatchInternalApiserverV1alpha1StorageVersionListRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85280,12 +83628,8 @@ func (s *Server) handleWatchInternalApiserverV1alpha1StorageVersionListRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85492,7 +83836,7 @@ func (s *Server) handleWatchNetworkingV1IngressClassRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85503,12 +83847,8 @@ func (s *Server) handleWatchNetworkingV1IngressClassRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85719,7 +84059,7 @@ func (s *Server) handleWatchNetworkingV1IngressClassListRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85730,12 +84070,8 @@ func (s *Server) handleWatchNetworkingV1IngressClassListRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85942,7 +84278,7 @@ func (s *Server) handleWatchNetworkingV1IngressListForAllNamespacesRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85953,12 +84289,8 @@ func (s *Server) handleWatchNetworkingV1IngressListForAllNamespacesRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86165,7 +84497,7 @@ func (s *Server) handleWatchNetworkingV1NamespacedIngressRequest(args [2]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86176,12 +84508,8 @@ func (s *Server) handleWatchNetworkingV1NamespacedIngressRequest(args [2]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86396,7 +84724,7 @@ func (s *Server) handleWatchNetworkingV1NamespacedIngressListRequest(args [1]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86407,12 +84735,8 @@ func (s *Server) handleWatchNetworkingV1NamespacedIngressListRequest(args [1]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86623,7 +84947,7 @@ func (s *Server) handleWatchNetworkingV1NamespacedNetworkPolicyRequest(args [2]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86634,12 +84958,8 @@ func (s *Server) handleWatchNetworkingV1NamespacedNetworkPolicyRequest(args [2]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86854,7 +85174,7 @@ func (s *Server) handleWatchNetworkingV1NamespacedNetworkPolicyListRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86865,12 +85185,8 @@ func (s *Server) handleWatchNetworkingV1NamespacedNetworkPolicyListRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87081,7 +85397,7 @@ func (s *Server) handleWatchNetworkingV1NetworkPolicyListForAllNamespacesRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87092,12 +85408,8 @@ func (s *Server) handleWatchNetworkingV1NetworkPolicyListForAllNamespacesRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87304,7 +85616,7 @@ func (s *Server) handleWatchNodeV1RuntimeClassRequest(args [1]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87315,12 +85627,8 @@ func (s *Server) handleWatchNodeV1RuntimeClassRequest(args [1]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87531,7 +85839,7 @@ func (s *Server) handleWatchNodeV1RuntimeClassListRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87542,12 +85850,8 @@ func (s *Server) handleWatchNodeV1RuntimeClassListRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87754,7 +86058,7 @@ func (s *Server) handleWatchNodeV1alpha1RuntimeClassRequest(args [1]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87765,12 +86069,8 @@ func (s *Server) handleWatchNodeV1alpha1RuntimeClassRequest(args [1]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87981,7 +86281,7 @@ func (s *Server) handleWatchNodeV1alpha1RuntimeClassListRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87992,12 +86292,8 @@ func (s *Server) handleWatchNodeV1alpha1RuntimeClassListRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88204,7 +86500,7 @@ func (s *Server) handleWatchNodeV1beta1RuntimeClassRequest(args [1]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88215,12 +86511,8 @@ func (s *Server) handleWatchNodeV1beta1RuntimeClassRequest(args [1]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88431,7 +86723,7 @@ func (s *Server) handleWatchNodeV1beta1RuntimeClassListRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88442,12 +86734,8 @@ func (s *Server) handleWatchNodeV1beta1RuntimeClassListRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88654,7 +86942,7 @@ func (s *Server) handleWatchPolicyV1NamespacedPodDisruptionBudgetRequest(args [2 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88665,12 +86953,8 @@ func (s *Server) handleWatchPolicyV1NamespacedPodDisruptionBudgetRequest(args [2 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88885,7 +87169,7 @@ func (s *Server) handleWatchPolicyV1NamespacedPodDisruptionBudgetListRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88896,12 +87180,8 @@ func (s *Server) handleWatchPolicyV1NamespacedPodDisruptionBudgetListRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89112,7 +87392,7 @@ func (s *Server) handleWatchPolicyV1PodDisruptionBudgetListForAllNamespacesReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89123,12 +87403,8 @@ func (s *Server) handleWatchPolicyV1PodDisruptionBudgetListForAllNamespacesReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89335,7 +87611,7 @@ func (s *Server) handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89346,12 +87622,8 @@ func (s *Server) handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89566,7 +87838,7 @@ func (s *Server) handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetListReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89577,12 +87849,8 @@ func (s *Server) handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetListReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89793,7 +88061,7 @@ func (s *Server) handleWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89804,12 +88072,8 @@ func (s *Server) handleWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90016,7 +88280,7 @@ func (s *Server) handleWatchPolicyV1beta1PodSecurityPolicyRequest(args [1]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90027,12 +88291,8 @@ func (s *Server) handleWatchPolicyV1beta1PodSecurityPolicyRequest(args [1]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90243,7 +88503,7 @@ func (s *Server) handleWatchPolicyV1beta1PodSecurityPolicyListRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90254,12 +88514,8 @@ func (s *Server) handleWatchPolicyV1beta1PodSecurityPolicyListRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90466,7 +88722,7 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleRequest(args [1]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90477,12 +88733,8 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleRequest(args [1]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90693,7 +88945,7 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleBindingRequest(args [1 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90704,12 +88956,8 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleBindingRequest(args [1 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90920,7 +89168,7 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleBindingListRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90931,12 +89179,8 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleBindingListRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91143,7 +89387,7 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleListRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91154,12 +89398,8 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleListRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91366,7 +89606,7 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleRequest(args [2]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91377,12 +89617,8 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleRequest(args [2]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91597,7 +89833,7 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleBindingRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91608,12 +89844,8 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleBindingRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91828,7 +90060,7 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleBindingListRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91839,12 +90071,8 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleBindingListRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92055,7 +90283,7 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleListRequest(args [1 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92066,12 +90294,8 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleListRequest(args [1 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92282,7 +90506,7 @@ func (s *Server) handleWatchRbacAuthorizationV1RoleBindingListForAllNamespacesRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92293,12 +90517,8 @@ func (s *Server) handleWatchRbacAuthorizationV1RoleBindingListForAllNamespacesRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92505,7 +90725,7 @@ func (s *Server) handleWatchRbacAuthorizationV1RoleListForAllNamespacesRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92516,12 +90736,8 @@ func (s *Server) handleWatchRbacAuthorizationV1RoleListForAllNamespacesRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92728,7 +90944,7 @@ func (s *Server) handleWatchSchedulingV1PriorityClassRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92739,12 +90955,8 @@ func (s *Server) handleWatchSchedulingV1PriorityClassRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92955,7 +91167,7 @@ func (s *Server) handleWatchSchedulingV1PriorityClassListRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92966,12 +91178,8 @@ func (s *Server) handleWatchSchedulingV1PriorityClassListRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93178,7 +91386,7 @@ func (s *Server) handleWatchStorageV1CSIDriverRequest(args [1]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93189,12 +91397,8 @@ func (s *Server) handleWatchStorageV1CSIDriverRequest(args [1]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93405,7 +91609,7 @@ func (s *Server) handleWatchStorageV1CSIDriverListRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93416,12 +91620,8 @@ func (s *Server) handleWatchStorageV1CSIDriverListRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93628,7 +91828,7 @@ func (s *Server) handleWatchStorageV1CSINodeRequest(args [1]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93639,12 +91839,8 @@ func (s *Server) handleWatchStorageV1CSINodeRequest(args [1]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93855,7 +92051,7 @@ func (s *Server) handleWatchStorageV1CSINodeListRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93866,12 +92062,8 @@ func (s *Server) handleWatchStorageV1CSINodeListRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94078,7 +92270,7 @@ func (s *Server) handleWatchStorageV1StorageClassRequest(args [1]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94089,12 +92281,8 @@ func (s *Server) handleWatchStorageV1StorageClassRequest(args [1]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94305,7 +92493,7 @@ func (s *Server) handleWatchStorageV1StorageClassListRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94316,12 +92504,8 @@ func (s *Server) handleWatchStorageV1StorageClassListRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94528,7 +92712,7 @@ func (s *Server) handleWatchStorageV1VolumeAttachmentRequest(args [1]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94539,12 +92723,8 @@ func (s *Server) handleWatchStorageV1VolumeAttachmentRequest(args [1]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94755,7 +92935,7 @@ func (s *Server) handleWatchStorageV1VolumeAttachmentListRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94766,12 +92946,8 @@ func (s *Server) handleWatchStorageV1VolumeAttachmentListRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94978,7 +93154,7 @@ func (s *Server) handleWatchStorageV1alpha1CSIStorageCapacityListForAllNamespace s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94989,12 +93165,8 @@ func (s *Server) handleWatchStorageV1alpha1CSIStorageCapacityListForAllNamespace // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95201,7 +93373,7 @@ func (s *Server) handleWatchStorageV1alpha1NamespacedCSIStorageCapacityRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95212,12 +93384,8 @@ func (s *Server) handleWatchStorageV1alpha1NamespacedCSIStorageCapacityRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95432,7 +93600,7 @@ func (s *Server) handleWatchStorageV1alpha1NamespacedCSIStorageCapacityListReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95443,12 +93611,8 @@ func (s *Server) handleWatchStorageV1alpha1NamespacedCSIStorageCapacityListReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95659,7 +93823,7 @@ func (s *Server) handleWatchStorageV1beta1CSIStorageCapacityListForAllNamespaces s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95670,12 +93834,8 @@ func (s *Server) handleWatchStorageV1beta1CSIStorageCapacityListForAllNamespaces // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95882,7 +94042,7 @@ func (s *Server) handleWatchStorageV1beta1NamespacedCSIStorageCapacityRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95893,12 +94053,8 @@ func (s *Server) handleWatchStorageV1beta1NamespacedCSIStorageCapacityRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96113,7 +94269,7 @@ func (s *Server) handleWatchStorageV1beta1NamespacedCSIStorageCapacityListReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96124,12 +94280,8 @@ func (s *Server) handleWatchStorageV1beta1NamespacedCSIStorageCapacityListReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_manga/oas_client_gen.go b/examples/ex_manga/oas_client_gen.go index 249111cd8..d7b045d06 100644 --- a/examples/ex_manga/oas_client_gen.go +++ b/examples/ex_manga/oas_client_gen.go @@ -131,7 +131,7 @@ func (c *Client) sendGetBook(ctx context.Context, params GetBookParams) (res Get defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -221,7 +221,7 @@ func (c *Client) sendGetPageCoverImage(ctx context.Context, params GetPageCoverI defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -330,7 +330,7 @@ func (c *Client) sendGetPageImage(ctx context.Context, params GetPageImageParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -458,7 +458,7 @@ func (c *Client) sendGetPageThumbnailImage(ctx context.Context, params GetPageTh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -586,7 +586,7 @@ func (c *Client) sendSearch(ctx context.Context, params SearchParams) (res Searc defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -693,7 +693,7 @@ func (c *Client) sendSearchByTagID(ctx context.Context, params SearchByTagIDPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_manga/oas_handlers_gen.go b/examples/ex_manga/oas_handlers_gen.go index cd488b567..0850a05bf 100644 --- a/examples/ex_manga/oas_handlers_gen.go +++ b/examples/ex_manga/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleGetBookRequest(args [1]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleGetBookRequest(args [1]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -216,7 +212,7 @@ func (s *Server) handleGetPageCoverImageRequest(args [2]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -227,12 +223,8 @@ func (s *Server) handleGetPageCoverImageRequest(args [2]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -362,7 +354,7 @@ func (s *Server) handleGetPageImageRequest(args [3]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -373,12 +365,8 @@ func (s *Server) handleGetPageImageRequest(args [3]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -512,7 +500,7 @@ func (s *Server) handleGetPageThumbnailImageRequest(args [3]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -523,12 +511,8 @@ func (s *Server) handleGetPageThumbnailImageRequest(args [3]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -662,7 +646,7 @@ func (s *Server) handleSearchRequest(args [0]string, argsEscaped bool, w http.Re s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -673,12 +657,8 @@ func (s *Server) handleSearchRequest(args [0]string, argsEscaped bool, w http.Re // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -808,7 +788,7 @@ func (s *Server) handleSearchByTagIDRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -819,12 +799,8 @@ func (s *Server) handleSearchByTagIDRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_oauth2/oas_client_gen.go b/examples/ex_oauth2/oas_client_gen.go index 291490a5d..c440a357e 100644 --- a/examples/ex_oauth2/oas_client_gen.go +++ b/examples/ex_oauth2/oas_client_gen.go @@ -142,7 +142,7 @@ func (c *Client) sendAddPet(ctx context.Context, request *NewPet) (res *Pet, err defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -250,7 +250,7 @@ func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -373,7 +373,7 @@ func (c *Client) sendFindPetByID(ctx context.Context, params FindPetByIDParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -514,7 +514,7 @@ func (c *Client) sendFindPets(ctx context.Context, params FindPetsParams) (res [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_oauth2/oas_handlers_gen.go b/examples/ex_oauth2/oas_handlers_gen.go index bad95fb04..38431f72d 100644 --- a/examples/ex_oauth2/oas_handlers_gen.go +++ b/examples/ex_oauth2/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleAddPetRequest(args [0]string, argsEscaped bool, w http.Re s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleAddPetRequest(args [0]string, argsEscaped bool, w http.Re // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -273,7 +269,7 @@ func (s *Server) handleDeletePetRequest(args [1]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -284,12 +280,8 @@ func (s *Server) handleDeletePetRequest(args [1]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -472,7 +464,7 @@ func (s *Server) handleFindPetByIDRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -483,12 +475,8 @@ func (s *Server) handleFindPetByIDRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -689,7 +677,7 @@ func (s *Server) handleFindPetsRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -700,12 +688,8 @@ func (s *Server) handleFindPetsRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_openai/oas_client_gen.go b/examples/ex_openai/oas_client_gen.go index 51c96d2fa..d66d79f44 100644 --- a/examples/ex_openai/oas_client_gen.go +++ b/examples/ex_openai/oas_client_gen.go @@ -299,7 +299,7 @@ func (c *Client) sendCancelFineTune(ctx context.Context, params CancelFineTunePa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -395,7 +395,7 @@ func (c *Client) sendCreateAnswer(ctx context.Context, request *CreateAnswerRequ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -470,7 +470,7 @@ func (c *Client) sendCreateChatCompletion(ctx context.Context, request *CreateCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -553,7 +553,7 @@ func (c *Client) sendCreateClassification(ctx context.Context, request *CreateCl defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -628,7 +628,7 @@ func (c *Client) sendCreateCompletion(ctx context.Context, request *CreateComple defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -703,7 +703,7 @@ func (c *Client) sendCreateEdit(ctx context.Context, request *CreateEditRequest) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -778,7 +778,7 @@ func (c *Client) sendCreateEmbedding(ctx context.Context, request *CreateEmbeddi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -855,7 +855,7 @@ func (c *Client) sendCreateFile(ctx context.Context, request *CreateFileRequestM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -933,7 +933,7 @@ func (c *Client) sendCreateFineTune(ctx context.Context, request *CreateFineTune defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1008,7 +1008,7 @@ func (c *Client) sendCreateImage(ctx context.Context, request *CreateImageReques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1083,7 +1083,7 @@ func (c *Client) sendCreateImageEdit(ctx context.Context, request *CreateImageEd defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1158,7 +1158,7 @@ func (c *Client) sendCreateImageVariation(ctx context.Context, request *CreateIm defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1233,7 +1233,7 @@ func (c *Client) sendCreateModeration(ctx context.Context, request *CreateModera defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1317,7 +1317,7 @@ func (c *Client) sendCreateSearch(ctx context.Context, request *CreateSearchRequ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1411,7 +1411,7 @@ func (c *Client) sendCreateTranscription(ctx context.Context, request *CreateTra defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1486,7 +1486,7 @@ func (c *Client) sendCreateTranslation(ctx context.Context, request *CreateTrans defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1561,7 +1561,7 @@ func (c *Client) sendDeleteFile(ctx context.Context, params DeleteFileParams) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1651,7 +1651,7 @@ func (c *Client) sendDeleteModel(ctx context.Context, params DeleteModelParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1741,7 +1741,7 @@ func (c *Client) sendDownloadFile(ctx context.Context, params DownloadFileParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1835,7 +1835,7 @@ func (c *Client) sendListEngines(ctx context.Context) (res *ListEnginesResponse, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1907,7 +1907,7 @@ func (c *Client) sendListFiles(ctx context.Context) (res *ListFilesResponse, err defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1979,7 +1979,7 @@ func (c *Client) sendListFineTuneEvents(ctx context.Context, params ListFineTune defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2091,7 +2091,7 @@ func (c *Client) sendListFineTunes(ctx context.Context) (res *ListFineTunesRespo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2164,7 +2164,7 @@ func (c *Client) sendListModels(ctx context.Context) (res *ListModelsResponse, e defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2239,7 +2239,7 @@ func (c *Client) sendRetrieveEngine(ctx context.Context, params RetrieveEnginePa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2329,7 +2329,7 @@ func (c *Client) sendRetrieveFile(ctx context.Context, params RetrieveFileParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2420,7 +2420,7 @@ func (c *Client) sendRetrieveFineTune(ctx context.Context, params RetrieveFineTu defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2511,7 +2511,7 @@ func (c *Client) sendRetrieveModel(ctx context.Context, params RetrieveModelPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_openai/oas_handlers_gen.go b/examples/ex_openai/oas_handlers_gen.go index 203b5bb6d..e7df420b5 100644 --- a/examples/ex_openai/oas_handlers_gen.go +++ b/examples/ex_openai/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleCancelFineTuneRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleCancelFineTuneRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -221,7 +217,7 @@ func (s *Server) handleCreateAnswerRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -232,12 +228,8 @@ func (s *Server) handleCreateAnswerRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -363,7 +355,7 @@ func (s *Server) handleCreateChatCompletionRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -374,12 +366,8 @@ func (s *Server) handleCreateChatCompletionRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -513,7 +501,7 @@ func (s *Server) handleCreateClassificationRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -524,12 +512,8 @@ func (s *Server) handleCreateClassificationRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -655,7 +639,7 @@ func (s *Server) handleCreateCompletionRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -666,12 +650,8 @@ func (s *Server) handleCreateCompletionRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -797,7 +777,7 @@ func (s *Server) handleCreateEditRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -808,12 +788,8 @@ func (s *Server) handleCreateEditRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -939,7 +915,7 @@ func (s *Server) handleCreateEmbeddingRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -950,12 +926,8 @@ func (s *Server) handleCreateEmbeddingRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1083,7 +1055,7 @@ func (s *Server) handleCreateFileRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1094,12 +1066,8 @@ func (s *Server) handleCreateFileRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1228,7 +1196,7 @@ func (s *Server) handleCreateFineTuneRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1239,12 +1207,8 @@ func (s *Server) handleCreateFineTuneRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1370,7 +1334,7 @@ func (s *Server) handleCreateImageRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1381,12 +1345,8 @@ func (s *Server) handleCreateImageRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1512,7 +1472,7 @@ func (s *Server) handleCreateImageEditRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1523,12 +1483,8 @@ func (s *Server) handleCreateImageEditRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1654,7 +1610,7 @@ func (s *Server) handleCreateImageVariationRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1665,12 +1621,8 @@ func (s *Server) handleCreateImageVariationRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1796,7 +1748,7 @@ func (s *Server) handleCreateModerationRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1807,12 +1759,8 @@ func (s *Server) handleCreateModerationRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1947,7 +1895,7 @@ func (s *Server) handleCreateSearchRequest(args [1]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1958,12 +1906,8 @@ func (s *Server) handleCreateSearchRequest(args [1]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2104,7 +2048,7 @@ func (s *Server) handleCreateTranscriptionRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2115,12 +2059,8 @@ func (s *Server) handleCreateTranscriptionRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2246,7 +2186,7 @@ func (s *Server) handleCreateTranslationRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2257,12 +2197,8 @@ func (s *Server) handleCreateTranslationRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2388,7 +2324,7 @@ func (s *Server) handleDeleteFileRequest(args [1]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2399,12 +2335,8 @@ func (s *Server) handleDeleteFileRequest(args [1]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2530,7 +2462,7 @@ func (s *Server) handleDeleteModelRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2541,12 +2473,8 @@ func (s *Server) handleDeleteModelRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2672,7 +2600,7 @@ func (s *Server) handleDownloadFileRequest(args [1]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2683,12 +2611,8 @@ func (s *Server) handleDownloadFileRequest(args [1]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2817,7 +2741,7 @@ func (s *Server) handleListEnginesRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2828,12 +2752,8 @@ func (s *Server) handleListEnginesRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2940,7 +2860,7 @@ func (s *Server) handleListFilesRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2951,12 +2871,8 @@ func (s *Server) handleListFilesRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3063,7 +2979,7 @@ func (s *Server) handleListFineTuneEventsRequest(args [1]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3074,12 +2990,8 @@ func (s *Server) handleListFineTuneEventsRequest(args [1]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3209,7 +3121,7 @@ func (s *Server) handleListFineTunesRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3220,12 +3132,8 @@ func (s *Server) handleListFineTunesRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3333,7 +3241,7 @@ func (s *Server) handleListModelsRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3344,12 +3252,8 @@ func (s *Server) handleListModelsRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3459,7 +3363,7 @@ func (s *Server) handleRetrieveEngineRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3470,12 +3374,8 @@ func (s *Server) handleRetrieveEngineRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3601,7 +3501,7 @@ func (s *Server) handleRetrieveFileRequest(args [1]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3612,12 +3512,8 @@ func (s *Server) handleRetrieveFileRequest(args [1]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3744,7 +3640,7 @@ func (s *Server) handleRetrieveFineTuneRequest(args [1]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3755,12 +3651,8 @@ func (s *Server) handleRetrieveFineTuneRequest(args [1]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3887,7 +3779,7 @@ func (s *Server) handleRetrieveModelRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3898,12 +3790,8 @@ func (s *Server) handleRetrieveModelRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_petstore/oas_client_gen.go b/examples/ex_petstore/oas_client_gen.go index fa086151c..084754060 100644 --- a/examples/ex_petstore/oas_client_gen.go +++ b/examples/ex_petstore/oas_client_gen.go @@ -117,7 +117,7 @@ func (c *Client) sendCreatePets(ctx context.Context) (res *CreatePetsCreated, er defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -189,7 +189,7 @@ func (c *Client) sendListPets(ctx context.Context, params ListPetsParams) (res * defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -282,7 +282,7 @@ func (c *Client) sendShowPetById(ctx context.Context, params ShowPetByIdParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_petstore/oas_handlers_gen.go b/examples/ex_petstore/oas_handlers_gen.go index 8c818a844..e4b73d5f3 100644 --- a/examples/ex_petstore/oas_handlers_gen.go +++ b/examples/ex_petstore/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleCreatePetsRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleCreatePetsRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -208,7 +204,7 @@ func (s *Server) handleListPetsRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -219,12 +215,8 @@ func (s *Server) handleListPetsRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -361,7 +353,7 @@ func (s *Server) handleShowPetByIdRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -372,12 +364,8 @@ func (s *Server) handleShowPetByIdRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_petstore_expanded/oas_client_gen.go b/examples/ex_petstore_expanded/oas_client_gen.go index 8a7e60944..2c02b69f2 100644 --- a/examples/ex_petstore_expanded/oas_client_gen.go +++ b/examples/ex_petstore_expanded/oas_client_gen.go @@ -139,7 +139,7 @@ func (c *Client) sendAddPet(ctx context.Context, request *NewPet) (res *Pet, err defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -214,7 +214,7 @@ func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -304,7 +304,7 @@ func (c *Client) sendFindPetByID(ctx context.Context, params FindPetByIDParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -412,7 +412,7 @@ func (c *Client) sendFindPets(ctx context.Context, params FindPetsParams) (res [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_petstore_expanded/oas_handlers_gen.go b/examples/ex_petstore_expanded/oas_handlers_gen.go index 04bcb5ade..4cad3944a 100644 --- a/examples/ex_petstore_expanded/oas_handlers_gen.go +++ b/examples/ex_petstore_expanded/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleAddPetRequest(args [0]string, argsEscaped bool, w http.Re s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleAddPetRequest(args [0]string, argsEscaped bool, w http.Re // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -227,7 +223,7 @@ func (s *Server) handleDeletePetRequest(args [1]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -238,12 +234,8 @@ func (s *Server) handleDeletePetRequest(args [1]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -380,7 +372,7 @@ func (s *Server) handleFindPetByIDRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -391,12 +383,8 @@ func (s *Server) handleFindPetByIDRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -551,7 +539,7 @@ func (s *Server) handleFindPetsRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -562,12 +550,8 @@ func (s *Server) handleFindPetsRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_route_params/oas_client_gen.go b/examples/ex_route_params/oas_client_gen.go index b32c80c13..78b9d0356 100644 --- a/examples/ex_route_params/oas_client_gen.go +++ b/examples/ex_route_params/oas_client_gen.go @@ -113,7 +113,7 @@ func (c *Client) sendDataGet(ctx context.Context, params DataGetParams) (res str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -222,7 +222,7 @@ func (c *Client) sendDataGetAny(ctx context.Context) (res string, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -294,7 +294,7 @@ func (c *Client) sendDataGetID(ctx context.Context, params DataGetIDParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_route_params/oas_handlers_gen.go b/examples/ex_route_params/oas_handlers_gen.go index ed7f7223b..475d41cdd 100644 --- a/examples/ex_route_params/oas_handlers_gen.go +++ b/examples/ex_route_params/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleDataGetRequest(args [2]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleDataGetRequest(args [2]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -220,7 +216,7 @@ func (s *Server) handleDataGetAnyRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -231,12 +227,8 @@ func (s *Server) handleDataGetAnyRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -343,7 +335,7 @@ func (s *Server) handleDataGetIDRequest(args [1]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -354,12 +346,8 @@ func (s *Server) handleDataGetIDRequest(args [1]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_telegram/oas_client_gen.go b/examples/ex_telegram/oas_client_gen.go index a0e4c1f2f..ff9ccb147 100644 --- a/examples/ex_telegram/oas_client_gen.go +++ b/examples/ex_telegram/oas_client_gen.go @@ -424,7 +424,7 @@ func (c *Client) sendAddStickerToSet(ctx context.Context, request *AddStickerToS defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -497,7 +497,7 @@ func (c *Client) sendAnswerCallbackQuery(ctx context.Context, request *AnswerCal defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -570,7 +570,7 @@ func (c *Client) sendAnswerInlineQuery(ctx context.Context, request *AnswerInlin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -643,7 +643,7 @@ func (c *Client) sendAnswerPreCheckoutQuery(ctx context.Context, request *Answer defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -716,7 +716,7 @@ func (c *Client) sendAnswerShippingQuery(ctx context.Context, request *AnswerShi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -789,7 +789,7 @@ func (c *Client) sendApproveChatJoinRequest(ctx context.Context, request *Approv defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -862,7 +862,7 @@ func (c *Client) sendBanChatMember(ctx context.Context, request *BanChatMember) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -935,7 +935,7 @@ func (c *Client) sendBanChatSenderChat(ctx context.Context, request *BanChatSend defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1008,7 +1008,7 @@ func (c *Client) sendClose(ctx context.Context) (res *Result, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1078,7 +1078,7 @@ func (c *Client) sendCopyMessage(ctx context.Context, request *CopyMessage) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1151,7 +1151,7 @@ func (c *Client) sendCreateChatInviteLink(ctx context.Context, request *CreateCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1224,7 +1224,7 @@ func (c *Client) sendCreateNewStickerSet(ctx context.Context, request *CreateNew defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1297,7 +1297,7 @@ func (c *Client) sendDeclineChatJoinRequest(ctx context.Context, request *Declin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1370,7 +1370,7 @@ func (c *Client) sendDeleteChatPhoto(ctx context.Context, request *DeleteChatPho defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1443,7 +1443,7 @@ func (c *Client) sendDeleteChatStickerSet(ctx context.Context, request *DeleteCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1516,7 +1516,7 @@ func (c *Client) sendDeleteMessage(ctx context.Context, request *DeleteMessage) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1589,7 +1589,7 @@ func (c *Client) sendDeleteMyCommands(ctx context.Context, request OptDeleteMyCo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1662,7 +1662,7 @@ func (c *Client) sendDeleteStickerFromSet(ctx context.Context, request *DeleteSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1735,7 +1735,7 @@ func (c *Client) sendDeleteWebhook(ctx context.Context, request OptDeleteWebhook defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1808,7 +1808,7 @@ func (c *Client) sendEditChatInviteLink(ctx context.Context, request *EditChatIn defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1881,7 +1881,7 @@ func (c *Client) sendEditMessageCaption(ctx context.Context, request *EditMessag defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1954,7 +1954,7 @@ func (c *Client) sendEditMessageLiveLocation(ctx context.Context, request *EditM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2027,7 +2027,7 @@ func (c *Client) sendEditMessageMedia(ctx context.Context, request *EditMessageM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2100,7 +2100,7 @@ func (c *Client) sendEditMessageReplyMarkup(ctx context.Context, request *EditMe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2173,7 +2173,7 @@ func (c *Client) sendEditMessageText(ctx context.Context, request *EditMessageTe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2246,7 +2246,7 @@ func (c *Client) sendExportChatInviteLink(ctx context.Context, request *ExportCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2319,7 +2319,7 @@ func (c *Client) sendForwardMessage(ctx context.Context, request *ForwardMessage defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2392,7 +2392,7 @@ func (c *Client) sendGetChat(ctx context.Context, request *GetChat) (res *Result defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2465,7 +2465,7 @@ func (c *Client) sendGetChatAdministrators(ctx context.Context, request *GetChat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2538,7 +2538,7 @@ func (c *Client) sendGetChatMember(ctx context.Context, request *GetChatMember) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2611,7 +2611,7 @@ func (c *Client) sendGetChatMemberCount(ctx context.Context, request *GetChatMem defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2684,7 +2684,7 @@ func (c *Client) sendGetFile(ctx context.Context, request *GetFile) (res *Result defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2757,7 +2757,7 @@ func (c *Client) sendGetGameHighScores(ctx context.Context, request *GetGameHigh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2830,7 +2830,7 @@ func (c *Client) sendGetMe(ctx context.Context) (res *ResultUser, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2900,7 +2900,7 @@ func (c *Client) sendGetMyCommands(ctx context.Context, request OptGetMyCommands defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2973,7 +2973,7 @@ func (c *Client) sendGetStickerSet(ctx context.Context, request *GetStickerSet) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3046,7 +3046,7 @@ func (c *Client) sendGetUpdates(ctx context.Context, request OptGetUpdates) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3119,7 +3119,7 @@ func (c *Client) sendGetUserProfilePhotos(ctx context.Context, request *GetUserP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3192,7 +3192,7 @@ func (c *Client) sendGetWebhookInfo(ctx context.Context) (res *ResultWebhookInfo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3262,7 +3262,7 @@ func (c *Client) sendLeaveChat(ctx context.Context, request *LeaveChat) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3335,7 +3335,7 @@ func (c *Client) sendLogOut(ctx context.Context) (res *Result, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3405,7 +3405,7 @@ func (c *Client) sendPinChatMessage(ctx context.Context, request *PinChatMessage defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3478,7 +3478,7 @@ func (c *Client) sendPromoteChatMember(ctx context.Context, request *PromoteChat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3551,7 +3551,7 @@ func (c *Client) sendRestrictChatMember(ctx context.Context, request *RestrictCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3624,7 +3624,7 @@ func (c *Client) sendRevokeChatInviteLink(ctx context.Context, request *RevokeCh defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3697,7 +3697,7 @@ func (c *Client) sendSendAnimation(ctx context.Context, request *SendAnimation) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3770,7 +3770,7 @@ func (c *Client) sendSendAudio(ctx context.Context, request *SendAudio) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3843,7 +3843,7 @@ func (c *Client) sendSendChatAction(ctx context.Context, request *SendChatAction defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3916,7 +3916,7 @@ func (c *Client) sendSendContact(ctx context.Context, request *SendContact) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -3989,7 +3989,7 @@ func (c *Client) sendSendDice(ctx context.Context, request *SendDice) (res *Resu defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4062,7 +4062,7 @@ func (c *Client) sendSendDocument(ctx context.Context, request *SendDocument) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4135,7 +4135,7 @@ func (c *Client) sendSendGame(ctx context.Context, request *SendGame) (res *Resu defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4208,7 +4208,7 @@ func (c *Client) sendSendInvoice(ctx context.Context, request *SendInvoice) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4281,7 +4281,7 @@ func (c *Client) sendSendLocation(ctx context.Context, request *SendLocation) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4354,7 +4354,7 @@ func (c *Client) sendSendMediaGroup(ctx context.Context, request *SendMediaGroup defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4427,7 +4427,7 @@ func (c *Client) sendSendMessage(ctx context.Context, request *SendMessage) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4500,7 +4500,7 @@ func (c *Client) sendSendPhoto(ctx context.Context, request *SendPhoto) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4573,7 +4573,7 @@ func (c *Client) sendSendPoll(ctx context.Context, request *SendPoll) (res *Resu defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4646,7 +4646,7 @@ func (c *Client) sendSendSticker(ctx context.Context, request *SendSticker) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4719,7 +4719,7 @@ func (c *Client) sendSendVenue(ctx context.Context, request *SendVenue) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4792,7 +4792,7 @@ func (c *Client) sendSendVideo(ctx context.Context, request *SendVideo) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4865,7 +4865,7 @@ func (c *Client) sendSendVideoNote(ctx context.Context, request *SendVideoNote) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -4938,7 +4938,7 @@ func (c *Client) sendSendVoice(ctx context.Context, request *SendVoice) (res *Re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5011,7 +5011,7 @@ func (c *Client) sendSetChatAdministratorCustomTitle(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5084,7 +5084,7 @@ func (c *Client) sendSetChatDescription(ctx context.Context, request *SetChatDes defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5157,7 +5157,7 @@ func (c *Client) sendSetChatPermissions(ctx context.Context, request *SetChatPer defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5230,7 +5230,7 @@ func (c *Client) sendSetChatPhoto(ctx context.Context, request *SetChatPhoto) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5303,7 +5303,7 @@ func (c *Client) sendSetChatStickerSet(ctx context.Context, request *SetChatStic defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5376,7 +5376,7 @@ func (c *Client) sendSetChatTitle(ctx context.Context, request *SetChatTitle) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5449,7 +5449,7 @@ func (c *Client) sendSetGameScore(ctx context.Context, request *SetGameScore) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5522,7 +5522,7 @@ func (c *Client) sendSetMyCommands(ctx context.Context, request *SetMyCommands) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5595,7 +5595,7 @@ func (c *Client) sendSetPassportDataErrors(ctx context.Context, request *SetPass defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5668,7 +5668,7 @@ func (c *Client) sendSetStickerPositionInSet(ctx context.Context, request *SetSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5741,7 +5741,7 @@ func (c *Client) sendSetStickerSetThumb(ctx context.Context, request *SetSticker defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5814,7 +5814,7 @@ func (c *Client) sendSetWebhook(ctx context.Context, request *SetWebhook) (res * defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5887,7 +5887,7 @@ func (c *Client) sendStopMessageLiveLocation(ctx context.Context, request *StopM defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -5960,7 +5960,7 @@ func (c *Client) sendStopPoll(ctx context.Context, request *StopPoll) (res *Resu defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6033,7 +6033,7 @@ func (c *Client) sendUnbanChatMember(ctx context.Context, request *UnbanChatMemb defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6106,7 +6106,7 @@ func (c *Client) sendUnbanChatSenderChat(ctx context.Context, request *UnbanChat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6179,7 +6179,7 @@ func (c *Client) sendUnpinAllChatMessages(ctx context.Context, request *UnpinAll defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6252,7 +6252,7 @@ func (c *Client) sendUnpinChatMessage(ctx context.Context, request *UnpinChatMes defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6325,7 +6325,7 @@ func (c *Client) sendUploadStickerFile(ctx context.Context, request *UploadStick defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_telegram/oas_handlers_gen.go b/examples/ex_telegram/oas_handlers_gen.go index a5a6fcfe9..a0e815a9e 100644 --- a/examples/ex_telegram/oas_handlers_gen.go +++ b/examples/ex_telegram/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handleAddStickerToSetRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handleAddStickerToSetRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -223,7 +219,7 @@ func (s *Server) handleAnswerCallbackQueryRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -234,12 +230,8 @@ func (s *Server) handleAnswerCallbackQueryRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -374,7 +366,7 @@ func (s *Server) handleAnswerInlineQueryRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -385,12 +377,8 @@ func (s *Server) handleAnswerInlineQueryRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -525,7 +513,7 @@ func (s *Server) handleAnswerPreCheckoutQueryRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -536,12 +524,8 @@ func (s *Server) handleAnswerPreCheckoutQueryRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -676,7 +660,7 @@ func (s *Server) handleAnswerShippingQueryRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -687,12 +671,8 @@ func (s *Server) handleAnswerShippingQueryRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -827,7 +807,7 @@ func (s *Server) handleApproveChatJoinRequestRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -838,12 +818,8 @@ func (s *Server) handleApproveChatJoinRequestRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -978,7 +954,7 @@ func (s *Server) handleBanChatMemberRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -989,12 +965,8 @@ func (s *Server) handleBanChatMemberRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1129,7 +1101,7 @@ func (s *Server) handleBanChatSenderChatRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1140,12 +1112,8 @@ func (s *Server) handleBanChatSenderChatRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1280,7 +1248,7 @@ func (s *Server) handleCloseRequest(args [0]string, argsEscaped bool, w http.Res s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1291,12 +1259,8 @@ func (s *Server) handleCloseRequest(args [0]string, argsEscaped bool, w http.Res // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1412,7 +1376,7 @@ func (s *Server) handleCopyMessageRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1423,12 +1387,8 @@ func (s *Server) handleCopyMessageRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1563,7 +1523,7 @@ func (s *Server) handleCreateChatInviteLinkRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1574,12 +1534,8 @@ func (s *Server) handleCreateChatInviteLinkRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1714,7 +1670,7 @@ func (s *Server) handleCreateNewStickerSetRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1725,12 +1681,8 @@ func (s *Server) handleCreateNewStickerSetRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1865,7 +1817,7 @@ func (s *Server) handleDeclineChatJoinRequestRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1876,12 +1828,8 @@ func (s *Server) handleDeclineChatJoinRequestRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2016,7 +1964,7 @@ func (s *Server) handleDeleteChatPhotoRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2027,12 +1975,8 @@ func (s *Server) handleDeleteChatPhotoRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2167,7 +2111,7 @@ func (s *Server) handleDeleteChatStickerSetRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2178,12 +2122,8 @@ func (s *Server) handleDeleteChatStickerSetRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2318,7 +2258,7 @@ func (s *Server) handleDeleteMessageRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2329,12 +2269,8 @@ func (s *Server) handleDeleteMessageRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2469,7 +2405,7 @@ func (s *Server) handleDeleteMyCommandsRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2480,12 +2416,8 @@ func (s *Server) handleDeleteMyCommandsRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2620,7 +2552,7 @@ func (s *Server) handleDeleteStickerFromSetRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2631,12 +2563,8 @@ func (s *Server) handleDeleteStickerFromSetRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2771,7 +2699,7 @@ func (s *Server) handleDeleteWebhookRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2782,12 +2710,8 @@ func (s *Server) handleDeleteWebhookRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2922,7 +2846,7 @@ func (s *Server) handleEditChatInviteLinkRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2933,12 +2857,8 @@ func (s *Server) handleEditChatInviteLinkRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3073,7 +2993,7 @@ func (s *Server) handleEditMessageCaptionRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3084,12 +3004,8 @@ func (s *Server) handleEditMessageCaptionRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3224,7 +3140,7 @@ func (s *Server) handleEditMessageLiveLocationRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3235,12 +3151,8 @@ func (s *Server) handleEditMessageLiveLocationRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3375,7 +3287,7 @@ func (s *Server) handleEditMessageMediaRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3386,12 +3298,8 @@ func (s *Server) handleEditMessageMediaRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3526,7 +3434,7 @@ func (s *Server) handleEditMessageReplyMarkupRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3537,12 +3445,8 @@ func (s *Server) handleEditMessageReplyMarkupRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3677,7 +3581,7 @@ func (s *Server) handleEditMessageTextRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3688,12 +3592,8 @@ func (s *Server) handleEditMessageTextRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3828,7 +3728,7 @@ func (s *Server) handleExportChatInviteLinkRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3839,12 +3739,8 @@ func (s *Server) handleExportChatInviteLinkRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3979,7 +3875,7 @@ func (s *Server) handleForwardMessageRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3990,12 +3886,8 @@ func (s *Server) handleForwardMessageRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4130,7 +4022,7 @@ func (s *Server) handleGetChatRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4141,12 +4033,8 @@ func (s *Server) handleGetChatRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4281,7 +4169,7 @@ func (s *Server) handleGetChatAdministratorsRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4292,12 +4180,8 @@ func (s *Server) handleGetChatAdministratorsRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4432,7 +4316,7 @@ func (s *Server) handleGetChatMemberRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4443,12 +4327,8 @@ func (s *Server) handleGetChatMemberRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4583,7 +4463,7 @@ func (s *Server) handleGetChatMemberCountRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4594,12 +4474,8 @@ func (s *Server) handleGetChatMemberCountRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4734,7 +4610,7 @@ func (s *Server) handleGetFileRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4745,12 +4621,8 @@ func (s *Server) handleGetFileRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4885,7 +4757,7 @@ func (s *Server) handleGetGameHighScoresRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4896,12 +4768,8 @@ func (s *Server) handleGetGameHighScoresRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5036,7 +4904,7 @@ func (s *Server) handleGetMeRequest(args [0]string, argsEscaped bool, w http.Res s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5047,12 +4915,8 @@ func (s *Server) handleGetMeRequest(args [0]string, argsEscaped bool, w http.Res // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5168,7 +5032,7 @@ func (s *Server) handleGetMyCommandsRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5179,12 +5043,8 @@ func (s *Server) handleGetMyCommandsRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5319,7 +5179,7 @@ func (s *Server) handleGetStickerSetRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5330,12 +5190,8 @@ func (s *Server) handleGetStickerSetRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5470,7 +5326,7 @@ func (s *Server) handleGetUpdatesRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5481,12 +5337,8 @@ func (s *Server) handleGetUpdatesRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5621,7 +5473,7 @@ func (s *Server) handleGetUserProfilePhotosRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5632,12 +5484,8 @@ func (s *Server) handleGetUserProfilePhotosRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5772,7 +5620,7 @@ func (s *Server) handleGetWebhookInfoRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5783,12 +5631,8 @@ func (s *Server) handleGetWebhookInfoRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5904,7 +5748,7 @@ func (s *Server) handleLeaveChatRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5915,12 +5759,8 @@ func (s *Server) handleLeaveChatRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6055,7 +5895,7 @@ func (s *Server) handleLogOutRequest(args [0]string, argsEscaped bool, w http.Re s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6066,12 +5906,8 @@ func (s *Server) handleLogOutRequest(args [0]string, argsEscaped bool, w http.Re // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6187,7 +6023,7 @@ func (s *Server) handlePinChatMessageRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6198,12 +6034,8 @@ func (s *Server) handlePinChatMessageRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6338,7 +6170,7 @@ func (s *Server) handlePromoteChatMemberRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6349,12 +6181,8 @@ func (s *Server) handlePromoteChatMemberRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6489,7 +6317,7 @@ func (s *Server) handleRestrictChatMemberRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6500,12 +6328,8 @@ func (s *Server) handleRestrictChatMemberRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6640,7 +6464,7 @@ func (s *Server) handleRevokeChatInviteLinkRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6651,12 +6475,8 @@ func (s *Server) handleRevokeChatInviteLinkRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6791,7 +6611,7 @@ func (s *Server) handleSendAnimationRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6802,12 +6622,8 @@ func (s *Server) handleSendAnimationRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6942,7 +6758,7 @@ func (s *Server) handleSendAudioRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6953,12 +6769,8 @@ func (s *Server) handleSendAudioRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7093,7 +6905,7 @@ func (s *Server) handleSendChatActionRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7104,12 +6916,8 @@ func (s *Server) handleSendChatActionRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7244,7 +7052,7 @@ func (s *Server) handleSendContactRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7255,12 +7063,8 @@ func (s *Server) handleSendContactRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7395,7 +7199,7 @@ func (s *Server) handleSendDiceRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7406,12 +7210,8 @@ func (s *Server) handleSendDiceRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7546,7 +7346,7 @@ func (s *Server) handleSendDocumentRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7557,12 +7357,8 @@ func (s *Server) handleSendDocumentRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7697,7 +7493,7 @@ func (s *Server) handleSendGameRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7708,12 +7504,8 @@ func (s *Server) handleSendGameRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7848,7 +7640,7 @@ func (s *Server) handleSendInvoiceRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7859,12 +7651,8 @@ func (s *Server) handleSendInvoiceRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7999,7 +7787,7 @@ func (s *Server) handleSendLocationRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8010,12 +7798,8 @@ func (s *Server) handleSendLocationRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8150,7 +7934,7 @@ func (s *Server) handleSendMediaGroupRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8161,12 +7945,8 @@ func (s *Server) handleSendMediaGroupRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8301,7 +8081,7 @@ func (s *Server) handleSendMessageRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8312,12 +8092,8 @@ func (s *Server) handleSendMessageRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8452,7 +8228,7 @@ func (s *Server) handleSendPhotoRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8463,12 +8239,8 @@ func (s *Server) handleSendPhotoRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8603,7 +8375,7 @@ func (s *Server) handleSendPollRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8614,12 +8386,8 @@ func (s *Server) handleSendPollRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8754,7 +8522,7 @@ func (s *Server) handleSendStickerRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8765,12 +8533,8 @@ func (s *Server) handleSendStickerRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8905,7 +8669,7 @@ func (s *Server) handleSendVenueRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8916,12 +8680,8 @@ func (s *Server) handleSendVenueRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9056,7 +8816,7 @@ func (s *Server) handleSendVideoRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9067,12 +8827,8 @@ func (s *Server) handleSendVideoRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9207,7 +8963,7 @@ func (s *Server) handleSendVideoNoteRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9218,12 +8974,8 @@ func (s *Server) handleSendVideoNoteRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9358,7 +9110,7 @@ func (s *Server) handleSendVoiceRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9369,12 +9121,8 @@ func (s *Server) handleSendVoiceRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9509,7 +9257,7 @@ func (s *Server) handleSetChatAdministratorCustomTitleRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9520,12 +9268,8 @@ func (s *Server) handleSetChatAdministratorCustomTitleRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9660,7 +9404,7 @@ func (s *Server) handleSetChatDescriptionRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9671,12 +9415,8 @@ func (s *Server) handleSetChatDescriptionRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9811,7 +9551,7 @@ func (s *Server) handleSetChatPermissionsRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9822,12 +9562,8 @@ func (s *Server) handleSetChatPermissionsRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9962,7 +9698,7 @@ func (s *Server) handleSetChatPhotoRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9973,12 +9709,8 @@ func (s *Server) handleSetChatPhotoRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10113,7 +9845,7 @@ func (s *Server) handleSetChatStickerSetRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10124,12 +9856,8 @@ func (s *Server) handleSetChatStickerSetRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10264,7 +9992,7 @@ func (s *Server) handleSetChatTitleRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10275,12 +10003,8 @@ func (s *Server) handleSetChatTitleRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10415,7 +10139,7 @@ func (s *Server) handleSetGameScoreRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10426,12 +10150,8 @@ func (s *Server) handleSetGameScoreRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10566,7 +10286,7 @@ func (s *Server) handleSetMyCommandsRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10577,12 +10297,8 @@ func (s *Server) handleSetMyCommandsRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10717,7 +10433,7 @@ func (s *Server) handleSetPassportDataErrorsRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10728,12 +10444,8 @@ func (s *Server) handleSetPassportDataErrorsRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10868,7 +10580,7 @@ func (s *Server) handleSetStickerPositionInSetRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10879,12 +10591,8 @@ func (s *Server) handleSetStickerPositionInSetRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11019,7 +10727,7 @@ func (s *Server) handleSetStickerSetThumbRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11030,12 +10738,8 @@ func (s *Server) handleSetStickerSetThumbRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11170,7 +10874,7 @@ func (s *Server) handleSetWebhookRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11181,12 +10885,8 @@ func (s *Server) handleSetWebhookRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11321,7 +11021,7 @@ func (s *Server) handleStopMessageLiveLocationRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11332,12 +11032,8 @@ func (s *Server) handleStopMessageLiveLocationRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11472,7 +11168,7 @@ func (s *Server) handleStopPollRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11483,12 +11179,8 @@ func (s *Server) handleStopPollRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11623,7 +11315,7 @@ func (s *Server) handleUnbanChatMemberRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11634,12 +11326,8 @@ func (s *Server) handleUnbanChatMemberRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11774,7 +11462,7 @@ func (s *Server) handleUnbanChatSenderChatRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11785,12 +11473,8 @@ func (s *Server) handleUnbanChatSenderChatRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11925,7 +11609,7 @@ func (s *Server) handleUnpinAllChatMessagesRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11936,12 +11620,8 @@ func (s *Server) handleUnpinAllChatMessagesRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12076,7 +11756,7 @@ func (s *Server) handleUnpinChatMessageRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12087,12 +11767,8 @@ func (s *Server) handleUnpinChatMessageRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12227,7 +11903,7 @@ func (s *Server) handleUploadStickerFileRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12238,12 +11914,8 @@ func (s *Server) handleUploadStickerFileRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_test_format/oas_client_gen.go b/examples/ex_test_format/oas_client_gen.go index 5f1f60fd8..37bcf2f4e 100644 --- a/examples/ex_test_format/oas_client_gen.go +++ b/examples/ex_test_format/oas_client_gen.go @@ -4169,7 +4169,7 @@ func (c *Client) sendTestQueryParameter(ctx context.Context, request string, par defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6281,7 +6281,7 @@ func (c *Client) sendTestRequestAny(ctx context.Context, request jx.Raw) (res *E defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6354,7 +6354,7 @@ func (c *Client) sendTestRequestBoolean(ctx context.Context, request OptBool) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6427,7 +6427,7 @@ func (c *Client) sendTestRequestBooleanArray(ctx context.Context, request []bool defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6500,7 +6500,7 @@ func (c *Client) sendTestRequestBooleanArrayArray(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6573,7 +6573,7 @@ func (c *Client) sendTestRequestBooleanNullable(ctx context.Context, request Opt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6646,7 +6646,7 @@ func (c *Client) sendTestRequestBooleanNullableArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6719,7 +6719,7 @@ func (c *Client) sendTestRequestBooleanNullableArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6792,7 +6792,7 @@ func (c *Client) sendTestRequestEmptyStruct(ctx context.Context, request *TestRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6865,7 +6865,7 @@ func (c *Client) sendTestRequestFormatTest(ctx context.Context, request OptTestR defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -6938,7 +6938,7 @@ func (c *Client) sendTestRequestInteger(ctx context.Context, request OptInt) (re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7011,7 +7011,7 @@ func (c *Client) sendTestRequestIntegerArray(ctx context.Context, request []int) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7084,7 +7084,7 @@ func (c *Client) sendTestRequestIntegerArrayArray(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7157,7 +7157,7 @@ func (c *Client) sendTestRequestIntegerInt16(ctx context.Context, request OptInt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7230,7 +7230,7 @@ func (c *Client) sendTestRequestIntegerInt16Array(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7303,7 +7303,7 @@ func (c *Client) sendTestRequestIntegerInt16ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7376,7 +7376,7 @@ func (c *Client) sendTestRequestIntegerInt16Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7449,7 +7449,7 @@ func (c *Client) sendTestRequestIntegerInt16NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7522,7 +7522,7 @@ func (c *Client) sendTestRequestIntegerInt16NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7595,7 +7595,7 @@ func (c *Client) sendTestRequestIntegerInt32(ctx context.Context, request OptInt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7668,7 +7668,7 @@ func (c *Client) sendTestRequestIntegerInt32Array(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7741,7 +7741,7 @@ func (c *Client) sendTestRequestIntegerInt32ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7814,7 +7814,7 @@ func (c *Client) sendTestRequestIntegerInt32Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7887,7 +7887,7 @@ func (c *Client) sendTestRequestIntegerInt32NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -7960,7 +7960,7 @@ func (c *Client) sendTestRequestIntegerInt32NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8033,7 +8033,7 @@ func (c *Client) sendTestRequestIntegerInt64(ctx context.Context, request OptInt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8106,7 +8106,7 @@ func (c *Client) sendTestRequestIntegerInt64Array(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8179,7 +8179,7 @@ func (c *Client) sendTestRequestIntegerInt64ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8252,7 +8252,7 @@ func (c *Client) sendTestRequestIntegerInt64Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8325,7 +8325,7 @@ func (c *Client) sendTestRequestIntegerInt64NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8398,7 +8398,7 @@ func (c *Client) sendTestRequestIntegerInt64NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8471,7 +8471,7 @@ func (c *Client) sendTestRequestIntegerInt8(ctx context.Context, request OptInt8 defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8544,7 +8544,7 @@ func (c *Client) sendTestRequestIntegerInt8Array(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8617,7 +8617,7 @@ func (c *Client) sendTestRequestIntegerInt8ArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8690,7 +8690,7 @@ func (c *Client) sendTestRequestIntegerInt8Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8763,7 +8763,7 @@ func (c *Client) sendTestRequestIntegerInt8NullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8836,7 +8836,7 @@ func (c *Client) sendTestRequestIntegerInt8NullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8909,7 +8909,7 @@ func (c *Client) sendTestRequestIntegerNullable(ctx context.Context, request Opt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -8982,7 +8982,7 @@ func (c *Client) sendTestRequestIntegerNullableArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9055,7 +9055,7 @@ func (c *Client) sendTestRequestIntegerNullableArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9128,7 +9128,7 @@ func (c *Client) sendTestRequestIntegerUint(ctx context.Context, request OptUint defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9201,7 +9201,7 @@ func (c *Client) sendTestRequestIntegerUint16(ctx context.Context, request OptUi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9274,7 +9274,7 @@ func (c *Client) sendTestRequestIntegerUint16Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9347,7 +9347,7 @@ func (c *Client) sendTestRequestIntegerUint16ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9420,7 +9420,7 @@ func (c *Client) sendTestRequestIntegerUint16Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9493,7 +9493,7 @@ func (c *Client) sendTestRequestIntegerUint16NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9566,7 +9566,7 @@ func (c *Client) sendTestRequestIntegerUint16NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9639,7 +9639,7 @@ func (c *Client) sendTestRequestIntegerUint32(ctx context.Context, request OptUi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9712,7 +9712,7 @@ func (c *Client) sendTestRequestIntegerUint32Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9785,7 +9785,7 @@ func (c *Client) sendTestRequestIntegerUint32ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9858,7 +9858,7 @@ func (c *Client) sendTestRequestIntegerUint32Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -9931,7 +9931,7 @@ func (c *Client) sendTestRequestIntegerUint32NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10004,7 +10004,7 @@ func (c *Client) sendTestRequestIntegerUint32NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10077,7 +10077,7 @@ func (c *Client) sendTestRequestIntegerUint64(ctx context.Context, request OptUi defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10150,7 +10150,7 @@ func (c *Client) sendTestRequestIntegerUint64Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10223,7 +10223,7 @@ func (c *Client) sendTestRequestIntegerUint64ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10296,7 +10296,7 @@ func (c *Client) sendTestRequestIntegerUint64Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10369,7 +10369,7 @@ func (c *Client) sendTestRequestIntegerUint64NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10442,7 +10442,7 @@ func (c *Client) sendTestRequestIntegerUint64NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10515,7 +10515,7 @@ func (c *Client) sendTestRequestIntegerUint8(ctx context.Context, request OptUin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10588,7 +10588,7 @@ func (c *Client) sendTestRequestIntegerUint8Array(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10661,7 +10661,7 @@ func (c *Client) sendTestRequestIntegerUint8ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10734,7 +10734,7 @@ func (c *Client) sendTestRequestIntegerUint8Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10807,7 +10807,7 @@ func (c *Client) sendTestRequestIntegerUint8NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10880,7 +10880,7 @@ func (c *Client) sendTestRequestIntegerUint8NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -10953,7 +10953,7 @@ func (c *Client) sendTestRequestIntegerUintArray(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11026,7 +11026,7 @@ func (c *Client) sendTestRequestIntegerUintArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11099,7 +11099,7 @@ func (c *Client) sendTestRequestIntegerUintNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11172,7 +11172,7 @@ func (c *Client) sendTestRequestIntegerUintNullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11245,7 +11245,7 @@ func (c *Client) sendTestRequestIntegerUintNullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11318,7 +11318,7 @@ func (c *Client) sendTestRequestIntegerUnix(ctx context.Context, request OptUnix defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11391,7 +11391,7 @@ func (c *Client) sendTestRequestIntegerUnixArray(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11464,7 +11464,7 @@ func (c *Client) sendTestRequestIntegerUnixArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11537,7 +11537,7 @@ func (c *Client) sendTestRequestIntegerUnixMicro(ctx context.Context, request Op defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11610,7 +11610,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11683,7 +11683,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11756,7 +11756,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullable(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11829,7 +11829,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullableArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11902,7 +11902,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullableArrayArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -11975,7 +11975,7 @@ func (c *Client) sendTestRequestIntegerUnixMilli(ctx context.Context, request Op defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12048,7 +12048,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12121,7 +12121,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12194,7 +12194,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullable(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12267,7 +12267,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullableArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12340,7 +12340,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullableArrayArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12413,7 +12413,7 @@ func (c *Client) sendTestRequestIntegerUnixNano(ctx context.Context, request Opt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12486,7 +12486,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12559,7 +12559,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12632,7 +12632,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullable(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12705,7 +12705,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullableArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12778,7 +12778,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullableArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12851,7 +12851,7 @@ func (c *Client) sendTestRequestIntegerUnixNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12924,7 +12924,7 @@ func (c *Client) sendTestRequestIntegerUnixNullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -12997,7 +12997,7 @@ func (c *Client) sendTestRequestIntegerUnixNullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13070,7 +13070,7 @@ func (c *Client) sendTestRequestIntegerUnixSeconds(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13143,7 +13143,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13216,7 +13216,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13289,7 +13289,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13362,7 +13362,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13435,7 +13435,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13508,7 +13508,7 @@ func (c *Client) sendTestRequestNull(ctx context.Context, request OptNull) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13581,7 +13581,7 @@ func (c *Client) sendTestRequestNullArray(ctx context.Context, request []struct{ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13654,7 +13654,7 @@ func (c *Client) sendTestRequestNullArrayArray(ctx context.Context, request [][] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13727,7 +13727,7 @@ func (c *Client) sendTestRequestNullNullable(ctx context.Context, request OptNul defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13800,7 +13800,7 @@ func (c *Client) sendTestRequestNullNullableArray(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13873,7 +13873,7 @@ func (c *Client) sendTestRequestNullNullableArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -13946,7 +13946,7 @@ func (c *Client) sendTestRequestNumber(ctx context.Context, request OptFloat64) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14019,7 +14019,7 @@ func (c *Client) sendTestRequestNumberArray(ctx context.Context, request []float defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14092,7 +14092,7 @@ func (c *Client) sendTestRequestNumberArrayArray(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14165,7 +14165,7 @@ func (c *Client) sendTestRequestNumberDouble(ctx context.Context, request OptFlo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14238,7 +14238,7 @@ func (c *Client) sendTestRequestNumberDoubleArray(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14311,7 +14311,7 @@ func (c *Client) sendTestRequestNumberDoubleArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14384,7 +14384,7 @@ func (c *Client) sendTestRequestNumberDoubleNullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14457,7 +14457,7 @@ func (c *Client) sendTestRequestNumberDoubleNullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14530,7 +14530,7 @@ func (c *Client) sendTestRequestNumberDoubleNullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14603,7 +14603,7 @@ func (c *Client) sendTestRequestNumberFloat(ctx context.Context, request OptFloa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14676,7 +14676,7 @@ func (c *Client) sendTestRequestNumberFloatArray(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14749,7 +14749,7 @@ func (c *Client) sendTestRequestNumberFloatArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14822,7 +14822,7 @@ func (c *Client) sendTestRequestNumberFloatNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14895,7 +14895,7 @@ func (c *Client) sendTestRequestNumberFloatNullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -14968,7 +14968,7 @@ func (c *Client) sendTestRequestNumberFloatNullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15041,7 +15041,7 @@ func (c *Client) sendTestRequestNumberInt32(ctx context.Context, request OptInt3 defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15114,7 +15114,7 @@ func (c *Client) sendTestRequestNumberInt32Array(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15187,7 +15187,7 @@ func (c *Client) sendTestRequestNumberInt32ArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15260,7 +15260,7 @@ func (c *Client) sendTestRequestNumberInt32Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15333,7 +15333,7 @@ func (c *Client) sendTestRequestNumberInt32NullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15406,7 +15406,7 @@ func (c *Client) sendTestRequestNumberInt32NullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15479,7 +15479,7 @@ func (c *Client) sendTestRequestNumberInt64(ctx context.Context, request OptInt6 defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15552,7 +15552,7 @@ func (c *Client) sendTestRequestNumberInt64Array(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15625,7 +15625,7 @@ func (c *Client) sendTestRequestNumberInt64ArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15698,7 +15698,7 @@ func (c *Client) sendTestRequestNumberInt64Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15771,7 +15771,7 @@ func (c *Client) sendTestRequestNumberInt64NullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15844,7 +15844,7 @@ func (c *Client) sendTestRequestNumberInt64NullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15917,7 +15917,7 @@ func (c *Client) sendTestRequestNumberNullable(ctx context.Context, request OptN defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -15990,7 +15990,7 @@ func (c *Client) sendTestRequestNumberNullableArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16063,7 +16063,7 @@ func (c *Client) sendTestRequestNumberNullableArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16136,7 +16136,7 @@ func (c *Client) sendTestRequestRequiredAny(ctx context.Context, request jx.Raw) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16209,7 +16209,7 @@ func (c *Client) sendTestRequestRequiredBoolean(ctx context.Context, request boo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16282,7 +16282,7 @@ func (c *Client) sendTestRequestRequiredBooleanArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16355,7 +16355,7 @@ func (c *Client) sendTestRequestRequiredBooleanArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16428,7 +16428,7 @@ func (c *Client) sendTestRequestRequiredBooleanNullable(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16501,7 +16501,7 @@ func (c *Client) sendTestRequestRequiredBooleanNullableArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16574,7 +16574,7 @@ func (c *Client) sendTestRequestRequiredBooleanNullableArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16647,7 +16647,7 @@ func (c *Client) sendTestRequestRequiredEmptyStruct(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16720,7 +16720,7 @@ func (c *Client) sendTestRequestRequiredFormatTest(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16793,7 +16793,7 @@ func (c *Client) sendTestRequestRequiredInteger(ctx context.Context, request int defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16866,7 +16866,7 @@ func (c *Client) sendTestRequestRequiredIntegerArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -16939,7 +16939,7 @@ func (c *Client) sendTestRequestRequiredIntegerArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17012,7 +17012,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17085,7 +17085,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16Array(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17158,7 +17158,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16ArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17231,7 +17231,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16Nullable(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17304,7 +17304,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16NullableArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17377,7 +17377,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16NullableArrayArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17450,7 +17450,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17523,7 +17523,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32Array(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17596,7 +17596,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32ArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17669,7 +17669,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32Nullable(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17742,7 +17742,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32NullableArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17815,7 +17815,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32NullableArrayArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17888,7 +17888,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -17961,7 +17961,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64Array(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18034,7 +18034,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64ArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18107,7 +18107,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64Nullable(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18180,7 +18180,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64NullableArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18253,7 +18253,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64NullableArrayArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18326,7 +18326,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18399,7 +18399,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8Array(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18472,7 +18472,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8ArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18545,7 +18545,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8Nullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18618,7 +18618,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8NullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18691,7 +18691,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8NullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18764,7 +18764,7 @@ func (c *Client) sendTestRequestRequiredIntegerNullable(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18837,7 +18837,7 @@ func (c *Client) sendTestRequestRequiredIntegerNullableArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18910,7 +18910,7 @@ func (c *Client) sendTestRequestRequiredIntegerNullableArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -18983,7 +18983,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19056,7 +19056,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19129,7 +19129,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16Array(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19202,7 +19202,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16ArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19275,7 +19275,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16Nullable(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19348,7 +19348,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16NullableArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19421,7 +19421,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16NullableArrayArray(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19494,7 +19494,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19567,7 +19567,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32Array(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19640,7 +19640,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32ArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19713,7 +19713,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32Nullable(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19786,7 +19786,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32NullableArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19859,7 +19859,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32NullableArrayArray(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -19932,7 +19932,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20005,7 +20005,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64Array(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20078,7 +20078,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64ArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20151,7 +20151,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64Nullable(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20224,7 +20224,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64NullableArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20297,7 +20297,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64NullableArrayArray(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20370,7 +20370,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20443,7 +20443,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8Array(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20516,7 +20516,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8ArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20589,7 +20589,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8Nullable(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20662,7 +20662,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8NullableArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20735,7 +20735,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8NullableArrayArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20808,7 +20808,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20881,7 +20881,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -20954,7 +20954,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21027,7 +21027,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21100,7 +21100,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21173,7 +21173,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnix(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21246,7 +21246,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21319,7 +21319,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21392,7 +21392,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicro(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21465,7 +21465,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21538,7 +21538,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroArrayArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21611,7 +21611,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullable(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21684,7 +21684,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullableArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21757,7 +21757,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullableArrayArray(ctx c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21830,7 +21830,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilli(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21903,7 +21903,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -21976,7 +21976,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliArrayArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22049,7 +22049,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullable(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22122,7 +22122,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullableArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22195,7 +22195,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullableArrayArray(ctx c defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22268,7 +22268,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNano(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22341,7 +22341,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22414,7 +22414,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22487,7 +22487,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullable(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22560,7 +22560,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullableArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22633,7 +22633,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullableArrayArray(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22706,7 +22706,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22779,7 +22779,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22852,7 +22852,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22925,7 +22925,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSeconds(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -22998,7 +22998,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23071,7 +23071,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23144,7 +23144,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullable(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23217,7 +23217,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullableArray(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23290,7 +23290,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullableArrayArray(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23363,7 +23363,7 @@ func (c *Client) sendTestRequestRequiredNull(ctx context.Context, request struct defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23436,7 +23436,7 @@ func (c *Client) sendTestRequestRequiredNullArray(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23509,7 +23509,7 @@ func (c *Client) sendTestRequestRequiredNullArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23582,7 +23582,7 @@ func (c *Client) sendTestRequestRequiredNullNullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23655,7 +23655,7 @@ func (c *Client) sendTestRequestRequiredNullNullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23728,7 +23728,7 @@ func (c *Client) sendTestRequestRequiredNullNullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23801,7 +23801,7 @@ func (c *Client) sendTestRequestRequiredNumber(ctx context.Context, request floa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23874,7 +23874,7 @@ func (c *Client) sendTestRequestRequiredNumberArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -23947,7 +23947,7 @@ func (c *Client) sendTestRequestRequiredNumberArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24020,7 +24020,7 @@ func (c *Client) sendTestRequestRequiredNumberDouble(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24093,7 +24093,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24166,7 +24166,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24239,7 +24239,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullable(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24312,7 +24312,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullableArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24385,7 +24385,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullableArrayArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24458,7 +24458,7 @@ func (c *Client) sendTestRequestRequiredNumberFloat(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24531,7 +24531,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24604,7 +24604,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24677,7 +24677,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24750,7 +24750,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24823,7 +24823,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24896,7 +24896,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -24969,7 +24969,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32Array(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25042,7 +25042,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32ArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25115,7 +25115,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32Nullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25188,7 +25188,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32NullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25261,7 +25261,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32NullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25334,7 +25334,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25407,7 +25407,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64Array(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25480,7 +25480,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64ArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25553,7 +25553,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64Nullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25626,7 +25626,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64NullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25699,7 +25699,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64NullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25772,7 +25772,7 @@ func (c *Client) sendTestRequestRequiredNumberNullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25845,7 +25845,7 @@ func (c *Client) sendTestRequestRequiredNumberNullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25918,7 +25918,7 @@ func (c *Client) sendTestRequestRequiredNumberNullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -25991,7 +25991,7 @@ func (c *Client) sendTestRequestRequiredString(ctx context.Context, request stri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26064,7 +26064,7 @@ func (c *Client) sendTestRequestRequiredStringArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26137,7 +26137,7 @@ func (c *Client) sendTestRequestRequiredStringArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26210,7 +26210,7 @@ func (c *Client) sendTestRequestRequiredStringBase64(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26283,7 +26283,7 @@ func (c *Client) sendTestRequestRequiredStringBase64Array(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26356,7 +26356,7 @@ func (c *Client) sendTestRequestRequiredStringBase64ArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26429,7 +26429,7 @@ func (c *Client) sendTestRequestRequiredStringBase64Nullable(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26502,7 +26502,7 @@ func (c *Client) sendTestRequestRequiredStringBase64NullableArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26575,7 +26575,7 @@ func (c *Client) sendTestRequestRequiredStringBase64NullableArrayArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26648,7 +26648,7 @@ func (c *Client) sendTestRequestRequiredStringBinary(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26721,7 +26721,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26794,7 +26794,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26867,7 +26867,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullable(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -26940,7 +26940,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullableArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27013,7 +27013,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullableArrayArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27086,7 +27086,7 @@ func (c *Client) sendTestRequestRequiredStringByte(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27159,7 +27159,7 @@ func (c *Client) sendTestRequestRequiredStringByteArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27232,7 +27232,7 @@ func (c *Client) sendTestRequestRequiredStringByteArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27305,7 +27305,7 @@ func (c *Client) sendTestRequestRequiredStringByteNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27378,7 +27378,7 @@ func (c *Client) sendTestRequestRequiredStringByteNullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27451,7 +27451,7 @@ func (c *Client) sendTestRequestRequiredStringByteNullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27524,7 +27524,7 @@ func (c *Client) sendTestRequestRequiredStringDate(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27597,7 +27597,7 @@ func (c *Client) sendTestRequestRequiredStringDateArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27670,7 +27670,7 @@ func (c *Client) sendTestRequestRequiredStringDateArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27743,7 +27743,7 @@ func (c *Client) sendTestRequestRequiredStringDateNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27816,7 +27816,7 @@ func (c *Client) sendTestRequestRequiredStringDateNullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27889,7 +27889,7 @@ func (c *Client) sendTestRequestRequiredStringDateNullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -27962,7 +27962,7 @@ func (c *Client) sendTestRequestRequiredStringDateTime(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28035,7 +28035,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28108,7 +28108,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28181,7 +28181,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullable(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28254,7 +28254,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullableArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28327,7 +28327,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullableArrayArray(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28400,7 +28400,7 @@ func (c *Client) sendTestRequestRequiredStringDuration(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28473,7 +28473,7 @@ func (c *Client) sendTestRequestRequiredStringDurationArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28546,7 +28546,7 @@ func (c *Client) sendTestRequestRequiredStringDurationArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28619,7 +28619,7 @@ func (c *Client) sendTestRequestRequiredStringDurationNullable(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28692,7 +28692,7 @@ func (c *Client) sendTestRequestRequiredStringDurationNullableArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28765,7 +28765,7 @@ func (c *Client) sendTestRequestRequiredStringDurationNullableArrayArray(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28838,7 +28838,7 @@ func (c *Client) sendTestRequestRequiredStringEmail(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28911,7 +28911,7 @@ func (c *Client) sendTestRequestRequiredStringEmailArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -28984,7 +28984,7 @@ func (c *Client) sendTestRequestRequiredStringEmailArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29057,7 +29057,7 @@ func (c *Client) sendTestRequestRequiredStringEmailNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29130,7 +29130,7 @@ func (c *Client) sendTestRequestRequiredStringEmailNullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29203,7 +29203,7 @@ func (c *Client) sendTestRequestRequiredStringEmailNullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29276,7 +29276,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29349,7 +29349,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32Array(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29422,7 +29422,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32ArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29495,7 +29495,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32Nullable(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29568,7 +29568,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32NullableArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29641,7 +29641,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32NullableArrayArray(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29714,7 +29714,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29787,7 +29787,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64Array(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29860,7 +29860,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64ArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -29933,7 +29933,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64Nullable(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30006,7 +30006,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64NullableArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30079,7 +30079,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64NullableArrayArray(ctx cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30152,7 +30152,7 @@ func (c *Client) sendTestRequestRequiredStringHostname(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30225,7 +30225,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30298,7 +30298,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30371,7 +30371,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullable(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30444,7 +30444,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullableArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30517,7 +30517,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullableArrayArray(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30590,7 +30590,7 @@ func (c *Client) sendTestRequestRequiredStringIP(ctx context.Context, request ne defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30663,7 +30663,7 @@ func (c *Client) sendTestRequestRequiredStringIPArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30736,7 +30736,7 @@ func (c *Client) sendTestRequestRequiredStringIPArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30809,7 +30809,7 @@ func (c *Client) sendTestRequestRequiredStringIPNullable(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30882,7 +30882,7 @@ func (c *Client) sendTestRequestRequiredStringIPNullableArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -30955,7 +30955,7 @@ func (c *Client) sendTestRequestRequiredStringIPNullableArrayArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31028,7 +31028,7 @@ func (c *Client) sendTestRequestRequiredStringInt(ctx context.Context, request i defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31101,7 +31101,7 @@ func (c *Client) sendTestRequestRequiredStringInt16(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31174,7 +31174,7 @@ func (c *Client) sendTestRequestRequiredStringInt16Array(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31247,7 +31247,7 @@ func (c *Client) sendTestRequestRequiredStringInt16ArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31320,7 +31320,7 @@ func (c *Client) sendTestRequestRequiredStringInt16Nullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31393,7 +31393,7 @@ func (c *Client) sendTestRequestRequiredStringInt16NullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31466,7 +31466,7 @@ func (c *Client) sendTestRequestRequiredStringInt16NullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31539,7 +31539,7 @@ func (c *Client) sendTestRequestRequiredStringInt32(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31612,7 +31612,7 @@ func (c *Client) sendTestRequestRequiredStringInt32Array(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31685,7 +31685,7 @@ func (c *Client) sendTestRequestRequiredStringInt32ArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31758,7 +31758,7 @@ func (c *Client) sendTestRequestRequiredStringInt32Nullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31831,7 +31831,7 @@ func (c *Client) sendTestRequestRequiredStringInt32NullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31904,7 +31904,7 @@ func (c *Client) sendTestRequestRequiredStringInt32NullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -31977,7 +31977,7 @@ func (c *Client) sendTestRequestRequiredStringInt64(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32050,7 +32050,7 @@ func (c *Client) sendTestRequestRequiredStringInt64Array(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32123,7 +32123,7 @@ func (c *Client) sendTestRequestRequiredStringInt64ArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32196,7 +32196,7 @@ func (c *Client) sendTestRequestRequiredStringInt64Nullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32269,7 +32269,7 @@ func (c *Client) sendTestRequestRequiredStringInt64NullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32342,7 +32342,7 @@ func (c *Client) sendTestRequestRequiredStringInt64NullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32415,7 +32415,7 @@ func (c *Client) sendTestRequestRequiredStringInt8(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32488,7 +32488,7 @@ func (c *Client) sendTestRequestRequiredStringInt8Array(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32561,7 +32561,7 @@ func (c *Client) sendTestRequestRequiredStringInt8ArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32634,7 +32634,7 @@ func (c *Client) sendTestRequestRequiredStringInt8Nullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32707,7 +32707,7 @@ func (c *Client) sendTestRequestRequiredStringInt8NullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32780,7 +32780,7 @@ func (c *Client) sendTestRequestRequiredStringInt8NullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32853,7 +32853,7 @@ func (c *Client) sendTestRequestRequiredStringIntArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32926,7 +32926,7 @@ func (c *Client) sendTestRequestRequiredStringIntArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -32999,7 +32999,7 @@ func (c *Client) sendTestRequestRequiredStringIntNullable(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33072,7 +33072,7 @@ func (c *Client) sendTestRequestRequiredStringIntNullableArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33145,7 +33145,7 @@ func (c *Client) sendTestRequestRequiredStringIntNullableArrayArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33218,7 +33218,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33291,7 +33291,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4Array(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33364,7 +33364,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4ArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33437,7 +33437,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4Nullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33510,7 +33510,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4NullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33583,7 +33583,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4NullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33656,7 +33656,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33729,7 +33729,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6Array(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33802,7 +33802,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6ArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33875,7 +33875,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6Nullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -33948,7 +33948,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6NullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34021,7 +34021,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6NullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34094,7 +34094,7 @@ func (c *Client) sendTestRequestRequiredStringMAC(ctx context.Context, request n defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34167,7 +34167,7 @@ func (c *Client) sendTestRequestRequiredStringMACArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34240,7 +34240,7 @@ func (c *Client) sendTestRequestRequiredStringMACArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34313,7 +34313,7 @@ func (c *Client) sendTestRequestRequiredStringMACNullable(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34386,7 +34386,7 @@ func (c *Client) sendTestRequestRequiredStringMACNullableArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34459,7 +34459,7 @@ func (c *Client) sendTestRequestRequiredStringMACNullableArrayArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34532,7 +34532,7 @@ func (c *Client) sendTestRequestRequiredStringNullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34605,7 +34605,7 @@ func (c *Client) sendTestRequestRequiredStringNullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34678,7 +34678,7 @@ func (c *Client) sendTestRequestRequiredStringNullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34751,7 +34751,7 @@ func (c *Client) sendTestRequestRequiredStringPassword(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34824,7 +34824,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34897,7 +34897,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -34970,7 +34970,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullable(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35043,7 +35043,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullableArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35116,7 +35116,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullableArrayArray(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35189,7 +35189,7 @@ func (c *Client) sendTestRequestRequiredStringTime(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35262,7 +35262,7 @@ func (c *Client) sendTestRequestRequiredStringTimeArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35335,7 +35335,7 @@ func (c *Client) sendTestRequestRequiredStringTimeArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35408,7 +35408,7 @@ func (c *Client) sendTestRequestRequiredStringTimeNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35481,7 +35481,7 @@ func (c *Client) sendTestRequestRequiredStringTimeNullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35554,7 +35554,7 @@ func (c *Client) sendTestRequestRequiredStringTimeNullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35627,7 +35627,7 @@ func (c *Client) sendTestRequestRequiredStringURI(ctx context.Context, request u defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35700,7 +35700,7 @@ func (c *Client) sendTestRequestRequiredStringURIArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35773,7 +35773,7 @@ func (c *Client) sendTestRequestRequiredStringURIArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35846,7 +35846,7 @@ func (c *Client) sendTestRequestRequiredStringURINullable(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35919,7 +35919,7 @@ func (c *Client) sendTestRequestRequiredStringURINullableArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -35992,7 +35992,7 @@ func (c *Client) sendTestRequestRequiredStringURINullableArrayArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36065,7 +36065,7 @@ func (c *Client) sendTestRequestRequiredStringUUID(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36138,7 +36138,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36211,7 +36211,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36284,7 +36284,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36357,7 +36357,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36430,7 +36430,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36503,7 +36503,7 @@ func (c *Client) sendTestRequestRequiredStringUint(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36576,7 +36576,7 @@ func (c *Client) sendTestRequestRequiredStringUint16(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36649,7 +36649,7 @@ func (c *Client) sendTestRequestRequiredStringUint16Array(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36722,7 +36722,7 @@ func (c *Client) sendTestRequestRequiredStringUint16ArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36795,7 +36795,7 @@ func (c *Client) sendTestRequestRequiredStringUint16Nullable(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36868,7 +36868,7 @@ func (c *Client) sendTestRequestRequiredStringUint16NullableArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -36941,7 +36941,7 @@ func (c *Client) sendTestRequestRequiredStringUint16NullableArrayArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37014,7 +37014,7 @@ func (c *Client) sendTestRequestRequiredStringUint32(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37087,7 +37087,7 @@ func (c *Client) sendTestRequestRequiredStringUint32Array(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37160,7 +37160,7 @@ func (c *Client) sendTestRequestRequiredStringUint32ArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37233,7 +37233,7 @@ func (c *Client) sendTestRequestRequiredStringUint32Nullable(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37306,7 +37306,7 @@ func (c *Client) sendTestRequestRequiredStringUint32NullableArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37379,7 +37379,7 @@ func (c *Client) sendTestRequestRequiredStringUint32NullableArrayArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37452,7 +37452,7 @@ func (c *Client) sendTestRequestRequiredStringUint64(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37525,7 +37525,7 @@ func (c *Client) sendTestRequestRequiredStringUint64Array(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37598,7 +37598,7 @@ func (c *Client) sendTestRequestRequiredStringUint64ArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37671,7 +37671,7 @@ func (c *Client) sendTestRequestRequiredStringUint64Nullable(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37744,7 +37744,7 @@ func (c *Client) sendTestRequestRequiredStringUint64NullableArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37817,7 +37817,7 @@ func (c *Client) sendTestRequestRequiredStringUint64NullableArrayArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37890,7 +37890,7 @@ func (c *Client) sendTestRequestRequiredStringUint8(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -37963,7 +37963,7 @@ func (c *Client) sendTestRequestRequiredStringUint8Array(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38036,7 +38036,7 @@ func (c *Client) sendTestRequestRequiredStringUint8ArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38109,7 +38109,7 @@ func (c *Client) sendTestRequestRequiredStringUint8Nullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38182,7 +38182,7 @@ func (c *Client) sendTestRequestRequiredStringUint8NullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38255,7 +38255,7 @@ func (c *Client) sendTestRequestRequiredStringUint8NullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38328,7 +38328,7 @@ func (c *Client) sendTestRequestRequiredStringUintArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38401,7 +38401,7 @@ func (c *Client) sendTestRequestRequiredStringUintArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38474,7 +38474,7 @@ func (c *Client) sendTestRequestRequiredStringUintNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38547,7 +38547,7 @@ func (c *Client) sendTestRequestRequiredStringUintNullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38620,7 +38620,7 @@ func (c *Client) sendTestRequestRequiredStringUintNullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38693,7 +38693,7 @@ func (c *Client) sendTestRequestRequiredStringUnix(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38766,7 +38766,7 @@ func (c *Client) sendTestRequestRequiredStringUnixArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38839,7 +38839,7 @@ func (c *Client) sendTestRequestRequiredStringUnixArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38912,7 +38912,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicro(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -38985,7 +38985,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39058,7 +39058,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39131,7 +39131,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullable(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39204,7 +39204,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullableArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39277,7 +39277,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullableArrayArray(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39350,7 +39350,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilli(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39423,7 +39423,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39496,7 +39496,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39569,7 +39569,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullable(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39642,7 +39642,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullableArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39715,7 +39715,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullableArrayArray(ctx co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39788,7 +39788,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNano(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39861,7 +39861,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -39934,7 +39934,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40007,7 +40007,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullable(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40080,7 +40080,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullableArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40153,7 +40153,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullableArrayArray(ctx con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40226,7 +40226,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40299,7 +40299,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40372,7 +40372,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40445,7 +40445,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSeconds(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40518,7 +40518,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40591,7 +40591,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsArrayArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40664,7 +40664,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullable(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40737,7 +40737,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullableArray(ctx conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40810,7 +40810,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullableArrayArray(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40883,7 +40883,7 @@ func (c *Client) sendTestRequestString(ctx context.Context, request OptString) ( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -40956,7 +40956,7 @@ func (c *Client) sendTestRequestStringArray(ctx context.Context, request []strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41029,7 +41029,7 @@ func (c *Client) sendTestRequestStringArrayArray(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41102,7 +41102,7 @@ func (c *Client) sendTestRequestStringBase64(ctx context.Context, request []byte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41175,7 +41175,7 @@ func (c *Client) sendTestRequestStringBase64Array(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41248,7 +41248,7 @@ func (c *Client) sendTestRequestStringBase64ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41321,7 +41321,7 @@ func (c *Client) sendTestRequestStringBase64Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41394,7 +41394,7 @@ func (c *Client) sendTestRequestStringBase64NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41467,7 +41467,7 @@ func (c *Client) sendTestRequestStringBase64NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41540,7 +41540,7 @@ func (c *Client) sendTestRequestStringBinary(ctx context.Context, request OptStr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41613,7 +41613,7 @@ func (c *Client) sendTestRequestStringBinaryArray(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41686,7 +41686,7 @@ func (c *Client) sendTestRequestStringBinaryArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41759,7 +41759,7 @@ func (c *Client) sendTestRequestStringBinaryNullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41832,7 +41832,7 @@ func (c *Client) sendTestRequestStringBinaryNullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41905,7 +41905,7 @@ func (c *Client) sendTestRequestStringBinaryNullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -41978,7 +41978,7 @@ func (c *Client) sendTestRequestStringByte(ctx context.Context, request []byte) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42051,7 +42051,7 @@ func (c *Client) sendTestRequestStringByteArray(ctx context.Context, request [][ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42124,7 +42124,7 @@ func (c *Client) sendTestRequestStringByteArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42197,7 +42197,7 @@ func (c *Client) sendTestRequestStringByteNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42270,7 +42270,7 @@ func (c *Client) sendTestRequestStringByteNullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42343,7 +42343,7 @@ func (c *Client) sendTestRequestStringByteNullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42416,7 +42416,7 @@ func (c *Client) sendTestRequestStringDate(ctx context.Context, request OptDate) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42489,7 +42489,7 @@ func (c *Client) sendTestRequestStringDateArray(ctx context.Context, request []t defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42562,7 +42562,7 @@ func (c *Client) sendTestRequestStringDateArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42635,7 +42635,7 @@ func (c *Client) sendTestRequestStringDateNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42708,7 +42708,7 @@ func (c *Client) sendTestRequestStringDateNullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42781,7 +42781,7 @@ func (c *Client) sendTestRequestStringDateNullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42854,7 +42854,7 @@ func (c *Client) sendTestRequestStringDateTime(ctx context.Context, request OptD defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -42927,7 +42927,7 @@ func (c *Client) sendTestRequestStringDateTimeArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43000,7 +43000,7 @@ func (c *Client) sendTestRequestStringDateTimeArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43073,7 +43073,7 @@ func (c *Client) sendTestRequestStringDateTimeNullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43146,7 +43146,7 @@ func (c *Client) sendTestRequestStringDateTimeNullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43219,7 +43219,7 @@ func (c *Client) sendTestRequestStringDateTimeNullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43292,7 +43292,7 @@ func (c *Client) sendTestRequestStringDuration(ctx context.Context, request OptD defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43365,7 +43365,7 @@ func (c *Client) sendTestRequestStringDurationArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43438,7 +43438,7 @@ func (c *Client) sendTestRequestStringDurationArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43511,7 +43511,7 @@ func (c *Client) sendTestRequestStringDurationNullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43584,7 +43584,7 @@ func (c *Client) sendTestRequestStringDurationNullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43657,7 +43657,7 @@ func (c *Client) sendTestRequestStringDurationNullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43730,7 +43730,7 @@ func (c *Client) sendTestRequestStringEmail(ctx context.Context, request OptStri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43803,7 +43803,7 @@ func (c *Client) sendTestRequestStringEmailArray(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43876,7 +43876,7 @@ func (c *Client) sendTestRequestStringEmailArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -43949,7 +43949,7 @@ func (c *Client) sendTestRequestStringEmailNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44022,7 +44022,7 @@ func (c *Client) sendTestRequestStringEmailNullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44095,7 +44095,7 @@ func (c *Client) sendTestRequestStringEmailNullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44168,7 +44168,7 @@ func (c *Client) sendTestRequestStringFloat32(ctx context.Context, request OptSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44241,7 +44241,7 @@ func (c *Client) sendTestRequestStringFloat32Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44314,7 +44314,7 @@ func (c *Client) sendTestRequestStringFloat32ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44387,7 +44387,7 @@ func (c *Client) sendTestRequestStringFloat32Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44460,7 +44460,7 @@ func (c *Client) sendTestRequestStringFloat32NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44533,7 +44533,7 @@ func (c *Client) sendTestRequestStringFloat32NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44606,7 +44606,7 @@ func (c *Client) sendTestRequestStringFloat64(ctx context.Context, request OptSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44679,7 +44679,7 @@ func (c *Client) sendTestRequestStringFloat64Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44752,7 +44752,7 @@ func (c *Client) sendTestRequestStringFloat64ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44825,7 +44825,7 @@ func (c *Client) sendTestRequestStringFloat64Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44898,7 +44898,7 @@ func (c *Client) sendTestRequestStringFloat64NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -44971,7 +44971,7 @@ func (c *Client) sendTestRequestStringFloat64NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45044,7 +45044,7 @@ func (c *Client) sendTestRequestStringHostname(ctx context.Context, request OptS defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45117,7 +45117,7 @@ func (c *Client) sendTestRequestStringHostnameArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45190,7 +45190,7 @@ func (c *Client) sendTestRequestStringHostnameArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45263,7 +45263,7 @@ func (c *Client) sendTestRequestStringHostnameNullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45336,7 +45336,7 @@ func (c *Client) sendTestRequestStringHostnameNullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45409,7 +45409,7 @@ func (c *Client) sendTestRequestStringHostnameNullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45482,7 +45482,7 @@ func (c *Client) sendTestRequestStringIP(ctx context.Context, request OptIP) (re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45555,7 +45555,7 @@ func (c *Client) sendTestRequestStringIPArray(ctx context.Context, request []net defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45628,7 +45628,7 @@ func (c *Client) sendTestRequestStringIPArrayArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45701,7 +45701,7 @@ func (c *Client) sendTestRequestStringIPNullable(ctx context.Context, request Op defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45774,7 +45774,7 @@ func (c *Client) sendTestRequestStringIPNullableArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45847,7 +45847,7 @@ func (c *Client) sendTestRequestStringIPNullableArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45920,7 +45920,7 @@ func (c *Client) sendTestRequestStringInt(ctx context.Context, request OptString defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -45993,7 +45993,7 @@ func (c *Client) sendTestRequestStringInt16(ctx context.Context, request OptStri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46066,7 +46066,7 @@ func (c *Client) sendTestRequestStringInt16Array(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46139,7 +46139,7 @@ func (c *Client) sendTestRequestStringInt16ArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46212,7 +46212,7 @@ func (c *Client) sendTestRequestStringInt16Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46285,7 +46285,7 @@ func (c *Client) sendTestRequestStringInt16NullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46358,7 +46358,7 @@ func (c *Client) sendTestRequestStringInt16NullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46431,7 +46431,7 @@ func (c *Client) sendTestRequestStringInt32(ctx context.Context, request OptStri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46504,7 +46504,7 @@ func (c *Client) sendTestRequestStringInt32Array(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46577,7 +46577,7 @@ func (c *Client) sendTestRequestStringInt32ArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46650,7 +46650,7 @@ func (c *Client) sendTestRequestStringInt32Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46723,7 +46723,7 @@ func (c *Client) sendTestRequestStringInt32NullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46796,7 +46796,7 @@ func (c *Client) sendTestRequestStringInt32NullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46869,7 +46869,7 @@ func (c *Client) sendTestRequestStringInt64(ctx context.Context, request OptStri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -46942,7 +46942,7 @@ func (c *Client) sendTestRequestStringInt64Array(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47015,7 +47015,7 @@ func (c *Client) sendTestRequestStringInt64ArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47088,7 +47088,7 @@ func (c *Client) sendTestRequestStringInt64Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47161,7 +47161,7 @@ func (c *Client) sendTestRequestStringInt64NullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47234,7 +47234,7 @@ func (c *Client) sendTestRequestStringInt64NullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47307,7 +47307,7 @@ func (c *Client) sendTestRequestStringInt8(ctx context.Context, request OptStrin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47380,7 +47380,7 @@ func (c *Client) sendTestRequestStringInt8Array(ctx context.Context, request []i defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47453,7 +47453,7 @@ func (c *Client) sendTestRequestStringInt8ArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47526,7 +47526,7 @@ func (c *Client) sendTestRequestStringInt8Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47599,7 +47599,7 @@ func (c *Client) sendTestRequestStringInt8NullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47672,7 +47672,7 @@ func (c *Client) sendTestRequestStringInt8NullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47745,7 +47745,7 @@ func (c *Client) sendTestRequestStringIntArray(ctx context.Context, request []in defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47818,7 +47818,7 @@ func (c *Client) sendTestRequestStringIntArrayArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47891,7 +47891,7 @@ func (c *Client) sendTestRequestStringIntNullable(ctx context.Context, request O defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -47964,7 +47964,7 @@ func (c *Client) sendTestRequestStringIntNullableArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48037,7 +48037,7 @@ func (c *Client) sendTestRequestStringIntNullableArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48110,7 +48110,7 @@ func (c *Client) sendTestRequestStringIpv4(ctx context.Context, request OptIPv4) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48183,7 +48183,7 @@ func (c *Client) sendTestRequestStringIpv4Array(ctx context.Context, request []n defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48256,7 +48256,7 @@ func (c *Client) sendTestRequestStringIpv4ArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48329,7 +48329,7 @@ func (c *Client) sendTestRequestStringIpv4Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48402,7 +48402,7 @@ func (c *Client) sendTestRequestStringIpv4NullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48475,7 +48475,7 @@ func (c *Client) sendTestRequestStringIpv4NullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48548,7 +48548,7 @@ func (c *Client) sendTestRequestStringIpv6(ctx context.Context, request OptIPv6) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48621,7 +48621,7 @@ func (c *Client) sendTestRequestStringIpv6Array(ctx context.Context, request []n defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48694,7 +48694,7 @@ func (c *Client) sendTestRequestStringIpv6ArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48767,7 +48767,7 @@ func (c *Client) sendTestRequestStringIpv6Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48840,7 +48840,7 @@ func (c *Client) sendTestRequestStringIpv6NullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48913,7 +48913,7 @@ func (c *Client) sendTestRequestStringIpv6NullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -48986,7 +48986,7 @@ func (c *Client) sendTestRequestStringMAC(ctx context.Context, request OptHardwa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49059,7 +49059,7 @@ func (c *Client) sendTestRequestStringMACArray(ctx context.Context, request []ne defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49132,7 +49132,7 @@ func (c *Client) sendTestRequestStringMACArrayArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49205,7 +49205,7 @@ func (c *Client) sendTestRequestStringMACNullable(ctx context.Context, request O defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49278,7 +49278,7 @@ func (c *Client) sendTestRequestStringMACNullableArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49351,7 +49351,7 @@ func (c *Client) sendTestRequestStringMACNullableArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49424,7 +49424,7 @@ func (c *Client) sendTestRequestStringNullable(ctx context.Context, request OptN defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49497,7 +49497,7 @@ func (c *Client) sendTestRequestStringNullableArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49570,7 +49570,7 @@ func (c *Client) sendTestRequestStringNullableArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49643,7 +49643,7 @@ func (c *Client) sendTestRequestStringPassword(ctx context.Context, request OptS defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49716,7 +49716,7 @@ func (c *Client) sendTestRequestStringPasswordArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49789,7 +49789,7 @@ func (c *Client) sendTestRequestStringPasswordArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49862,7 +49862,7 @@ func (c *Client) sendTestRequestStringPasswordNullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -49935,7 +49935,7 @@ func (c *Client) sendTestRequestStringPasswordNullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50008,7 +50008,7 @@ func (c *Client) sendTestRequestStringPasswordNullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50081,7 +50081,7 @@ func (c *Client) sendTestRequestStringTime(ctx context.Context, request OptTime) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50154,7 +50154,7 @@ func (c *Client) sendTestRequestStringTimeArray(ctx context.Context, request []t defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50227,7 +50227,7 @@ func (c *Client) sendTestRequestStringTimeArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50300,7 +50300,7 @@ func (c *Client) sendTestRequestStringTimeNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50373,7 +50373,7 @@ func (c *Client) sendTestRequestStringTimeNullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50446,7 +50446,7 @@ func (c *Client) sendTestRequestStringTimeNullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50519,7 +50519,7 @@ func (c *Client) sendTestRequestStringURI(ctx context.Context, request OptURI) ( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50592,7 +50592,7 @@ func (c *Client) sendTestRequestStringURIArray(ctx context.Context, request []ur defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50665,7 +50665,7 @@ func (c *Client) sendTestRequestStringURIArrayArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50738,7 +50738,7 @@ func (c *Client) sendTestRequestStringURINullable(ctx context.Context, request O defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50811,7 +50811,7 @@ func (c *Client) sendTestRequestStringURINullableArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50884,7 +50884,7 @@ func (c *Client) sendTestRequestStringURINullableArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -50957,7 +50957,7 @@ func (c *Client) sendTestRequestStringUUID(ctx context.Context, request OptUUID) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51030,7 +51030,7 @@ func (c *Client) sendTestRequestStringUUIDArray(ctx context.Context, request []u defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51103,7 +51103,7 @@ func (c *Client) sendTestRequestStringUUIDArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51176,7 +51176,7 @@ func (c *Client) sendTestRequestStringUUIDNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51249,7 +51249,7 @@ func (c *Client) sendTestRequestStringUUIDNullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51322,7 +51322,7 @@ func (c *Client) sendTestRequestStringUUIDNullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51395,7 +51395,7 @@ func (c *Client) sendTestRequestStringUint(ctx context.Context, request OptStrin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51468,7 +51468,7 @@ func (c *Client) sendTestRequestStringUint16(ctx context.Context, request OptStr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51541,7 +51541,7 @@ func (c *Client) sendTestRequestStringUint16Array(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51614,7 +51614,7 @@ func (c *Client) sendTestRequestStringUint16ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51687,7 +51687,7 @@ func (c *Client) sendTestRequestStringUint16Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51760,7 +51760,7 @@ func (c *Client) sendTestRequestStringUint16NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51833,7 +51833,7 @@ func (c *Client) sendTestRequestStringUint16NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51906,7 +51906,7 @@ func (c *Client) sendTestRequestStringUint32(ctx context.Context, request OptStr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -51979,7 +51979,7 @@ func (c *Client) sendTestRequestStringUint32Array(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52052,7 +52052,7 @@ func (c *Client) sendTestRequestStringUint32ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52125,7 +52125,7 @@ func (c *Client) sendTestRequestStringUint32Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52198,7 +52198,7 @@ func (c *Client) sendTestRequestStringUint32NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52271,7 +52271,7 @@ func (c *Client) sendTestRequestStringUint32NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52344,7 +52344,7 @@ func (c *Client) sendTestRequestStringUint64(ctx context.Context, request OptStr defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52417,7 +52417,7 @@ func (c *Client) sendTestRequestStringUint64Array(ctx context.Context, request [ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52490,7 +52490,7 @@ func (c *Client) sendTestRequestStringUint64ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52563,7 +52563,7 @@ func (c *Client) sendTestRequestStringUint64Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52636,7 +52636,7 @@ func (c *Client) sendTestRequestStringUint64NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52709,7 +52709,7 @@ func (c *Client) sendTestRequestStringUint64NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52782,7 +52782,7 @@ func (c *Client) sendTestRequestStringUint8(ctx context.Context, request OptStri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52855,7 +52855,7 @@ func (c *Client) sendTestRequestStringUint8Array(ctx context.Context, request [] defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -52928,7 +52928,7 @@ func (c *Client) sendTestRequestStringUint8ArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53001,7 +53001,7 @@ func (c *Client) sendTestRequestStringUint8Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53074,7 +53074,7 @@ func (c *Client) sendTestRequestStringUint8NullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53147,7 +53147,7 @@ func (c *Client) sendTestRequestStringUint8NullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53220,7 +53220,7 @@ func (c *Client) sendTestRequestStringUintArray(ctx context.Context, request []u defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53293,7 +53293,7 @@ func (c *Client) sendTestRequestStringUintArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53366,7 +53366,7 @@ func (c *Client) sendTestRequestStringUintNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53439,7 +53439,7 @@ func (c *Client) sendTestRequestStringUintNullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53512,7 +53512,7 @@ func (c *Client) sendTestRequestStringUintNullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53585,7 +53585,7 @@ func (c *Client) sendTestRequestStringUnix(ctx context.Context, request OptStrin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53658,7 +53658,7 @@ func (c *Client) sendTestRequestStringUnixArray(ctx context.Context, request []t defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53731,7 +53731,7 @@ func (c *Client) sendTestRequestStringUnixArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53804,7 +53804,7 @@ func (c *Client) sendTestRequestStringUnixMicro(ctx context.Context, request Opt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53877,7 +53877,7 @@ func (c *Client) sendTestRequestStringUnixMicroArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -53950,7 +53950,7 @@ func (c *Client) sendTestRequestStringUnixMicroArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54023,7 +54023,7 @@ func (c *Client) sendTestRequestStringUnixMicroNullable(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54096,7 +54096,7 @@ func (c *Client) sendTestRequestStringUnixMicroNullableArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54169,7 +54169,7 @@ func (c *Client) sendTestRequestStringUnixMicroNullableArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54242,7 +54242,7 @@ func (c *Client) sendTestRequestStringUnixMilli(ctx context.Context, request Opt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54315,7 +54315,7 @@ func (c *Client) sendTestRequestStringUnixMilliArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54388,7 +54388,7 @@ func (c *Client) sendTestRequestStringUnixMilliArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54461,7 +54461,7 @@ func (c *Client) sendTestRequestStringUnixMilliNullable(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54534,7 +54534,7 @@ func (c *Client) sendTestRequestStringUnixMilliNullableArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54607,7 +54607,7 @@ func (c *Client) sendTestRequestStringUnixMilliNullableArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54680,7 +54680,7 @@ func (c *Client) sendTestRequestStringUnixNano(ctx context.Context, request OptS defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54753,7 +54753,7 @@ func (c *Client) sendTestRequestStringUnixNanoArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54826,7 +54826,7 @@ func (c *Client) sendTestRequestStringUnixNanoArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54899,7 +54899,7 @@ func (c *Client) sendTestRequestStringUnixNanoNullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -54972,7 +54972,7 @@ func (c *Client) sendTestRequestStringUnixNanoNullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55045,7 +55045,7 @@ func (c *Client) sendTestRequestStringUnixNanoNullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55118,7 +55118,7 @@ func (c *Client) sendTestRequestStringUnixNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55191,7 +55191,7 @@ func (c *Client) sendTestRequestStringUnixNullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55264,7 +55264,7 @@ func (c *Client) sendTestRequestStringUnixNullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55337,7 +55337,7 @@ func (c *Client) sendTestRequestStringUnixSeconds(ctx context.Context, request O defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55410,7 +55410,7 @@ func (c *Client) sendTestRequestStringUnixSecondsArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55483,7 +55483,7 @@ func (c *Client) sendTestRequestStringUnixSecondsArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55556,7 +55556,7 @@ func (c *Client) sendTestRequestStringUnixSecondsNullable(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55629,7 +55629,7 @@ func (c *Client) sendTestRequestStringUnixSecondsNullableArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55702,7 +55702,7 @@ func (c *Client) sendTestRequestStringUnixSecondsNullableArrayArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55775,7 +55775,7 @@ func (c *Client) sendTestResponseAny(ctx context.Context, request string) (res j defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55848,7 +55848,7 @@ func (c *Client) sendTestResponseBoolean(ctx context.Context, request string) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55921,7 +55921,7 @@ func (c *Client) sendTestResponseBooleanArray(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -55994,7 +55994,7 @@ func (c *Client) sendTestResponseBooleanArrayArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56067,7 +56067,7 @@ func (c *Client) sendTestResponseBooleanNullable(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56140,7 +56140,7 @@ func (c *Client) sendTestResponseBooleanNullableArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56213,7 +56213,7 @@ func (c *Client) sendTestResponseBooleanNullableArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56286,7 +56286,7 @@ func (c *Client) sendTestResponseEmptyStruct(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56359,7 +56359,7 @@ func (c *Client) sendTestResponseFormatTest(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56432,7 +56432,7 @@ func (c *Client) sendTestResponseInteger(ctx context.Context, request string) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56505,7 +56505,7 @@ func (c *Client) sendTestResponseIntegerArray(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56578,7 +56578,7 @@ func (c *Client) sendTestResponseIntegerArrayArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56651,7 +56651,7 @@ func (c *Client) sendTestResponseIntegerInt16(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56724,7 +56724,7 @@ func (c *Client) sendTestResponseIntegerInt16Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56797,7 +56797,7 @@ func (c *Client) sendTestResponseIntegerInt16ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56870,7 +56870,7 @@ func (c *Client) sendTestResponseIntegerInt16Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -56943,7 +56943,7 @@ func (c *Client) sendTestResponseIntegerInt16NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57016,7 +57016,7 @@ func (c *Client) sendTestResponseIntegerInt16NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57089,7 +57089,7 @@ func (c *Client) sendTestResponseIntegerInt32(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57162,7 +57162,7 @@ func (c *Client) sendTestResponseIntegerInt32Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57235,7 +57235,7 @@ func (c *Client) sendTestResponseIntegerInt32ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57308,7 +57308,7 @@ func (c *Client) sendTestResponseIntegerInt32Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57381,7 +57381,7 @@ func (c *Client) sendTestResponseIntegerInt32NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57454,7 +57454,7 @@ func (c *Client) sendTestResponseIntegerInt32NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57527,7 +57527,7 @@ func (c *Client) sendTestResponseIntegerInt64(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57600,7 +57600,7 @@ func (c *Client) sendTestResponseIntegerInt64Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57673,7 +57673,7 @@ func (c *Client) sendTestResponseIntegerInt64ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57746,7 +57746,7 @@ func (c *Client) sendTestResponseIntegerInt64Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57819,7 +57819,7 @@ func (c *Client) sendTestResponseIntegerInt64NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57892,7 +57892,7 @@ func (c *Client) sendTestResponseIntegerInt64NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -57965,7 +57965,7 @@ func (c *Client) sendTestResponseIntegerInt8(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58038,7 +58038,7 @@ func (c *Client) sendTestResponseIntegerInt8Array(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58111,7 +58111,7 @@ func (c *Client) sendTestResponseIntegerInt8ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58184,7 +58184,7 @@ func (c *Client) sendTestResponseIntegerInt8Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58257,7 +58257,7 @@ func (c *Client) sendTestResponseIntegerInt8NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58330,7 +58330,7 @@ func (c *Client) sendTestResponseIntegerInt8NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58403,7 +58403,7 @@ func (c *Client) sendTestResponseIntegerNullable(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58476,7 +58476,7 @@ func (c *Client) sendTestResponseIntegerNullableArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58549,7 +58549,7 @@ func (c *Client) sendTestResponseIntegerNullableArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58622,7 +58622,7 @@ func (c *Client) sendTestResponseIntegerUint(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58695,7 +58695,7 @@ func (c *Client) sendTestResponseIntegerUint16(ctx context.Context, request stri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58768,7 +58768,7 @@ func (c *Client) sendTestResponseIntegerUint16Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58841,7 +58841,7 @@ func (c *Client) sendTestResponseIntegerUint16ArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58914,7 +58914,7 @@ func (c *Client) sendTestResponseIntegerUint16Nullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -58987,7 +58987,7 @@ func (c *Client) sendTestResponseIntegerUint16NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59060,7 +59060,7 @@ func (c *Client) sendTestResponseIntegerUint16NullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59133,7 +59133,7 @@ func (c *Client) sendTestResponseIntegerUint32(ctx context.Context, request stri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59206,7 +59206,7 @@ func (c *Client) sendTestResponseIntegerUint32Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59279,7 +59279,7 @@ func (c *Client) sendTestResponseIntegerUint32ArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59352,7 +59352,7 @@ func (c *Client) sendTestResponseIntegerUint32Nullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59425,7 +59425,7 @@ func (c *Client) sendTestResponseIntegerUint32NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59498,7 +59498,7 @@ func (c *Client) sendTestResponseIntegerUint32NullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59571,7 +59571,7 @@ func (c *Client) sendTestResponseIntegerUint64(ctx context.Context, request stri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59644,7 +59644,7 @@ func (c *Client) sendTestResponseIntegerUint64Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59717,7 +59717,7 @@ func (c *Client) sendTestResponseIntegerUint64ArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59790,7 +59790,7 @@ func (c *Client) sendTestResponseIntegerUint64Nullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59863,7 +59863,7 @@ func (c *Client) sendTestResponseIntegerUint64NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -59936,7 +59936,7 @@ func (c *Client) sendTestResponseIntegerUint64NullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60009,7 +60009,7 @@ func (c *Client) sendTestResponseIntegerUint8(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60082,7 +60082,7 @@ func (c *Client) sendTestResponseIntegerUint8Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60155,7 +60155,7 @@ func (c *Client) sendTestResponseIntegerUint8ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60228,7 +60228,7 @@ func (c *Client) sendTestResponseIntegerUint8Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60301,7 +60301,7 @@ func (c *Client) sendTestResponseIntegerUint8NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60374,7 +60374,7 @@ func (c *Client) sendTestResponseIntegerUint8NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60447,7 +60447,7 @@ func (c *Client) sendTestResponseIntegerUintArray(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60520,7 +60520,7 @@ func (c *Client) sendTestResponseIntegerUintArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60593,7 +60593,7 @@ func (c *Client) sendTestResponseIntegerUintNullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60666,7 +60666,7 @@ func (c *Client) sendTestResponseIntegerUintNullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60739,7 +60739,7 @@ func (c *Client) sendTestResponseIntegerUintNullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60812,7 +60812,7 @@ func (c *Client) sendTestResponseIntegerUnix(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60885,7 +60885,7 @@ func (c *Client) sendTestResponseIntegerUnixArray(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -60958,7 +60958,7 @@ func (c *Client) sendTestResponseIntegerUnixArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61031,7 +61031,7 @@ func (c *Client) sendTestResponseIntegerUnixMicro(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61104,7 +61104,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61177,7 +61177,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61250,7 +61250,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullable(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61323,7 +61323,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullableArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61396,7 +61396,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullableArrayArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61469,7 +61469,7 @@ func (c *Client) sendTestResponseIntegerUnixMilli(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61542,7 +61542,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61615,7 +61615,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61688,7 +61688,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullable(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61761,7 +61761,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullableArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61834,7 +61834,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullableArrayArray(ctx context. defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61907,7 +61907,7 @@ func (c *Client) sendTestResponseIntegerUnixNano(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -61980,7 +61980,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62053,7 +62053,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62126,7 +62126,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullable(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62199,7 +62199,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullableArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62272,7 +62272,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullableArrayArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62345,7 +62345,7 @@ func (c *Client) sendTestResponseIntegerUnixNullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62418,7 +62418,7 @@ func (c *Client) sendTestResponseIntegerUnixNullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62491,7 +62491,7 @@ func (c *Client) sendTestResponseIntegerUnixNullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62564,7 +62564,7 @@ func (c *Client) sendTestResponseIntegerUnixSeconds(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62637,7 +62637,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62710,7 +62710,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62783,7 +62783,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62856,7 +62856,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullableArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -62929,7 +62929,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullableArrayArray(ctx contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63002,7 +63002,7 @@ func (c *Client) sendTestResponseNull(ctx context.Context, request string) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63075,7 +63075,7 @@ func (c *Client) sendTestResponseNullArray(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63148,7 +63148,7 @@ func (c *Client) sendTestResponseNullArrayArray(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63221,7 +63221,7 @@ func (c *Client) sendTestResponseNullNullable(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63294,7 +63294,7 @@ func (c *Client) sendTestResponseNullNullableArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63367,7 +63367,7 @@ func (c *Client) sendTestResponseNullNullableArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63440,7 +63440,7 @@ func (c *Client) sendTestResponseNumber(ctx context.Context, request string) (re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63513,7 +63513,7 @@ func (c *Client) sendTestResponseNumberArray(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63586,7 +63586,7 @@ func (c *Client) sendTestResponseNumberArrayArray(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63659,7 +63659,7 @@ func (c *Client) sendTestResponseNumberDouble(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63732,7 +63732,7 @@ func (c *Client) sendTestResponseNumberDoubleArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63805,7 +63805,7 @@ func (c *Client) sendTestResponseNumberDoubleArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63878,7 +63878,7 @@ func (c *Client) sendTestResponseNumberDoubleNullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -63951,7 +63951,7 @@ func (c *Client) sendTestResponseNumberDoubleNullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64024,7 +64024,7 @@ func (c *Client) sendTestResponseNumberDoubleNullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64097,7 +64097,7 @@ func (c *Client) sendTestResponseNumberFloat(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64170,7 +64170,7 @@ func (c *Client) sendTestResponseNumberFloatArray(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64243,7 +64243,7 @@ func (c *Client) sendTestResponseNumberFloatArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64316,7 +64316,7 @@ func (c *Client) sendTestResponseNumberFloatNullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64389,7 +64389,7 @@ func (c *Client) sendTestResponseNumberFloatNullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64462,7 +64462,7 @@ func (c *Client) sendTestResponseNumberFloatNullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64535,7 +64535,7 @@ func (c *Client) sendTestResponseNumberInt32(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64608,7 +64608,7 @@ func (c *Client) sendTestResponseNumberInt32Array(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64681,7 +64681,7 @@ func (c *Client) sendTestResponseNumberInt32ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64754,7 +64754,7 @@ func (c *Client) sendTestResponseNumberInt32Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64827,7 +64827,7 @@ func (c *Client) sendTestResponseNumberInt32NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64900,7 +64900,7 @@ func (c *Client) sendTestResponseNumberInt32NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -64973,7 +64973,7 @@ func (c *Client) sendTestResponseNumberInt64(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65046,7 +65046,7 @@ func (c *Client) sendTestResponseNumberInt64Array(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65119,7 +65119,7 @@ func (c *Client) sendTestResponseNumberInt64ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65192,7 +65192,7 @@ func (c *Client) sendTestResponseNumberInt64Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65265,7 +65265,7 @@ func (c *Client) sendTestResponseNumberInt64NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65338,7 +65338,7 @@ func (c *Client) sendTestResponseNumberInt64NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65411,7 +65411,7 @@ func (c *Client) sendTestResponseNumberNullable(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65484,7 +65484,7 @@ func (c *Client) sendTestResponseNumberNullableArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65557,7 +65557,7 @@ func (c *Client) sendTestResponseNumberNullableArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65630,7 +65630,7 @@ func (c *Client) sendTestResponseString(ctx context.Context, request string) (re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65703,7 +65703,7 @@ func (c *Client) sendTestResponseStringArray(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65776,7 +65776,7 @@ func (c *Client) sendTestResponseStringArrayArray(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65849,7 +65849,7 @@ func (c *Client) sendTestResponseStringBase64(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65922,7 +65922,7 @@ func (c *Client) sendTestResponseStringBase64Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -65995,7 +65995,7 @@ func (c *Client) sendTestResponseStringBase64ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66068,7 +66068,7 @@ func (c *Client) sendTestResponseStringBase64Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66141,7 +66141,7 @@ func (c *Client) sendTestResponseStringBase64NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66214,7 +66214,7 @@ func (c *Client) sendTestResponseStringBase64NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66287,7 +66287,7 @@ func (c *Client) sendTestResponseStringBinary(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66360,7 +66360,7 @@ func (c *Client) sendTestResponseStringBinaryArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66433,7 +66433,7 @@ func (c *Client) sendTestResponseStringBinaryArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66506,7 +66506,7 @@ func (c *Client) sendTestResponseStringBinaryNullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66579,7 +66579,7 @@ func (c *Client) sendTestResponseStringBinaryNullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66652,7 +66652,7 @@ func (c *Client) sendTestResponseStringBinaryNullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66725,7 +66725,7 @@ func (c *Client) sendTestResponseStringByte(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66798,7 +66798,7 @@ func (c *Client) sendTestResponseStringByteArray(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66871,7 +66871,7 @@ func (c *Client) sendTestResponseStringByteArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -66944,7 +66944,7 @@ func (c *Client) sendTestResponseStringByteNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67017,7 +67017,7 @@ func (c *Client) sendTestResponseStringByteNullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67090,7 +67090,7 @@ func (c *Client) sendTestResponseStringByteNullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67163,7 +67163,7 @@ func (c *Client) sendTestResponseStringDate(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67236,7 +67236,7 @@ func (c *Client) sendTestResponseStringDateArray(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67309,7 +67309,7 @@ func (c *Client) sendTestResponseStringDateArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67382,7 +67382,7 @@ func (c *Client) sendTestResponseStringDateNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67455,7 +67455,7 @@ func (c *Client) sendTestResponseStringDateNullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67528,7 +67528,7 @@ func (c *Client) sendTestResponseStringDateNullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67601,7 +67601,7 @@ func (c *Client) sendTestResponseStringDateTime(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67674,7 +67674,7 @@ func (c *Client) sendTestResponseStringDateTimeArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67747,7 +67747,7 @@ func (c *Client) sendTestResponseStringDateTimeArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67820,7 +67820,7 @@ func (c *Client) sendTestResponseStringDateTimeNullable(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67893,7 +67893,7 @@ func (c *Client) sendTestResponseStringDateTimeNullableArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -67966,7 +67966,7 @@ func (c *Client) sendTestResponseStringDateTimeNullableArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68039,7 +68039,7 @@ func (c *Client) sendTestResponseStringDuration(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68112,7 +68112,7 @@ func (c *Client) sendTestResponseStringDurationArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68185,7 +68185,7 @@ func (c *Client) sendTestResponseStringDurationArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68258,7 +68258,7 @@ func (c *Client) sendTestResponseStringDurationNullable(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68331,7 +68331,7 @@ func (c *Client) sendTestResponseStringDurationNullableArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68404,7 +68404,7 @@ func (c *Client) sendTestResponseStringDurationNullableArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68477,7 +68477,7 @@ func (c *Client) sendTestResponseStringEmail(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68550,7 +68550,7 @@ func (c *Client) sendTestResponseStringEmailArray(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68623,7 +68623,7 @@ func (c *Client) sendTestResponseStringEmailArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68696,7 +68696,7 @@ func (c *Client) sendTestResponseStringEmailNullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68769,7 +68769,7 @@ func (c *Client) sendTestResponseStringEmailNullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68842,7 +68842,7 @@ func (c *Client) sendTestResponseStringEmailNullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68915,7 +68915,7 @@ func (c *Client) sendTestResponseStringFloat32(ctx context.Context, request stri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -68988,7 +68988,7 @@ func (c *Client) sendTestResponseStringFloat32Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69061,7 +69061,7 @@ func (c *Client) sendTestResponseStringFloat32ArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69134,7 +69134,7 @@ func (c *Client) sendTestResponseStringFloat32Nullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69207,7 +69207,7 @@ func (c *Client) sendTestResponseStringFloat32NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69280,7 +69280,7 @@ func (c *Client) sendTestResponseStringFloat32NullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69353,7 +69353,7 @@ func (c *Client) sendTestResponseStringFloat64(ctx context.Context, request stri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69426,7 +69426,7 @@ func (c *Client) sendTestResponseStringFloat64Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69499,7 +69499,7 @@ func (c *Client) sendTestResponseStringFloat64ArrayArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69572,7 +69572,7 @@ func (c *Client) sendTestResponseStringFloat64Nullable(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69645,7 +69645,7 @@ func (c *Client) sendTestResponseStringFloat64NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69718,7 +69718,7 @@ func (c *Client) sendTestResponseStringFloat64NullableArrayArray(ctx context.Con defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69791,7 +69791,7 @@ func (c *Client) sendTestResponseStringHostname(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69864,7 +69864,7 @@ func (c *Client) sendTestResponseStringHostnameArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -69937,7 +69937,7 @@ func (c *Client) sendTestResponseStringHostnameArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70010,7 +70010,7 @@ func (c *Client) sendTestResponseStringHostnameNullable(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70083,7 +70083,7 @@ func (c *Client) sendTestResponseStringHostnameNullableArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70156,7 +70156,7 @@ func (c *Client) sendTestResponseStringHostnameNullableArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70229,7 +70229,7 @@ func (c *Client) sendTestResponseStringIP(ctx context.Context, request string) ( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70302,7 +70302,7 @@ func (c *Client) sendTestResponseStringIPArray(ctx context.Context, request stri defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70375,7 +70375,7 @@ func (c *Client) sendTestResponseStringIPArrayArray(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70448,7 +70448,7 @@ func (c *Client) sendTestResponseStringIPNullable(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70521,7 +70521,7 @@ func (c *Client) sendTestResponseStringIPNullableArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70594,7 +70594,7 @@ func (c *Client) sendTestResponseStringIPNullableArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70667,7 +70667,7 @@ func (c *Client) sendTestResponseStringInt(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70740,7 +70740,7 @@ func (c *Client) sendTestResponseStringInt16(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70813,7 +70813,7 @@ func (c *Client) sendTestResponseStringInt16Array(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70886,7 +70886,7 @@ func (c *Client) sendTestResponseStringInt16ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -70959,7 +70959,7 @@ func (c *Client) sendTestResponseStringInt16Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71032,7 +71032,7 @@ func (c *Client) sendTestResponseStringInt16NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71105,7 +71105,7 @@ func (c *Client) sendTestResponseStringInt16NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71178,7 +71178,7 @@ func (c *Client) sendTestResponseStringInt32(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71251,7 +71251,7 @@ func (c *Client) sendTestResponseStringInt32Array(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71324,7 +71324,7 @@ func (c *Client) sendTestResponseStringInt32ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71397,7 +71397,7 @@ func (c *Client) sendTestResponseStringInt32Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71470,7 +71470,7 @@ func (c *Client) sendTestResponseStringInt32NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71543,7 +71543,7 @@ func (c *Client) sendTestResponseStringInt32NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71616,7 +71616,7 @@ func (c *Client) sendTestResponseStringInt64(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71689,7 +71689,7 @@ func (c *Client) sendTestResponseStringInt64Array(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71762,7 +71762,7 @@ func (c *Client) sendTestResponseStringInt64ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71835,7 +71835,7 @@ func (c *Client) sendTestResponseStringInt64Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71908,7 +71908,7 @@ func (c *Client) sendTestResponseStringInt64NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -71981,7 +71981,7 @@ func (c *Client) sendTestResponseStringInt64NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72054,7 +72054,7 @@ func (c *Client) sendTestResponseStringInt8(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72127,7 +72127,7 @@ func (c *Client) sendTestResponseStringInt8Array(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72200,7 +72200,7 @@ func (c *Client) sendTestResponseStringInt8ArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72273,7 +72273,7 @@ func (c *Client) sendTestResponseStringInt8Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72346,7 +72346,7 @@ func (c *Client) sendTestResponseStringInt8NullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72419,7 +72419,7 @@ func (c *Client) sendTestResponseStringInt8NullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72492,7 +72492,7 @@ func (c *Client) sendTestResponseStringIntArray(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72565,7 +72565,7 @@ func (c *Client) sendTestResponseStringIntArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72638,7 +72638,7 @@ func (c *Client) sendTestResponseStringIntNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72711,7 +72711,7 @@ func (c *Client) sendTestResponseStringIntNullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72784,7 +72784,7 @@ func (c *Client) sendTestResponseStringIntNullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72857,7 +72857,7 @@ func (c *Client) sendTestResponseStringIpv4(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -72930,7 +72930,7 @@ func (c *Client) sendTestResponseStringIpv4Array(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73003,7 +73003,7 @@ func (c *Client) sendTestResponseStringIpv4ArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73076,7 +73076,7 @@ func (c *Client) sendTestResponseStringIpv4Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73149,7 +73149,7 @@ func (c *Client) sendTestResponseStringIpv4NullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73222,7 +73222,7 @@ func (c *Client) sendTestResponseStringIpv4NullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73295,7 +73295,7 @@ func (c *Client) sendTestResponseStringIpv6(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73368,7 +73368,7 @@ func (c *Client) sendTestResponseStringIpv6Array(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73441,7 +73441,7 @@ func (c *Client) sendTestResponseStringIpv6ArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73514,7 +73514,7 @@ func (c *Client) sendTestResponseStringIpv6Nullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73587,7 +73587,7 @@ func (c *Client) sendTestResponseStringIpv6NullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73660,7 +73660,7 @@ func (c *Client) sendTestResponseStringIpv6NullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73733,7 +73733,7 @@ func (c *Client) sendTestResponseStringMAC(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73806,7 +73806,7 @@ func (c *Client) sendTestResponseStringMACArray(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73879,7 +73879,7 @@ func (c *Client) sendTestResponseStringMACArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -73952,7 +73952,7 @@ func (c *Client) sendTestResponseStringMACNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74025,7 +74025,7 @@ func (c *Client) sendTestResponseStringMACNullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74098,7 +74098,7 @@ func (c *Client) sendTestResponseStringMACNullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74171,7 +74171,7 @@ func (c *Client) sendTestResponseStringNullable(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74244,7 +74244,7 @@ func (c *Client) sendTestResponseStringNullableArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74317,7 +74317,7 @@ func (c *Client) sendTestResponseStringNullableArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74390,7 +74390,7 @@ func (c *Client) sendTestResponseStringPassword(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74463,7 +74463,7 @@ func (c *Client) sendTestResponseStringPasswordArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74536,7 +74536,7 @@ func (c *Client) sendTestResponseStringPasswordArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74609,7 +74609,7 @@ func (c *Client) sendTestResponseStringPasswordNullable(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74682,7 +74682,7 @@ func (c *Client) sendTestResponseStringPasswordNullableArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74755,7 +74755,7 @@ func (c *Client) sendTestResponseStringPasswordNullableArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74828,7 +74828,7 @@ func (c *Client) sendTestResponseStringTime(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74901,7 +74901,7 @@ func (c *Client) sendTestResponseStringTimeArray(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -74974,7 +74974,7 @@ func (c *Client) sendTestResponseStringTimeArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75047,7 +75047,7 @@ func (c *Client) sendTestResponseStringTimeNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75120,7 +75120,7 @@ func (c *Client) sendTestResponseStringTimeNullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75193,7 +75193,7 @@ func (c *Client) sendTestResponseStringTimeNullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75266,7 +75266,7 @@ func (c *Client) sendTestResponseStringURI(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75339,7 +75339,7 @@ func (c *Client) sendTestResponseStringURIArray(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75412,7 +75412,7 @@ func (c *Client) sendTestResponseStringURIArrayArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75485,7 +75485,7 @@ func (c *Client) sendTestResponseStringURINullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75558,7 +75558,7 @@ func (c *Client) sendTestResponseStringURINullableArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75631,7 +75631,7 @@ func (c *Client) sendTestResponseStringURINullableArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75704,7 +75704,7 @@ func (c *Client) sendTestResponseStringUUID(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75777,7 +75777,7 @@ func (c *Client) sendTestResponseStringUUIDArray(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75850,7 +75850,7 @@ func (c *Client) sendTestResponseStringUUIDArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75923,7 +75923,7 @@ func (c *Client) sendTestResponseStringUUIDNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -75996,7 +75996,7 @@ func (c *Client) sendTestResponseStringUUIDNullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76069,7 +76069,7 @@ func (c *Client) sendTestResponseStringUUIDNullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76142,7 +76142,7 @@ func (c *Client) sendTestResponseStringUint(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76215,7 +76215,7 @@ func (c *Client) sendTestResponseStringUint16(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76288,7 +76288,7 @@ func (c *Client) sendTestResponseStringUint16Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76361,7 +76361,7 @@ func (c *Client) sendTestResponseStringUint16ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76434,7 +76434,7 @@ func (c *Client) sendTestResponseStringUint16Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76507,7 +76507,7 @@ func (c *Client) sendTestResponseStringUint16NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76580,7 +76580,7 @@ func (c *Client) sendTestResponseStringUint16NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76653,7 +76653,7 @@ func (c *Client) sendTestResponseStringUint32(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76726,7 +76726,7 @@ func (c *Client) sendTestResponseStringUint32Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76799,7 +76799,7 @@ func (c *Client) sendTestResponseStringUint32ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76872,7 +76872,7 @@ func (c *Client) sendTestResponseStringUint32Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -76945,7 +76945,7 @@ func (c *Client) sendTestResponseStringUint32NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77018,7 +77018,7 @@ func (c *Client) sendTestResponseStringUint32NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77091,7 +77091,7 @@ func (c *Client) sendTestResponseStringUint64(ctx context.Context, request strin defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77164,7 +77164,7 @@ func (c *Client) sendTestResponseStringUint64Array(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77237,7 +77237,7 @@ func (c *Client) sendTestResponseStringUint64ArrayArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77310,7 +77310,7 @@ func (c *Client) sendTestResponseStringUint64Nullable(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77383,7 +77383,7 @@ func (c *Client) sendTestResponseStringUint64NullableArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77456,7 +77456,7 @@ func (c *Client) sendTestResponseStringUint64NullableArrayArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77529,7 +77529,7 @@ func (c *Client) sendTestResponseStringUint8(ctx context.Context, request string defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77602,7 +77602,7 @@ func (c *Client) sendTestResponseStringUint8Array(ctx context.Context, request s defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77675,7 +77675,7 @@ func (c *Client) sendTestResponseStringUint8ArrayArray(ctx context.Context, requ defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77748,7 +77748,7 @@ func (c *Client) sendTestResponseStringUint8Nullable(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77821,7 +77821,7 @@ func (c *Client) sendTestResponseStringUint8NullableArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77894,7 +77894,7 @@ func (c *Client) sendTestResponseStringUint8NullableArrayArray(ctx context.Conte defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -77967,7 +77967,7 @@ func (c *Client) sendTestResponseStringUintArray(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78040,7 +78040,7 @@ func (c *Client) sendTestResponseStringUintArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78113,7 +78113,7 @@ func (c *Client) sendTestResponseStringUintNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78186,7 +78186,7 @@ func (c *Client) sendTestResponseStringUintNullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78259,7 +78259,7 @@ func (c *Client) sendTestResponseStringUintNullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78332,7 +78332,7 @@ func (c *Client) sendTestResponseStringUnix(ctx context.Context, request string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78405,7 +78405,7 @@ func (c *Client) sendTestResponseStringUnixArray(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78478,7 +78478,7 @@ func (c *Client) sendTestResponseStringUnixArrayArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78551,7 +78551,7 @@ func (c *Client) sendTestResponseStringUnixMicro(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78624,7 +78624,7 @@ func (c *Client) sendTestResponseStringUnixMicroArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78697,7 +78697,7 @@ func (c *Client) sendTestResponseStringUnixMicroArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78770,7 +78770,7 @@ func (c *Client) sendTestResponseStringUnixMicroNullable(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78843,7 +78843,7 @@ func (c *Client) sendTestResponseStringUnixMicroNullableArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78916,7 +78916,7 @@ func (c *Client) sendTestResponseStringUnixMicroNullableArrayArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -78989,7 +78989,7 @@ func (c *Client) sendTestResponseStringUnixMilli(ctx context.Context, request st defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79062,7 +79062,7 @@ func (c *Client) sendTestResponseStringUnixMilliArray(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79135,7 +79135,7 @@ func (c *Client) sendTestResponseStringUnixMilliArrayArray(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79208,7 +79208,7 @@ func (c *Client) sendTestResponseStringUnixMilliNullable(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79281,7 +79281,7 @@ func (c *Client) sendTestResponseStringUnixMilliNullableArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79354,7 +79354,7 @@ func (c *Client) sendTestResponseStringUnixMilliNullableArrayArray(ctx context.C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79427,7 +79427,7 @@ func (c *Client) sendTestResponseStringUnixNano(ctx context.Context, request str defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79500,7 +79500,7 @@ func (c *Client) sendTestResponseStringUnixNanoArray(ctx context.Context, reques defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79573,7 +79573,7 @@ func (c *Client) sendTestResponseStringUnixNanoArrayArray(ctx context.Context, r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79646,7 +79646,7 @@ func (c *Client) sendTestResponseStringUnixNanoNullable(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79719,7 +79719,7 @@ func (c *Client) sendTestResponseStringUnixNanoNullableArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79792,7 +79792,7 @@ func (c *Client) sendTestResponseStringUnixNanoNullableArrayArray(ctx context.Co defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79865,7 +79865,7 @@ func (c *Client) sendTestResponseStringUnixNullable(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -79938,7 +79938,7 @@ func (c *Client) sendTestResponseStringUnixNullableArray(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80011,7 +80011,7 @@ func (c *Client) sendTestResponseStringUnixNullableArrayArray(ctx context.Contex defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80084,7 +80084,7 @@ func (c *Client) sendTestResponseStringUnixSeconds(ctx context.Context, request defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80157,7 +80157,7 @@ func (c *Client) sendTestResponseStringUnixSecondsArray(ctx context.Context, req defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80230,7 +80230,7 @@ func (c *Client) sendTestResponseStringUnixSecondsArrayArray(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80303,7 +80303,7 @@ func (c *Client) sendTestResponseStringUnixSecondsNullable(ctx context.Context, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80376,7 +80376,7 @@ func (c *Client) sendTestResponseStringUnixSecondsNullableArray(ctx context.Cont defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -80449,7 +80449,7 @@ func (c *Client) sendTestResponseStringUnixSecondsNullableArrayArray(ctx context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_test_format/oas_handlers_gen.go b/examples/ex_test_format/oas_handlers_gen.go index 55ea3c42a..315fff426 100644 --- a/examples/ex_test_format/oas_handlers_gen.go +++ b/examples/ex_test_format/oas_handlers_gen.go @@ -77,7 +77,7 @@ func (s *Server) handleTestQueryParameterRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88,12 +88,8 @@ func (s *Server) handleTestQueryParameterRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -668,7 +664,7 @@ func (s *Server) handleTestRequestAnyRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -679,12 +675,8 @@ func (s *Server) handleTestRequestAnyRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -808,7 +800,7 @@ func (s *Server) handleTestRequestBooleanRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -819,12 +811,8 @@ func (s *Server) handleTestRequestBooleanRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -948,7 +936,7 @@ func (s *Server) handleTestRequestBooleanArrayRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -959,12 +947,8 @@ func (s *Server) handleTestRequestBooleanArrayRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1088,7 +1072,7 @@ func (s *Server) handleTestRequestBooleanArrayArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1099,12 +1083,8 @@ func (s *Server) handleTestRequestBooleanArrayArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1228,7 +1208,7 @@ func (s *Server) handleTestRequestBooleanNullableRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1239,12 +1219,8 @@ func (s *Server) handleTestRequestBooleanNullableRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1368,7 +1344,7 @@ func (s *Server) handleTestRequestBooleanNullableArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1379,12 +1355,8 @@ func (s *Server) handleTestRequestBooleanNullableArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1508,7 +1480,7 @@ func (s *Server) handleTestRequestBooleanNullableArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1519,12 +1491,8 @@ func (s *Server) handleTestRequestBooleanNullableArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1648,7 +1616,7 @@ func (s *Server) handleTestRequestEmptyStructRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1659,12 +1627,8 @@ func (s *Server) handleTestRequestEmptyStructRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1788,7 +1752,7 @@ func (s *Server) handleTestRequestFormatTestRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1799,12 +1763,8 @@ func (s *Server) handleTestRequestFormatTestRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1928,7 +1888,7 @@ func (s *Server) handleTestRequestIntegerRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1939,12 +1899,8 @@ func (s *Server) handleTestRequestIntegerRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2068,7 +2024,7 @@ func (s *Server) handleTestRequestIntegerArrayRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2079,12 +2035,8 @@ func (s *Server) handleTestRequestIntegerArrayRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2208,7 +2160,7 @@ func (s *Server) handleTestRequestIntegerArrayArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2219,12 +2171,8 @@ func (s *Server) handleTestRequestIntegerArrayArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2348,7 +2296,7 @@ func (s *Server) handleTestRequestIntegerInt16Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2359,12 +2307,8 @@ func (s *Server) handleTestRequestIntegerInt16Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2488,7 +2432,7 @@ func (s *Server) handleTestRequestIntegerInt16ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2499,12 +2443,8 @@ func (s *Server) handleTestRequestIntegerInt16ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2628,7 +2568,7 @@ func (s *Server) handleTestRequestIntegerInt16ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2639,12 +2579,8 @@ func (s *Server) handleTestRequestIntegerInt16ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2768,7 +2704,7 @@ func (s *Server) handleTestRequestIntegerInt16NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2779,12 +2715,8 @@ func (s *Server) handleTestRequestIntegerInt16NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2908,7 +2840,7 @@ func (s *Server) handleTestRequestIntegerInt16NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2919,12 +2851,8 @@ func (s *Server) handleTestRequestIntegerInt16NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3048,7 +2976,7 @@ func (s *Server) handleTestRequestIntegerInt16NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3059,12 +2987,8 @@ func (s *Server) handleTestRequestIntegerInt16NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3188,7 +3112,7 @@ func (s *Server) handleTestRequestIntegerInt32Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3199,12 +3123,8 @@ func (s *Server) handleTestRequestIntegerInt32Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3328,7 +3248,7 @@ func (s *Server) handleTestRequestIntegerInt32ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3339,12 +3259,8 @@ func (s *Server) handleTestRequestIntegerInt32ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3468,7 +3384,7 @@ func (s *Server) handleTestRequestIntegerInt32ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3479,12 +3395,8 @@ func (s *Server) handleTestRequestIntegerInt32ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3608,7 +3520,7 @@ func (s *Server) handleTestRequestIntegerInt32NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3619,12 +3531,8 @@ func (s *Server) handleTestRequestIntegerInt32NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3748,7 +3656,7 @@ func (s *Server) handleTestRequestIntegerInt32NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3759,12 +3667,8 @@ func (s *Server) handleTestRequestIntegerInt32NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3888,7 +3792,7 @@ func (s *Server) handleTestRequestIntegerInt32NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3899,12 +3803,8 @@ func (s *Server) handleTestRequestIntegerInt32NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4028,7 +3928,7 @@ func (s *Server) handleTestRequestIntegerInt64Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4039,12 +3939,8 @@ func (s *Server) handleTestRequestIntegerInt64Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4168,7 +4064,7 @@ func (s *Server) handleTestRequestIntegerInt64ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4179,12 +4075,8 @@ func (s *Server) handleTestRequestIntegerInt64ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4308,7 +4200,7 @@ func (s *Server) handleTestRequestIntegerInt64ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4319,12 +4211,8 @@ func (s *Server) handleTestRequestIntegerInt64ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4448,7 +4336,7 @@ func (s *Server) handleTestRequestIntegerInt64NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4459,12 +4347,8 @@ func (s *Server) handleTestRequestIntegerInt64NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4588,7 +4472,7 @@ func (s *Server) handleTestRequestIntegerInt64NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4599,12 +4483,8 @@ func (s *Server) handleTestRequestIntegerInt64NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4728,7 +4608,7 @@ func (s *Server) handleTestRequestIntegerInt64NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4739,12 +4619,8 @@ func (s *Server) handleTestRequestIntegerInt64NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4868,7 +4744,7 @@ func (s *Server) handleTestRequestIntegerInt8Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4879,12 +4755,8 @@ func (s *Server) handleTestRequestIntegerInt8Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5008,7 +4880,7 @@ func (s *Server) handleTestRequestIntegerInt8ArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5019,12 +4891,8 @@ func (s *Server) handleTestRequestIntegerInt8ArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5148,7 +5016,7 @@ func (s *Server) handleTestRequestIntegerInt8ArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5159,12 +5027,8 @@ func (s *Server) handleTestRequestIntegerInt8ArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5288,7 +5152,7 @@ func (s *Server) handleTestRequestIntegerInt8NullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5299,12 +5163,8 @@ func (s *Server) handleTestRequestIntegerInt8NullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5428,7 +5288,7 @@ func (s *Server) handleTestRequestIntegerInt8NullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5439,12 +5299,8 @@ func (s *Server) handleTestRequestIntegerInt8NullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5568,7 +5424,7 @@ func (s *Server) handleTestRequestIntegerInt8NullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5579,12 +5435,8 @@ func (s *Server) handleTestRequestIntegerInt8NullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5708,7 +5560,7 @@ func (s *Server) handleTestRequestIntegerNullableRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5719,12 +5571,8 @@ func (s *Server) handleTestRequestIntegerNullableRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5848,7 +5696,7 @@ func (s *Server) handleTestRequestIntegerNullableArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5859,12 +5707,8 @@ func (s *Server) handleTestRequestIntegerNullableArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -5988,7 +5832,7 @@ func (s *Server) handleTestRequestIntegerNullableArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -5999,12 +5843,8 @@ func (s *Server) handleTestRequestIntegerNullableArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6128,7 +5968,7 @@ func (s *Server) handleTestRequestIntegerUintRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6139,12 +5979,8 @@ func (s *Server) handleTestRequestIntegerUintRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6268,7 +6104,7 @@ func (s *Server) handleTestRequestIntegerUint16Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6279,12 +6115,8 @@ func (s *Server) handleTestRequestIntegerUint16Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6408,7 +6240,7 @@ func (s *Server) handleTestRequestIntegerUint16ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6419,12 +6251,8 @@ func (s *Server) handleTestRequestIntegerUint16ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6548,7 +6376,7 @@ func (s *Server) handleTestRequestIntegerUint16ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6559,12 +6387,8 @@ func (s *Server) handleTestRequestIntegerUint16ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6688,7 +6512,7 @@ func (s *Server) handleTestRequestIntegerUint16NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6699,12 +6523,8 @@ func (s *Server) handleTestRequestIntegerUint16NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6828,7 +6648,7 @@ func (s *Server) handleTestRequestIntegerUint16NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6839,12 +6659,8 @@ func (s *Server) handleTestRequestIntegerUint16NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -6968,7 +6784,7 @@ func (s *Server) handleTestRequestIntegerUint16NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -6979,12 +6795,8 @@ func (s *Server) handleTestRequestIntegerUint16NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7108,7 +6920,7 @@ func (s *Server) handleTestRequestIntegerUint32Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7119,12 +6931,8 @@ func (s *Server) handleTestRequestIntegerUint32Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7248,7 +7056,7 @@ func (s *Server) handleTestRequestIntegerUint32ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7259,12 +7067,8 @@ func (s *Server) handleTestRequestIntegerUint32ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7388,7 +7192,7 @@ func (s *Server) handleTestRequestIntegerUint32ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7399,12 +7203,8 @@ func (s *Server) handleTestRequestIntegerUint32ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7528,7 +7328,7 @@ func (s *Server) handleTestRequestIntegerUint32NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7539,12 +7339,8 @@ func (s *Server) handleTestRequestIntegerUint32NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7668,7 +7464,7 @@ func (s *Server) handleTestRequestIntegerUint32NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7679,12 +7475,8 @@ func (s *Server) handleTestRequestIntegerUint32NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7808,7 +7600,7 @@ func (s *Server) handleTestRequestIntegerUint32NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7819,12 +7611,8 @@ func (s *Server) handleTestRequestIntegerUint32NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -7948,7 +7736,7 @@ func (s *Server) handleTestRequestIntegerUint64Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -7959,12 +7747,8 @@ func (s *Server) handleTestRequestIntegerUint64Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8088,7 +7872,7 @@ func (s *Server) handleTestRequestIntegerUint64ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8099,12 +7883,8 @@ func (s *Server) handleTestRequestIntegerUint64ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8228,7 +8008,7 @@ func (s *Server) handleTestRequestIntegerUint64ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8239,12 +8019,8 @@ func (s *Server) handleTestRequestIntegerUint64ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8368,7 +8144,7 @@ func (s *Server) handleTestRequestIntegerUint64NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8379,12 +8155,8 @@ func (s *Server) handleTestRequestIntegerUint64NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8508,7 +8280,7 @@ func (s *Server) handleTestRequestIntegerUint64NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8519,12 +8291,8 @@ func (s *Server) handleTestRequestIntegerUint64NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8648,7 +8416,7 @@ func (s *Server) handleTestRequestIntegerUint64NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8659,12 +8427,8 @@ func (s *Server) handleTestRequestIntegerUint64NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8788,7 +8552,7 @@ func (s *Server) handleTestRequestIntegerUint8Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8799,12 +8563,8 @@ func (s *Server) handleTestRequestIntegerUint8Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -8928,7 +8688,7 @@ func (s *Server) handleTestRequestIntegerUint8ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -8939,12 +8699,8 @@ func (s *Server) handleTestRequestIntegerUint8ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9068,7 +8824,7 @@ func (s *Server) handleTestRequestIntegerUint8ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9079,12 +8835,8 @@ func (s *Server) handleTestRequestIntegerUint8ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9208,7 +8960,7 @@ func (s *Server) handleTestRequestIntegerUint8NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9219,12 +8971,8 @@ func (s *Server) handleTestRequestIntegerUint8NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9348,7 +9096,7 @@ func (s *Server) handleTestRequestIntegerUint8NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9359,12 +9107,8 @@ func (s *Server) handleTestRequestIntegerUint8NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9488,7 +9232,7 @@ func (s *Server) handleTestRequestIntegerUint8NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9499,12 +9243,8 @@ func (s *Server) handleTestRequestIntegerUint8NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9628,7 +9368,7 @@ func (s *Server) handleTestRequestIntegerUintArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9639,12 +9379,8 @@ func (s *Server) handleTestRequestIntegerUintArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9768,7 +9504,7 @@ func (s *Server) handleTestRequestIntegerUintArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9779,12 +9515,8 @@ func (s *Server) handleTestRequestIntegerUintArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -9908,7 +9640,7 @@ func (s *Server) handleTestRequestIntegerUintNullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -9919,12 +9651,8 @@ func (s *Server) handleTestRequestIntegerUintNullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10048,7 +9776,7 @@ func (s *Server) handleTestRequestIntegerUintNullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10059,12 +9787,8 @@ func (s *Server) handleTestRequestIntegerUintNullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10188,7 +9912,7 @@ func (s *Server) handleTestRequestIntegerUintNullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10199,12 +9923,8 @@ func (s *Server) handleTestRequestIntegerUintNullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10328,7 +10048,7 @@ func (s *Server) handleTestRequestIntegerUnixRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10339,12 +10059,8 @@ func (s *Server) handleTestRequestIntegerUnixRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10468,7 +10184,7 @@ func (s *Server) handleTestRequestIntegerUnixArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10479,12 +10195,8 @@ func (s *Server) handleTestRequestIntegerUnixArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10608,7 +10320,7 @@ func (s *Server) handleTestRequestIntegerUnixArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10619,12 +10331,8 @@ func (s *Server) handleTestRequestIntegerUnixArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10748,7 +10456,7 @@ func (s *Server) handleTestRequestIntegerUnixMicroRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10759,12 +10467,8 @@ func (s *Server) handleTestRequestIntegerUnixMicroRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -10888,7 +10592,7 @@ func (s *Server) handleTestRequestIntegerUnixMicroArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -10899,12 +10603,8 @@ func (s *Server) handleTestRequestIntegerUnixMicroArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11028,7 +10728,7 @@ func (s *Server) handleTestRequestIntegerUnixMicroArrayArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11039,12 +10739,8 @@ func (s *Server) handleTestRequestIntegerUnixMicroArrayArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11168,7 +10864,7 @@ func (s *Server) handleTestRequestIntegerUnixMicroNullableRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11179,12 +10875,8 @@ func (s *Server) handleTestRequestIntegerUnixMicroNullableRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11308,7 +11000,7 @@ func (s *Server) handleTestRequestIntegerUnixMicroNullableArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11319,12 +11011,8 @@ func (s *Server) handleTestRequestIntegerUnixMicroNullableArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11448,7 +11136,7 @@ func (s *Server) handleTestRequestIntegerUnixMicroNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11459,12 +11147,8 @@ func (s *Server) handleTestRequestIntegerUnixMicroNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11588,7 +11272,7 @@ func (s *Server) handleTestRequestIntegerUnixMilliRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11599,12 +11283,8 @@ func (s *Server) handleTestRequestIntegerUnixMilliRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11728,7 +11408,7 @@ func (s *Server) handleTestRequestIntegerUnixMilliArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11739,12 +11419,8 @@ func (s *Server) handleTestRequestIntegerUnixMilliArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -11868,7 +11544,7 @@ func (s *Server) handleTestRequestIntegerUnixMilliArrayArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -11879,12 +11555,8 @@ func (s *Server) handleTestRequestIntegerUnixMilliArrayArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12008,7 +11680,7 @@ func (s *Server) handleTestRequestIntegerUnixMilliNullableRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12019,12 +11691,8 @@ func (s *Server) handleTestRequestIntegerUnixMilliNullableRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12148,7 +11816,7 @@ func (s *Server) handleTestRequestIntegerUnixMilliNullableArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12159,12 +11827,8 @@ func (s *Server) handleTestRequestIntegerUnixMilliNullableArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12288,7 +11952,7 @@ func (s *Server) handleTestRequestIntegerUnixMilliNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12299,12 +11963,8 @@ func (s *Server) handleTestRequestIntegerUnixMilliNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12428,7 +12088,7 @@ func (s *Server) handleTestRequestIntegerUnixNanoRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12439,12 +12099,8 @@ func (s *Server) handleTestRequestIntegerUnixNanoRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12568,7 +12224,7 @@ func (s *Server) handleTestRequestIntegerUnixNanoArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12579,12 +12235,8 @@ func (s *Server) handleTestRequestIntegerUnixNanoArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12708,7 +12360,7 @@ func (s *Server) handleTestRequestIntegerUnixNanoArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12719,12 +12371,8 @@ func (s *Server) handleTestRequestIntegerUnixNanoArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12848,7 +12496,7 @@ func (s *Server) handleTestRequestIntegerUnixNanoNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12859,12 +12507,8 @@ func (s *Server) handleTestRequestIntegerUnixNanoNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -12988,7 +12632,7 @@ func (s *Server) handleTestRequestIntegerUnixNanoNullableArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -12999,12 +12643,8 @@ func (s *Server) handleTestRequestIntegerUnixNanoNullableArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13128,7 +12768,7 @@ func (s *Server) handleTestRequestIntegerUnixNanoNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13139,12 +12779,8 @@ func (s *Server) handleTestRequestIntegerUnixNanoNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13268,7 +12904,7 @@ func (s *Server) handleTestRequestIntegerUnixNullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13279,12 +12915,8 @@ func (s *Server) handleTestRequestIntegerUnixNullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13408,7 +13040,7 @@ func (s *Server) handleTestRequestIntegerUnixNullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13419,12 +13051,8 @@ func (s *Server) handleTestRequestIntegerUnixNullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13548,7 +13176,7 @@ func (s *Server) handleTestRequestIntegerUnixNullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13559,12 +13187,8 @@ func (s *Server) handleTestRequestIntegerUnixNullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13688,7 +13312,7 @@ func (s *Server) handleTestRequestIntegerUnixSecondsRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13699,12 +13323,8 @@ func (s *Server) handleTestRequestIntegerUnixSecondsRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13828,7 +13448,7 @@ func (s *Server) handleTestRequestIntegerUnixSecondsArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13839,12 +13459,8 @@ func (s *Server) handleTestRequestIntegerUnixSecondsArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -13968,7 +13584,7 @@ func (s *Server) handleTestRequestIntegerUnixSecondsArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -13979,12 +13595,8 @@ func (s *Server) handleTestRequestIntegerUnixSecondsArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14108,7 +13720,7 @@ func (s *Server) handleTestRequestIntegerUnixSecondsNullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14119,12 +13731,8 @@ func (s *Server) handleTestRequestIntegerUnixSecondsNullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14248,7 +13856,7 @@ func (s *Server) handleTestRequestIntegerUnixSecondsNullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14259,12 +13867,8 @@ func (s *Server) handleTestRequestIntegerUnixSecondsNullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14388,7 +13992,7 @@ func (s *Server) handleTestRequestIntegerUnixSecondsNullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14399,12 +14003,8 @@ func (s *Server) handleTestRequestIntegerUnixSecondsNullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14528,7 +14128,7 @@ func (s *Server) handleTestRequestNullRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14539,12 +14139,8 @@ func (s *Server) handleTestRequestNullRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14668,7 +14264,7 @@ func (s *Server) handleTestRequestNullArrayRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14679,12 +14275,8 @@ func (s *Server) handleTestRequestNullArrayRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14808,7 +14400,7 @@ func (s *Server) handleTestRequestNullArrayArrayRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14819,12 +14411,8 @@ func (s *Server) handleTestRequestNullArrayArrayRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -14948,7 +14536,7 @@ func (s *Server) handleTestRequestNullNullableRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -14959,12 +14547,8 @@ func (s *Server) handleTestRequestNullNullableRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15088,7 +14672,7 @@ func (s *Server) handleTestRequestNullNullableArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15099,12 +14683,8 @@ func (s *Server) handleTestRequestNullNullableArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15228,7 +14808,7 @@ func (s *Server) handleTestRequestNullNullableArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15239,12 +14819,8 @@ func (s *Server) handleTestRequestNullNullableArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15368,7 +14944,7 @@ func (s *Server) handleTestRequestNumberRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15379,12 +14955,8 @@ func (s *Server) handleTestRequestNumberRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15508,7 +15080,7 @@ func (s *Server) handleTestRequestNumberArrayRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15519,12 +15091,8 @@ func (s *Server) handleTestRequestNumberArrayRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15648,7 +15216,7 @@ func (s *Server) handleTestRequestNumberArrayArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15659,12 +15227,8 @@ func (s *Server) handleTestRequestNumberArrayArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15788,7 +15352,7 @@ func (s *Server) handleTestRequestNumberDoubleRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15799,12 +15363,8 @@ func (s *Server) handleTestRequestNumberDoubleRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -15928,7 +15488,7 @@ func (s *Server) handleTestRequestNumberDoubleArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -15939,12 +15499,8 @@ func (s *Server) handleTestRequestNumberDoubleArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16068,7 +15624,7 @@ func (s *Server) handleTestRequestNumberDoubleArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16079,12 +15635,8 @@ func (s *Server) handleTestRequestNumberDoubleArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16208,7 +15760,7 @@ func (s *Server) handleTestRequestNumberDoubleNullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16219,12 +15771,8 @@ func (s *Server) handleTestRequestNumberDoubleNullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16348,7 +15896,7 @@ func (s *Server) handleTestRequestNumberDoubleNullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16359,12 +15907,8 @@ func (s *Server) handleTestRequestNumberDoubleNullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16488,7 +16032,7 @@ func (s *Server) handleTestRequestNumberDoubleNullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16499,12 +16043,8 @@ func (s *Server) handleTestRequestNumberDoubleNullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16628,7 +16168,7 @@ func (s *Server) handleTestRequestNumberFloatRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16639,12 +16179,8 @@ func (s *Server) handleTestRequestNumberFloatRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16768,7 +16304,7 @@ func (s *Server) handleTestRequestNumberFloatArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16779,12 +16315,8 @@ func (s *Server) handleTestRequestNumberFloatArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -16908,7 +16440,7 @@ func (s *Server) handleTestRequestNumberFloatArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -16919,12 +16451,8 @@ func (s *Server) handleTestRequestNumberFloatArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17048,7 +16576,7 @@ func (s *Server) handleTestRequestNumberFloatNullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17059,12 +16587,8 @@ func (s *Server) handleTestRequestNumberFloatNullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17188,7 +16712,7 @@ func (s *Server) handleTestRequestNumberFloatNullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17199,12 +16723,8 @@ func (s *Server) handleTestRequestNumberFloatNullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17328,7 +16848,7 @@ func (s *Server) handleTestRequestNumberFloatNullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17339,12 +16859,8 @@ func (s *Server) handleTestRequestNumberFloatNullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17468,7 +16984,7 @@ func (s *Server) handleTestRequestNumberInt32Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17479,12 +16995,8 @@ func (s *Server) handleTestRequestNumberInt32Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17608,7 +17120,7 @@ func (s *Server) handleTestRequestNumberInt32ArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17619,12 +17131,8 @@ func (s *Server) handleTestRequestNumberInt32ArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17748,7 +17256,7 @@ func (s *Server) handleTestRequestNumberInt32ArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17759,12 +17267,8 @@ func (s *Server) handleTestRequestNumberInt32ArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -17888,7 +17392,7 @@ func (s *Server) handleTestRequestNumberInt32NullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -17899,12 +17403,8 @@ func (s *Server) handleTestRequestNumberInt32NullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18028,7 +17528,7 @@ func (s *Server) handleTestRequestNumberInt32NullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18039,12 +17539,8 @@ func (s *Server) handleTestRequestNumberInt32NullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18168,7 +17664,7 @@ func (s *Server) handleTestRequestNumberInt32NullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18179,12 +17675,8 @@ func (s *Server) handleTestRequestNumberInt32NullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18308,7 +17800,7 @@ func (s *Server) handleTestRequestNumberInt64Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18319,12 +17811,8 @@ func (s *Server) handleTestRequestNumberInt64Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18448,7 +17936,7 @@ func (s *Server) handleTestRequestNumberInt64ArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18459,12 +17947,8 @@ func (s *Server) handleTestRequestNumberInt64ArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18588,7 +18072,7 @@ func (s *Server) handleTestRequestNumberInt64ArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18599,12 +18083,8 @@ func (s *Server) handleTestRequestNumberInt64ArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18728,7 +18208,7 @@ func (s *Server) handleTestRequestNumberInt64NullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18739,12 +18219,8 @@ func (s *Server) handleTestRequestNumberInt64NullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -18868,7 +18344,7 @@ func (s *Server) handleTestRequestNumberInt64NullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -18879,12 +18355,8 @@ func (s *Server) handleTestRequestNumberInt64NullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19008,7 +18480,7 @@ func (s *Server) handleTestRequestNumberInt64NullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19019,12 +18491,8 @@ func (s *Server) handleTestRequestNumberInt64NullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19148,7 +18616,7 @@ func (s *Server) handleTestRequestNumberNullableRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19159,12 +18627,8 @@ func (s *Server) handleTestRequestNumberNullableRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19288,7 +18752,7 @@ func (s *Server) handleTestRequestNumberNullableArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19299,12 +18763,8 @@ func (s *Server) handleTestRequestNumberNullableArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19428,7 +18888,7 @@ func (s *Server) handleTestRequestNumberNullableArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19439,12 +18899,8 @@ func (s *Server) handleTestRequestNumberNullableArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19568,7 +19024,7 @@ func (s *Server) handleTestRequestRequiredAnyRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19579,12 +19035,8 @@ func (s *Server) handleTestRequestRequiredAnyRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19708,7 +19160,7 @@ func (s *Server) handleTestRequestRequiredBooleanRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19719,12 +19171,8 @@ func (s *Server) handleTestRequestRequiredBooleanRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19848,7 +19296,7 @@ func (s *Server) handleTestRequestRequiredBooleanArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19859,12 +19307,8 @@ func (s *Server) handleTestRequestRequiredBooleanArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -19988,7 +19432,7 @@ func (s *Server) handleTestRequestRequiredBooleanArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -19999,12 +19443,8 @@ func (s *Server) handleTestRequestRequiredBooleanArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20128,7 +19568,7 @@ func (s *Server) handleTestRequestRequiredBooleanNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20139,12 +19579,8 @@ func (s *Server) handleTestRequestRequiredBooleanNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20268,7 +19704,7 @@ func (s *Server) handleTestRequestRequiredBooleanNullableArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20279,12 +19715,8 @@ func (s *Server) handleTestRequestRequiredBooleanNullableArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20408,7 +19840,7 @@ func (s *Server) handleTestRequestRequiredBooleanNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20419,12 +19851,8 @@ func (s *Server) handleTestRequestRequiredBooleanNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20548,7 +19976,7 @@ func (s *Server) handleTestRequestRequiredEmptyStructRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20559,12 +19987,8 @@ func (s *Server) handleTestRequestRequiredEmptyStructRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20688,7 +20112,7 @@ func (s *Server) handleTestRequestRequiredFormatTestRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20699,12 +20123,8 @@ func (s *Server) handleTestRequestRequiredFormatTestRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20828,7 +20248,7 @@ func (s *Server) handleTestRequestRequiredIntegerRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20839,12 +20259,8 @@ func (s *Server) handleTestRequestRequiredIntegerRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -20968,7 +20384,7 @@ func (s *Server) handleTestRequestRequiredIntegerArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -20979,12 +20395,8 @@ func (s *Server) handleTestRequestRequiredIntegerArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21108,7 +20520,7 @@ func (s *Server) handleTestRequestRequiredIntegerArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21119,12 +20531,8 @@ func (s *Server) handleTestRequestRequiredIntegerArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21248,7 +20656,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt16Request(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21259,12 +20667,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt16Request(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21388,7 +20792,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt16ArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21399,12 +20803,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt16ArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21528,7 +20928,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt16ArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21539,12 +20939,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt16ArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21668,7 +21064,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt16NullableRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21679,12 +21075,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt16NullableRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21808,7 +21200,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt16NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21819,12 +21211,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt16NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -21948,7 +21336,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt16NullableArrayArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -21959,12 +21347,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt16NullableArrayArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22088,7 +21472,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt32Request(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22099,12 +21483,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt32Request(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22228,7 +21608,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt32ArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22239,12 +21619,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt32ArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22368,7 +21744,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt32ArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22379,12 +21755,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt32ArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22508,7 +21880,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt32NullableRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22519,12 +21891,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt32NullableRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22648,7 +22016,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt32NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22659,12 +22027,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt32NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22788,7 +22152,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt32NullableArrayArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22799,12 +22163,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt32NullableArrayArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -22928,7 +22288,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt64Request(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -22939,12 +22299,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt64Request(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23068,7 +22424,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt64ArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23079,12 +22435,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt64ArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23208,7 +22560,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt64ArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23219,12 +22571,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt64ArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23348,7 +22696,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt64NullableRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23359,12 +22707,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt64NullableRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23488,7 +22832,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt64NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23499,12 +22843,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt64NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23628,7 +22968,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt64NullableArrayArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23639,12 +22979,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt64NullableArrayArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23768,7 +23104,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt8Request(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23779,12 +23115,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt8Request(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -23908,7 +23240,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt8ArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -23919,12 +23251,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt8ArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24048,7 +23376,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt8ArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24059,12 +23387,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt8ArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24188,7 +23512,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt8NullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24199,12 +23523,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt8NullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24328,7 +23648,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt8NullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24339,12 +23659,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt8NullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24468,7 +23784,7 @@ func (s *Server) handleTestRequestRequiredIntegerInt8NullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24479,12 +23795,8 @@ func (s *Server) handleTestRequestRequiredIntegerInt8NullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24608,7 +23920,7 @@ func (s *Server) handleTestRequestRequiredIntegerNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24619,12 +23931,8 @@ func (s *Server) handleTestRequestRequiredIntegerNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24748,7 +24056,7 @@ func (s *Server) handleTestRequestRequiredIntegerNullableArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24759,12 +24067,8 @@ func (s *Server) handleTestRequestRequiredIntegerNullableArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -24888,7 +24192,7 @@ func (s *Server) handleTestRequestRequiredIntegerNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -24899,12 +24203,8 @@ func (s *Server) handleTestRequestRequiredIntegerNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25028,7 +24328,7 @@ func (s *Server) handleTestRequestRequiredIntegerUintRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25039,12 +24339,8 @@ func (s *Server) handleTestRequestRequiredIntegerUintRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25168,7 +24464,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint16Request(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25179,12 +24475,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint16Request(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25308,7 +24600,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint16ArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25319,12 +24611,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint16ArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25448,7 +24736,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint16ArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25459,12 +24747,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint16ArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25588,7 +24872,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint16NullableRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25599,12 +24883,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint16NullableRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25728,7 +25008,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint16NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25739,12 +25019,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint16NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -25868,7 +25144,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint16NullableArrayArrayRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -25879,12 +25155,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint16NullableArrayArrayRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26008,7 +25280,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint32Request(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26019,12 +25291,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint32Request(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26148,7 +25416,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint32ArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26159,12 +25427,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint32ArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26288,7 +25552,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint32ArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26299,12 +25563,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint32ArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26428,7 +25688,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint32NullableRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26439,12 +25699,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint32NullableRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26568,7 +25824,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint32NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26579,12 +25835,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint32NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26708,7 +25960,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint32NullableArrayArrayRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26719,12 +25971,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint32NullableArrayArrayRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26848,7 +26096,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint64Request(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26859,12 +26107,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint64Request(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -26988,7 +26232,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint64ArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -26999,12 +26243,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint64ArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27128,7 +26368,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint64ArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27139,12 +26379,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint64ArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27268,7 +26504,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint64NullableRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27279,12 +26515,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint64NullableRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27408,7 +26640,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint64NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27419,12 +26651,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint64NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27548,7 +26776,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint64NullableArrayArrayRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27559,12 +26787,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint64NullableArrayArrayRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27688,7 +26912,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint8Request(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27699,12 +26923,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint8Request(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27828,7 +27048,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint8ArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27839,12 +27059,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint8ArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -27968,7 +27184,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint8ArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -27979,12 +27195,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint8ArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28108,7 +27320,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint8NullableRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28119,12 +27331,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint8NullableRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28248,7 +27456,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint8NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28259,12 +27467,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint8NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28388,7 +27592,7 @@ func (s *Server) handleTestRequestRequiredIntegerUint8NullableArrayArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28399,12 +27603,8 @@ func (s *Server) handleTestRequestRequiredIntegerUint8NullableArrayArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28528,7 +27728,7 @@ func (s *Server) handleTestRequestRequiredIntegerUintArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28539,12 +27739,8 @@ func (s *Server) handleTestRequestRequiredIntegerUintArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28668,7 +27864,7 @@ func (s *Server) handleTestRequestRequiredIntegerUintArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28679,12 +27875,8 @@ func (s *Server) handleTestRequestRequiredIntegerUintArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28808,7 +28000,7 @@ func (s *Server) handleTestRequestRequiredIntegerUintNullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28819,12 +28011,8 @@ func (s *Server) handleTestRequestRequiredIntegerUintNullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -28948,7 +28136,7 @@ func (s *Server) handleTestRequestRequiredIntegerUintNullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -28959,12 +28147,8 @@ func (s *Server) handleTestRequestRequiredIntegerUintNullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29088,7 +28272,7 @@ func (s *Server) handleTestRequestRequiredIntegerUintNullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29099,12 +28283,8 @@ func (s *Server) handleTestRequestRequiredIntegerUintNullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29228,7 +28408,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29239,12 +28419,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29368,7 +28544,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29379,12 +28555,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29508,7 +28680,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29519,12 +28691,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29648,7 +28816,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29659,12 +28827,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29788,7 +28952,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29799,12 +28963,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -29928,7 +29088,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -29939,12 +29099,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30068,7 +29224,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroNullableRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30079,12 +29235,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroNullableRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30208,7 +29360,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroNullableArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30219,12 +29371,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroNullableArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30348,7 +29496,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroNullableArrayArrayRequ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30359,12 +29507,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroNullableArrayArrayRequ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30488,7 +29632,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30499,12 +29643,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30628,7 +29768,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30639,12 +29779,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30768,7 +29904,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30779,12 +29915,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -30908,7 +30040,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliNullableRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -30919,12 +30051,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliNullableRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31048,7 +30176,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliNullableArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31059,12 +30187,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliNullableArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31188,7 +30312,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliNullableArrayArrayRequ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31199,12 +30323,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliNullableArrayArrayRequ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31328,7 +30448,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31339,12 +30459,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31468,7 +30584,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31479,12 +30595,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31608,7 +30720,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31619,12 +30731,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31748,7 +30856,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoNullableRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31759,12 +30867,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoNullableRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -31888,7 +30992,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoNullableArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -31899,12 +31003,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoNullableArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32028,7 +31128,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoNullableArrayArrayReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32039,12 +31139,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoNullableArrayArrayReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32168,7 +31264,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32179,12 +31275,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32308,7 +31400,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32319,12 +31411,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32448,7 +31536,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32459,12 +31547,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32588,7 +31672,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32599,12 +31683,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32728,7 +31808,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32739,12 +31819,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -32868,7 +31944,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -32879,12 +31955,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33008,7 +32080,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsNullableRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33019,12 +32091,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsNullableRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33148,7 +32216,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsNullableArrayRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33159,12 +32227,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsNullableArrayRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33288,7 +32352,7 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsNullableArrayArrayRe s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33299,12 +32363,8 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsNullableArrayArrayRe // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33428,7 +32488,7 @@ func (s *Server) handleTestRequestRequiredNullRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33439,12 +32499,8 @@ func (s *Server) handleTestRequestRequiredNullRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33568,7 +32624,7 @@ func (s *Server) handleTestRequestRequiredNullArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33579,12 +32635,8 @@ func (s *Server) handleTestRequestRequiredNullArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33708,7 +32760,7 @@ func (s *Server) handleTestRequestRequiredNullArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33719,12 +32771,8 @@ func (s *Server) handleTestRequestRequiredNullArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33848,7 +32896,7 @@ func (s *Server) handleTestRequestRequiredNullNullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33859,12 +32907,8 @@ func (s *Server) handleTestRequestRequiredNullNullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -33988,7 +33032,7 @@ func (s *Server) handleTestRequestRequiredNullNullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -33999,12 +33043,8 @@ func (s *Server) handleTestRequestRequiredNullNullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34128,7 +33168,7 @@ func (s *Server) handleTestRequestRequiredNullNullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34139,12 +33179,8 @@ func (s *Server) handleTestRequestRequiredNullNullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34268,7 +33304,7 @@ func (s *Server) handleTestRequestRequiredNumberRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34279,12 +33315,8 @@ func (s *Server) handleTestRequestRequiredNumberRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34408,7 +33440,7 @@ func (s *Server) handleTestRequestRequiredNumberArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34419,12 +33451,8 @@ func (s *Server) handleTestRequestRequiredNumberArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34548,7 +33576,7 @@ func (s *Server) handleTestRequestRequiredNumberArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34559,12 +33587,8 @@ func (s *Server) handleTestRequestRequiredNumberArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34688,7 +33712,7 @@ func (s *Server) handleTestRequestRequiredNumberDoubleRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34699,12 +33723,8 @@ func (s *Server) handleTestRequestRequiredNumberDoubleRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34828,7 +33848,7 @@ func (s *Server) handleTestRequestRequiredNumberDoubleArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34839,12 +33859,8 @@ func (s *Server) handleTestRequestRequiredNumberDoubleArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -34968,7 +33984,7 @@ func (s *Server) handleTestRequestRequiredNumberDoubleArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -34979,12 +33995,8 @@ func (s *Server) handleTestRequestRequiredNumberDoubleArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35108,7 +34120,7 @@ func (s *Server) handleTestRequestRequiredNumberDoubleNullableRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35119,12 +34131,8 @@ func (s *Server) handleTestRequestRequiredNumberDoubleNullableRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35248,7 +34256,7 @@ func (s *Server) handleTestRequestRequiredNumberDoubleNullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35259,12 +34267,8 @@ func (s *Server) handleTestRequestRequiredNumberDoubleNullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35388,7 +34392,7 @@ func (s *Server) handleTestRequestRequiredNumberDoubleNullableArrayArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35399,12 +34403,8 @@ func (s *Server) handleTestRequestRequiredNumberDoubleNullableArrayArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35528,7 +34528,7 @@ func (s *Server) handleTestRequestRequiredNumberFloatRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35539,12 +34539,8 @@ func (s *Server) handleTestRequestRequiredNumberFloatRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35668,7 +34664,7 @@ func (s *Server) handleTestRequestRequiredNumberFloatArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35679,12 +34675,8 @@ func (s *Server) handleTestRequestRequiredNumberFloatArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35808,7 +34800,7 @@ func (s *Server) handleTestRequestRequiredNumberFloatArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35819,12 +34811,8 @@ func (s *Server) handleTestRequestRequiredNumberFloatArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -35948,7 +34936,7 @@ func (s *Server) handleTestRequestRequiredNumberFloatNullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -35959,12 +34947,8 @@ func (s *Server) handleTestRequestRequiredNumberFloatNullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36088,7 +35072,7 @@ func (s *Server) handleTestRequestRequiredNumberFloatNullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36099,12 +35083,8 @@ func (s *Server) handleTestRequestRequiredNumberFloatNullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36228,7 +35208,7 @@ func (s *Server) handleTestRequestRequiredNumberFloatNullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36239,12 +35219,8 @@ func (s *Server) handleTestRequestRequiredNumberFloatNullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36368,7 +35344,7 @@ func (s *Server) handleTestRequestRequiredNumberInt32Request(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36379,12 +35355,8 @@ func (s *Server) handleTestRequestRequiredNumberInt32Request(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36508,7 +35480,7 @@ func (s *Server) handleTestRequestRequiredNumberInt32ArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36519,12 +35491,8 @@ func (s *Server) handleTestRequestRequiredNumberInt32ArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36648,7 +35616,7 @@ func (s *Server) handleTestRequestRequiredNumberInt32ArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36659,12 +35627,8 @@ func (s *Server) handleTestRequestRequiredNumberInt32ArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36788,7 +35752,7 @@ func (s *Server) handleTestRequestRequiredNumberInt32NullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36799,12 +35763,8 @@ func (s *Server) handleTestRequestRequiredNumberInt32NullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -36928,7 +35888,7 @@ func (s *Server) handleTestRequestRequiredNumberInt32NullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -36939,12 +35899,8 @@ func (s *Server) handleTestRequestRequiredNumberInt32NullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37068,7 +36024,7 @@ func (s *Server) handleTestRequestRequiredNumberInt32NullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37079,12 +36035,8 @@ func (s *Server) handleTestRequestRequiredNumberInt32NullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37208,7 +36160,7 @@ func (s *Server) handleTestRequestRequiredNumberInt64Request(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37219,12 +36171,8 @@ func (s *Server) handleTestRequestRequiredNumberInt64Request(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37348,7 +36296,7 @@ func (s *Server) handleTestRequestRequiredNumberInt64ArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37359,12 +36307,8 @@ func (s *Server) handleTestRequestRequiredNumberInt64ArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37488,7 +36432,7 @@ func (s *Server) handleTestRequestRequiredNumberInt64ArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37499,12 +36443,8 @@ func (s *Server) handleTestRequestRequiredNumberInt64ArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37628,7 +36568,7 @@ func (s *Server) handleTestRequestRequiredNumberInt64NullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37639,12 +36579,8 @@ func (s *Server) handleTestRequestRequiredNumberInt64NullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37768,7 +36704,7 @@ func (s *Server) handleTestRequestRequiredNumberInt64NullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37779,12 +36715,8 @@ func (s *Server) handleTestRequestRequiredNumberInt64NullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -37908,7 +36840,7 @@ func (s *Server) handleTestRequestRequiredNumberInt64NullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -37919,12 +36851,8 @@ func (s *Server) handleTestRequestRequiredNumberInt64NullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38048,7 +36976,7 @@ func (s *Server) handleTestRequestRequiredNumberNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38059,12 +36987,8 @@ func (s *Server) handleTestRequestRequiredNumberNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38188,7 +37112,7 @@ func (s *Server) handleTestRequestRequiredNumberNullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38199,12 +37123,8 @@ func (s *Server) handleTestRequestRequiredNumberNullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38328,7 +37248,7 @@ func (s *Server) handleTestRequestRequiredNumberNullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38339,12 +37259,8 @@ func (s *Server) handleTestRequestRequiredNumberNullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38468,7 +37384,7 @@ func (s *Server) handleTestRequestRequiredStringRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38479,12 +37395,8 @@ func (s *Server) handleTestRequestRequiredStringRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38608,7 +37520,7 @@ func (s *Server) handleTestRequestRequiredStringArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38619,12 +37531,8 @@ func (s *Server) handleTestRequestRequiredStringArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38748,7 +37656,7 @@ func (s *Server) handleTestRequestRequiredStringArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38759,12 +37667,8 @@ func (s *Server) handleTestRequestRequiredStringArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -38888,7 +37792,7 @@ func (s *Server) handleTestRequestRequiredStringBase64Request(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -38899,12 +37803,8 @@ func (s *Server) handleTestRequestRequiredStringBase64Request(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39028,7 +37928,7 @@ func (s *Server) handleTestRequestRequiredStringBase64ArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39039,12 +37939,8 @@ func (s *Server) handleTestRequestRequiredStringBase64ArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39168,7 +38064,7 @@ func (s *Server) handleTestRequestRequiredStringBase64ArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39179,12 +38075,8 @@ func (s *Server) handleTestRequestRequiredStringBase64ArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39308,7 +38200,7 @@ func (s *Server) handleTestRequestRequiredStringBase64NullableRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39319,12 +38211,8 @@ func (s *Server) handleTestRequestRequiredStringBase64NullableRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39448,7 +38336,7 @@ func (s *Server) handleTestRequestRequiredStringBase64NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39459,12 +38347,8 @@ func (s *Server) handleTestRequestRequiredStringBase64NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39588,7 +38472,7 @@ func (s *Server) handleTestRequestRequiredStringBase64NullableArrayArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39599,12 +38483,8 @@ func (s *Server) handleTestRequestRequiredStringBase64NullableArrayArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39728,7 +38608,7 @@ func (s *Server) handleTestRequestRequiredStringBinaryRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39739,12 +38619,8 @@ func (s *Server) handleTestRequestRequiredStringBinaryRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -39868,7 +38744,7 @@ func (s *Server) handleTestRequestRequiredStringBinaryArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -39879,12 +38755,8 @@ func (s *Server) handleTestRequestRequiredStringBinaryArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40008,7 +38880,7 @@ func (s *Server) handleTestRequestRequiredStringBinaryArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40019,12 +38891,8 @@ func (s *Server) handleTestRequestRequiredStringBinaryArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40148,7 +39016,7 @@ func (s *Server) handleTestRequestRequiredStringBinaryNullableRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40159,12 +39027,8 @@ func (s *Server) handleTestRequestRequiredStringBinaryNullableRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40288,7 +39152,7 @@ func (s *Server) handleTestRequestRequiredStringBinaryNullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40299,12 +39163,8 @@ func (s *Server) handleTestRequestRequiredStringBinaryNullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40428,7 +39288,7 @@ func (s *Server) handleTestRequestRequiredStringBinaryNullableArrayArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40439,12 +39299,8 @@ func (s *Server) handleTestRequestRequiredStringBinaryNullableArrayArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40568,7 +39424,7 @@ func (s *Server) handleTestRequestRequiredStringByteRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40579,12 +39435,8 @@ func (s *Server) handleTestRequestRequiredStringByteRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40708,7 +39560,7 @@ func (s *Server) handleTestRequestRequiredStringByteArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40719,12 +39571,8 @@ func (s *Server) handleTestRequestRequiredStringByteArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40848,7 +39696,7 @@ func (s *Server) handleTestRequestRequiredStringByteArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40859,12 +39707,8 @@ func (s *Server) handleTestRequestRequiredStringByteArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -40988,7 +39832,7 @@ func (s *Server) handleTestRequestRequiredStringByteNullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -40999,12 +39843,8 @@ func (s *Server) handleTestRequestRequiredStringByteNullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41128,7 +39968,7 @@ func (s *Server) handleTestRequestRequiredStringByteNullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41139,12 +39979,8 @@ func (s *Server) handleTestRequestRequiredStringByteNullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41268,7 +40104,7 @@ func (s *Server) handleTestRequestRequiredStringByteNullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41279,12 +40115,8 @@ func (s *Server) handleTestRequestRequiredStringByteNullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41408,7 +40240,7 @@ func (s *Server) handleTestRequestRequiredStringDateRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41419,12 +40251,8 @@ func (s *Server) handleTestRequestRequiredStringDateRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41548,7 +40376,7 @@ func (s *Server) handleTestRequestRequiredStringDateArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41559,12 +40387,8 @@ func (s *Server) handleTestRequestRequiredStringDateArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41688,7 +40512,7 @@ func (s *Server) handleTestRequestRequiredStringDateArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41699,12 +40523,8 @@ func (s *Server) handleTestRequestRequiredStringDateArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41828,7 +40648,7 @@ func (s *Server) handleTestRequestRequiredStringDateNullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41839,12 +40659,8 @@ func (s *Server) handleTestRequestRequiredStringDateNullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -41968,7 +40784,7 @@ func (s *Server) handleTestRequestRequiredStringDateNullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -41979,12 +40795,8 @@ func (s *Server) handleTestRequestRequiredStringDateNullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42108,7 +40920,7 @@ func (s *Server) handleTestRequestRequiredStringDateNullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42119,12 +40931,8 @@ func (s *Server) handleTestRequestRequiredStringDateNullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42248,7 +41056,7 @@ func (s *Server) handleTestRequestRequiredStringDateTimeRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42259,12 +41067,8 @@ func (s *Server) handleTestRequestRequiredStringDateTimeRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42388,7 +41192,7 @@ func (s *Server) handleTestRequestRequiredStringDateTimeArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42399,12 +41203,8 @@ func (s *Server) handleTestRequestRequiredStringDateTimeArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42528,7 +41328,7 @@ func (s *Server) handleTestRequestRequiredStringDateTimeArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42539,12 +41339,8 @@ func (s *Server) handleTestRequestRequiredStringDateTimeArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42668,7 +41464,7 @@ func (s *Server) handleTestRequestRequiredStringDateTimeNullableRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42679,12 +41475,8 @@ func (s *Server) handleTestRequestRequiredStringDateTimeNullableRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42808,7 +41600,7 @@ func (s *Server) handleTestRequestRequiredStringDateTimeNullableArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42819,12 +41611,8 @@ func (s *Server) handleTestRequestRequiredStringDateTimeNullableArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -42948,7 +41736,7 @@ func (s *Server) handleTestRequestRequiredStringDateTimeNullableArrayArrayReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -42959,12 +41747,8 @@ func (s *Server) handleTestRequestRequiredStringDateTimeNullableArrayArrayReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43088,7 +41872,7 @@ func (s *Server) handleTestRequestRequiredStringDurationRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43099,12 +41883,8 @@ func (s *Server) handleTestRequestRequiredStringDurationRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43228,7 +42008,7 @@ func (s *Server) handleTestRequestRequiredStringDurationArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43239,12 +42019,8 @@ func (s *Server) handleTestRequestRequiredStringDurationArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43368,7 +42144,7 @@ func (s *Server) handleTestRequestRequiredStringDurationArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43379,12 +42155,8 @@ func (s *Server) handleTestRequestRequiredStringDurationArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43508,7 +42280,7 @@ func (s *Server) handleTestRequestRequiredStringDurationNullableRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43519,12 +42291,8 @@ func (s *Server) handleTestRequestRequiredStringDurationNullableRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43648,7 +42416,7 @@ func (s *Server) handleTestRequestRequiredStringDurationNullableArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43659,12 +42427,8 @@ func (s *Server) handleTestRequestRequiredStringDurationNullableArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43788,7 +42552,7 @@ func (s *Server) handleTestRequestRequiredStringDurationNullableArrayArrayReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43799,12 +42563,8 @@ func (s *Server) handleTestRequestRequiredStringDurationNullableArrayArrayReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -43928,7 +42688,7 @@ func (s *Server) handleTestRequestRequiredStringEmailRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -43939,12 +42699,8 @@ func (s *Server) handleTestRequestRequiredStringEmailRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44068,7 +42824,7 @@ func (s *Server) handleTestRequestRequiredStringEmailArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44079,12 +42835,8 @@ func (s *Server) handleTestRequestRequiredStringEmailArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44208,7 +42960,7 @@ func (s *Server) handleTestRequestRequiredStringEmailArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44219,12 +42971,8 @@ func (s *Server) handleTestRequestRequiredStringEmailArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44348,7 +43096,7 @@ func (s *Server) handleTestRequestRequiredStringEmailNullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44359,12 +43107,8 @@ func (s *Server) handleTestRequestRequiredStringEmailNullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44488,7 +43232,7 @@ func (s *Server) handleTestRequestRequiredStringEmailNullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44499,12 +43243,8 @@ func (s *Server) handleTestRequestRequiredStringEmailNullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44628,7 +43368,7 @@ func (s *Server) handleTestRequestRequiredStringEmailNullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44639,12 +43379,8 @@ func (s *Server) handleTestRequestRequiredStringEmailNullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44768,7 +43504,7 @@ func (s *Server) handleTestRequestRequiredStringFloat32Request(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44779,12 +43515,8 @@ func (s *Server) handleTestRequestRequiredStringFloat32Request(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -44908,7 +43640,7 @@ func (s *Server) handleTestRequestRequiredStringFloat32ArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -44919,12 +43651,8 @@ func (s *Server) handleTestRequestRequiredStringFloat32ArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45048,7 +43776,7 @@ func (s *Server) handleTestRequestRequiredStringFloat32ArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45059,12 +43787,8 @@ func (s *Server) handleTestRequestRequiredStringFloat32ArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45188,7 +43912,7 @@ func (s *Server) handleTestRequestRequiredStringFloat32NullableRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45199,12 +43923,8 @@ func (s *Server) handleTestRequestRequiredStringFloat32NullableRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45328,7 +44048,7 @@ func (s *Server) handleTestRequestRequiredStringFloat32NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45339,12 +44059,8 @@ func (s *Server) handleTestRequestRequiredStringFloat32NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45468,7 +44184,7 @@ func (s *Server) handleTestRequestRequiredStringFloat32NullableArrayArrayRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45479,12 +44195,8 @@ func (s *Server) handleTestRequestRequiredStringFloat32NullableArrayArrayRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45608,7 +44320,7 @@ func (s *Server) handleTestRequestRequiredStringFloat64Request(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45619,12 +44331,8 @@ func (s *Server) handleTestRequestRequiredStringFloat64Request(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45748,7 +44456,7 @@ func (s *Server) handleTestRequestRequiredStringFloat64ArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45759,12 +44467,8 @@ func (s *Server) handleTestRequestRequiredStringFloat64ArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -45888,7 +44592,7 @@ func (s *Server) handleTestRequestRequiredStringFloat64ArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -45899,12 +44603,8 @@ func (s *Server) handleTestRequestRequiredStringFloat64ArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46028,7 +44728,7 @@ func (s *Server) handleTestRequestRequiredStringFloat64NullableRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46039,12 +44739,8 @@ func (s *Server) handleTestRequestRequiredStringFloat64NullableRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46168,7 +44864,7 @@ func (s *Server) handleTestRequestRequiredStringFloat64NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46179,12 +44875,8 @@ func (s *Server) handleTestRequestRequiredStringFloat64NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46308,7 +45000,7 @@ func (s *Server) handleTestRequestRequiredStringFloat64NullableArrayArrayRequest s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46319,12 +45011,8 @@ func (s *Server) handleTestRequestRequiredStringFloat64NullableArrayArrayRequest // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46448,7 +45136,7 @@ func (s *Server) handleTestRequestRequiredStringHostnameRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46459,12 +45147,8 @@ func (s *Server) handleTestRequestRequiredStringHostnameRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46588,7 +45272,7 @@ func (s *Server) handleTestRequestRequiredStringHostnameArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46599,12 +45283,8 @@ func (s *Server) handleTestRequestRequiredStringHostnameArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46728,7 +45408,7 @@ func (s *Server) handleTestRequestRequiredStringHostnameArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46739,12 +45419,8 @@ func (s *Server) handleTestRequestRequiredStringHostnameArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -46868,7 +45544,7 @@ func (s *Server) handleTestRequestRequiredStringHostnameNullableRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -46879,12 +45555,8 @@ func (s *Server) handleTestRequestRequiredStringHostnameNullableRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47008,7 +45680,7 @@ func (s *Server) handleTestRequestRequiredStringHostnameNullableArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47019,12 +45691,8 @@ func (s *Server) handleTestRequestRequiredStringHostnameNullableArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47148,7 +45816,7 @@ func (s *Server) handleTestRequestRequiredStringHostnameNullableArrayArrayReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47159,12 +45827,8 @@ func (s *Server) handleTestRequestRequiredStringHostnameNullableArrayArrayReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47288,7 +45952,7 @@ func (s *Server) handleTestRequestRequiredStringIPRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47299,12 +45963,8 @@ func (s *Server) handleTestRequestRequiredStringIPRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47428,7 +46088,7 @@ func (s *Server) handleTestRequestRequiredStringIPArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47439,12 +46099,8 @@ func (s *Server) handleTestRequestRequiredStringIPArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47568,7 +46224,7 @@ func (s *Server) handleTestRequestRequiredStringIPArrayArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47579,12 +46235,8 @@ func (s *Server) handleTestRequestRequiredStringIPArrayArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47708,7 +46360,7 @@ func (s *Server) handleTestRequestRequiredStringIPNullableRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47719,12 +46371,8 @@ func (s *Server) handleTestRequestRequiredStringIPNullableRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47848,7 +46496,7 @@ func (s *Server) handleTestRequestRequiredStringIPNullableArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47859,12 +46507,8 @@ func (s *Server) handleTestRequestRequiredStringIPNullableArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -47988,7 +46632,7 @@ func (s *Server) handleTestRequestRequiredStringIPNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -47999,12 +46643,8 @@ func (s *Server) handleTestRequestRequiredStringIPNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48128,7 +46768,7 @@ func (s *Server) handleTestRequestRequiredStringIntRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48139,12 +46779,8 @@ func (s *Server) handleTestRequestRequiredStringIntRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48268,7 +46904,7 @@ func (s *Server) handleTestRequestRequiredStringInt16Request(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48279,12 +46915,8 @@ func (s *Server) handleTestRequestRequiredStringInt16Request(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48408,7 +47040,7 @@ func (s *Server) handleTestRequestRequiredStringInt16ArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48419,12 +47051,8 @@ func (s *Server) handleTestRequestRequiredStringInt16ArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48548,7 +47176,7 @@ func (s *Server) handleTestRequestRequiredStringInt16ArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48559,12 +47187,8 @@ func (s *Server) handleTestRequestRequiredStringInt16ArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48688,7 +47312,7 @@ func (s *Server) handleTestRequestRequiredStringInt16NullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48699,12 +47323,8 @@ func (s *Server) handleTestRequestRequiredStringInt16NullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48828,7 +47448,7 @@ func (s *Server) handleTestRequestRequiredStringInt16NullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48839,12 +47459,8 @@ func (s *Server) handleTestRequestRequiredStringInt16NullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -48968,7 +47584,7 @@ func (s *Server) handleTestRequestRequiredStringInt16NullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -48979,12 +47595,8 @@ func (s *Server) handleTestRequestRequiredStringInt16NullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49108,7 +47720,7 @@ func (s *Server) handleTestRequestRequiredStringInt32Request(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49119,12 +47731,8 @@ func (s *Server) handleTestRequestRequiredStringInt32Request(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49248,7 +47856,7 @@ func (s *Server) handleTestRequestRequiredStringInt32ArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49259,12 +47867,8 @@ func (s *Server) handleTestRequestRequiredStringInt32ArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49388,7 +47992,7 @@ func (s *Server) handleTestRequestRequiredStringInt32ArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49399,12 +48003,8 @@ func (s *Server) handleTestRequestRequiredStringInt32ArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49528,7 +48128,7 @@ func (s *Server) handleTestRequestRequiredStringInt32NullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49539,12 +48139,8 @@ func (s *Server) handleTestRequestRequiredStringInt32NullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49668,7 +48264,7 @@ func (s *Server) handleTestRequestRequiredStringInt32NullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49679,12 +48275,8 @@ func (s *Server) handleTestRequestRequiredStringInt32NullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49808,7 +48400,7 @@ func (s *Server) handleTestRequestRequiredStringInt32NullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49819,12 +48411,8 @@ func (s *Server) handleTestRequestRequiredStringInt32NullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -49948,7 +48536,7 @@ func (s *Server) handleTestRequestRequiredStringInt64Request(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -49959,12 +48547,8 @@ func (s *Server) handleTestRequestRequiredStringInt64Request(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50088,7 +48672,7 @@ func (s *Server) handleTestRequestRequiredStringInt64ArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50099,12 +48683,8 @@ func (s *Server) handleTestRequestRequiredStringInt64ArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50228,7 +48808,7 @@ func (s *Server) handleTestRequestRequiredStringInt64ArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50239,12 +48819,8 @@ func (s *Server) handleTestRequestRequiredStringInt64ArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50368,7 +48944,7 @@ func (s *Server) handleTestRequestRequiredStringInt64NullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50379,12 +48955,8 @@ func (s *Server) handleTestRequestRequiredStringInt64NullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50508,7 +49080,7 @@ func (s *Server) handleTestRequestRequiredStringInt64NullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50519,12 +49091,8 @@ func (s *Server) handleTestRequestRequiredStringInt64NullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50648,7 +49216,7 @@ func (s *Server) handleTestRequestRequiredStringInt64NullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50659,12 +49227,8 @@ func (s *Server) handleTestRequestRequiredStringInt64NullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50788,7 +49352,7 @@ func (s *Server) handleTestRequestRequiredStringInt8Request(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50799,12 +49363,8 @@ func (s *Server) handleTestRequestRequiredStringInt8Request(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -50928,7 +49488,7 @@ func (s *Server) handleTestRequestRequiredStringInt8ArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -50939,12 +49499,8 @@ func (s *Server) handleTestRequestRequiredStringInt8ArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51068,7 +49624,7 @@ func (s *Server) handleTestRequestRequiredStringInt8ArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51079,12 +49635,8 @@ func (s *Server) handleTestRequestRequiredStringInt8ArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51208,7 +49760,7 @@ func (s *Server) handleTestRequestRequiredStringInt8NullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51219,12 +49771,8 @@ func (s *Server) handleTestRequestRequiredStringInt8NullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51348,7 +49896,7 @@ func (s *Server) handleTestRequestRequiredStringInt8NullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51359,12 +49907,8 @@ func (s *Server) handleTestRequestRequiredStringInt8NullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51488,7 +50032,7 @@ func (s *Server) handleTestRequestRequiredStringInt8NullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51499,12 +50043,8 @@ func (s *Server) handleTestRequestRequiredStringInt8NullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51628,7 +50168,7 @@ func (s *Server) handleTestRequestRequiredStringIntArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51639,12 +50179,8 @@ func (s *Server) handleTestRequestRequiredStringIntArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51768,7 +50304,7 @@ func (s *Server) handleTestRequestRequiredStringIntArrayArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51779,12 +50315,8 @@ func (s *Server) handleTestRequestRequiredStringIntArrayArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -51908,7 +50440,7 @@ func (s *Server) handleTestRequestRequiredStringIntNullableRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -51919,12 +50451,8 @@ func (s *Server) handleTestRequestRequiredStringIntNullableRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52048,7 +50576,7 @@ func (s *Server) handleTestRequestRequiredStringIntNullableArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52059,12 +50587,8 @@ func (s *Server) handleTestRequestRequiredStringIntNullableArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52188,7 +50712,7 @@ func (s *Server) handleTestRequestRequiredStringIntNullableArrayArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52199,12 +50723,8 @@ func (s *Server) handleTestRequestRequiredStringIntNullableArrayArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52328,7 +50848,7 @@ func (s *Server) handleTestRequestRequiredStringIpv4Request(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52339,12 +50859,8 @@ func (s *Server) handleTestRequestRequiredStringIpv4Request(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52468,7 +50984,7 @@ func (s *Server) handleTestRequestRequiredStringIpv4ArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52479,12 +50995,8 @@ func (s *Server) handleTestRequestRequiredStringIpv4ArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52608,7 +51120,7 @@ func (s *Server) handleTestRequestRequiredStringIpv4ArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52619,12 +51131,8 @@ func (s *Server) handleTestRequestRequiredStringIpv4ArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52748,7 +51256,7 @@ func (s *Server) handleTestRequestRequiredStringIpv4NullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52759,12 +51267,8 @@ func (s *Server) handleTestRequestRequiredStringIpv4NullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -52888,7 +51392,7 @@ func (s *Server) handleTestRequestRequiredStringIpv4NullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -52899,12 +51403,8 @@ func (s *Server) handleTestRequestRequiredStringIpv4NullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53028,7 +51528,7 @@ func (s *Server) handleTestRequestRequiredStringIpv4NullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53039,12 +51539,8 @@ func (s *Server) handleTestRequestRequiredStringIpv4NullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53168,7 +51664,7 @@ func (s *Server) handleTestRequestRequiredStringIpv6Request(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53179,12 +51675,8 @@ func (s *Server) handleTestRequestRequiredStringIpv6Request(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53308,7 +51800,7 @@ func (s *Server) handleTestRequestRequiredStringIpv6ArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53319,12 +51811,8 @@ func (s *Server) handleTestRequestRequiredStringIpv6ArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53448,7 +51936,7 @@ func (s *Server) handleTestRequestRequiredStringIpv6ArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53459,12 +51947,8 @@ func (s *Server) handleTestRequestRequiredStringIpv6ArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53588,7 +52072,7 @@ func (s *Server) handleTestRequestRequiredStringIpv6NullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53599,12 +52083,8 @@ func (s *Server) handleTestRequestRequiredStringIpv6NullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53728,7 +52208,7 @@ func (s *Server) handleTestRequestRequiredStringIpv6NullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53739,12 +52219,8 @@ func (s *Server) handleTestRequestRequiredStringIpv6NullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -53868,7 +52344,7 @@ func (s *Server) handleTestRequestRequiredStringIpv6NullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -53879,12 +52355,8 @@ func (s *Server) handleTestRequestRequiredStringIpv6NullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54008,7 +52480,7 @@ func (s *Server) handleTestRequestRequiredStringMACRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54019,12 +52491,8 @@ func (s *Server) handleTestRequestRequiredStringMACRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54148,7 +52616,7 @@ func (s *Server) handleTestRequestRequiredStringMACArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54159,12 +52627,8 @@ func (s *Server) handleTestRequestRequiredStringMACArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54288,7 +52752,7 @@ func (s *Server) handleTestRequestRequiredStringMACArrayArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54299,12 +52763,8 @@ func (s *Server) handleTestRequestRequiredStringMACArrayArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54428,7 +52888,7 @@ func (s *Server) handleTestRequestRequiredStringMACNullableRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54439,12 +52899,8 @@ func (s *Server) handleTestRequestRequiredStringMACNullableRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54568,7 +53024,7 @@ func (s *Server) handleTestRequestRequiredStringMACNullableArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54579,12 +53035,8 @@ func (s *Server) handleTestRequestRequiredStringMACNullableArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54708,7 +53160,7 @@ func (s *Server) handleTestRequestRequiredStringMACNullableArrayArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54719,12 +53171,8 @@ func (s *Server) handleTestRequestRequiredStringMACNullableArrayArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54848,7 +53296,7 @@ func (s *Server) handleTestRequestRequiredStringNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54859,12 +53307,8 @@ func (s *Server) handleTestRequestRequiredStringNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -54988,7 +53432,7 @@ func (s *Server) handleTestRequestRequiredStringNullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -54999,12 +53443,8 @@ func (s *Server) handleTestRequestRequiredStringNullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55128,7 +53568,7 @@ func (s *Server) handleTestRequestRequiredStringNullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55139,12 +53579,8 @@ func (s *Server) handleTestRequestRequiredStringNullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55268,7 +53704,7 @@ func (s *Server) handleTestRequestRequiredStringPasswordRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55279,12 +53715,8 @@ func (s *Server) handleTestRequestRequiredStringPasswordRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55408,7 +53840,7 @@ func (s *Server) handleTestRequestRequiredStringPasswordArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55419,12 +53851,8 @@ func (s *Server) handleTestRequestRequiredStringPasswordArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55548,7 +53976,7 @@ func (s *Server) handleTestRequestRequiredStringPasswordArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55559,12 +53987,8 @@ func (s *Server) handleTestRequestRequiredStringPasswordArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55688,7 +54112,7 @@ func (s *Server) handleTestRequestRequiredStringPasswordNullableRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55699,12 +54123,8 @@ func (s *Server) handleTestRequestRequiredStringPasswordNullableRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55828,7 +54248,7 @@ func (s *Server) handleTestRequestRequiredStringPasswordNullableArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55839,12 +54259,8 @@ func (s *Server) handleTestRequestRequiredStringPasswordNullableArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -55968,7 +54384,7 @@ func (s *Server) handleTestRequestRequiredStringPasswordNullableArrayArrayReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -55979,12 +54395,8 @@ func (s *Server) handleTestRequestRequiredStringPasswordNullableArrayArrayReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56108,7 +54520,7 @@ func (s *Server) handleTestRequestRequiredStringTimeRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56119,12 +54531,8 @@ func (s *Server) handleTestRequestRequiredStringTimeRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56248,7 +54656,7 @@ func (s *Server) handleTestRequestRequiredStringTimeArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56259,12 +54667,8 @@ func (s *Server) handleTestRequestRequiredStringTimeArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56388,7 +54792,7 @@ func (s *Server) handleTestRequestRequiredStringTimeArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56399,12 +54803,8 @@ func (s *Server) handleTestRequestRequiredStringTimeArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56528,7 +54928,7 @@ func (s *Server) handleTestRequestRequiredStringTimeNullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56539,12 +54939,8 @@ func (s *Server) handleTestRequestRequiredStringTimeNullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56668,7 +55064,7 @@ func (s *Server) handleTestRequestRequiredStringTimeNullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56679,12 +55075,8 @@ func (s *Server) handleTestRequestRequiredStringTimeNullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56808,7 +55200,7 @@ func (s *Server) handleTestRequestRequiredStringTimeNullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56819,12 +55211,8 @@ func (s *Server) handleTestRequestRequiredStringTimeNullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -56948,7 +55336,7 @@ func (s *Server) handleTestRequestRequiredStringURIRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -56959,12 +55347,8 @@ func (s *Server) handleTestRequestRequiredStringURIRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57088,7 +55472,7 @@ func (s *Server) handleTestRequestRequiredStringURIArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57099,12 +55483,8 @@ func (s *Server) handleTestRequestRequiredStringURIArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57228,7 +55608,7 @@ func (s *Server) handleTestRequestRequiredStringURIArrayArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57239,12 +55619,8 @@ func (s *Server) handleTestRequestRequiredStringURIArrayArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57368,7 +55744,7 @@ func (s *Server) handleTestRequestRequiredStringURINullableRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57379,12 +55755,8 @@ func (s *Server) handleTestRequestRequiredStringURINullableRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57508,7 +55880,7 @@ func (s *Server) handleTestRequestRequiredStringURINullableArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57519,12 +55891,8 @@ func (s *Server) handleTestRequestRequiredStringURINullableArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57648,7 +56016,7 @@ func (s *Server) handleTestRequestRequiredStringURINullableArrayArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57659,12 +56027,8 @@ func (s *Server) handleTestRequestRequiredStringURINullableArrayArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57788,7 +56152,7 @@ func (s *Server) handleTestRequestRequiredStringUUIDRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57799,12 +56163,8 @@ func (s *Server) handleTestRequestRequiredStringUUIDRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -57928,7 +56288,7 @@ func (s *Server) handleTestRequestRequiredStringUUIDArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -57939,12 +56299,8 @@ func (s *Server) handleTestRequestRequiredStringUUIDArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58068,7 +56424,7 @@ func (s *Server) handleTestRequestRequiredStringUUIDArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58079,12 +56435,8 @@ func (s *Server) handleTestRequestRequiredStringUUIDArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58208,7 +56560,7 @@ func (s *Server) handleTestRequestRequiredStringUUIDNullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58219,12 +56571,8 @@ func (s *Server) handleTestRequestRequiredStringUUIDNullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58348,7 +56696,7 @@ func (s *Server) handleTestRequestRequiredStringUUIDNullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58359,12 +56707,8 @@ func (s *Server) handleTestRequestRequiredStringUUIDNullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58488,7 +56832,7 @@ func (s *Server) handleTestRequestRequiredStringUUIDNullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58499,12 +56843,8 @@ func (s *Server) handleTestRequestRequiredStringUUIDNullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58628,7 +56968,7 @@ func (s *Server) handleTestRequestRequiredStringUintRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58639,12 +56979,8 @@ func (s *Server) handleTestRequestRequiredStringUintRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58768,7 +57104,7 @@ func (s *Server) handleTestRequestRequiredStringUint16Request(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58779,12 +57115,8 @@ func (s *Server) handleTestRequestRequiredStringUint16Request(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -58908,7 +57240,7 @@ func (s *Server) handleTestRequestRequiredStringUint16ArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -58919,12 +57251,8 @@ func (s *Server) handleTestRequestRequiredStringUint16ArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59048,7 +57376,7 @@ func (s *Server) handleTestRequestRequiredStringUint16ArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59059,12 +57387,8 @@ func (s *Server) handleTestRequestRequiredStringUint16ArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59188,7 +57512,7 @@ func (s *Server) handleTestRequestRequiredStringUint16NullableRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59199,12 +57523,8 @@ func (s *Server) handleTestRequestRequiredStringUint16NullableRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59328,7 +57648,7 @@ func (s *Server) handleTestRequestRequiredStringUint16NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59339,12 +57659,8 @@ func (s *Server) handleTestRequestRequiredStringUint16NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59468,7 +57784,7 @@ func (s *Server) handleTestRequestRequiredStringUint16NullableArrayArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59479,12 +57795,8 @@ func (s *Server) handleTestRequestRequiredStringUint16NullableArrayArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59608,7 +57920,7 @@ func (s *Server) handleTestRequestRequiredStringUint32Request(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59619,12 +57931,8 @@ func (s *Server) handleTestRequestRequiredStringUint32Request(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59748,7 +58056,7 @@ func (s *Server) handleTestRequestRequiredStringUint32ArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59759,12 +58067,8 @@ func (s *Server) handleTestRequestRequiredStringUint32ArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -59888,7 +58192,7 @@ func (s *Server) handleTestRequestRequiredStringUint32ArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -59899,12 +58203,8 @@ func (s *Server) handleTestRequestRequiredStringUint32ArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60028,7 +58328,7 @@ func (s *Server) handleTestRequestRequiredStringUint32NullableRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60039,12 +58339,8 @@ func (s *Server) handleTestRequestRequiredStringUint32NullableRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60168,7 +58464,7 @@ func (s *Server) handleTestRequestRequiredStringUint32NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60179,12 +58475,8 @@ func (s *Server) handleTestRequestRequiredStringUint32NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60308,7 +58600,7 @@ func (s *Server) handleTestRequestRequiredStringUint32NullableArrayArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60319,12 +58611,8 @@ func (s *Server) handleTestRequestRequiredStringUint32NullableArrayArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60448,7 +58736,7 @@ func (s *Server) handleTestRequestRequiredStringUint64Request(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60459,12 +58747,8 @@ func (s *Server) handleTestRequestRequiredStringUint64Request(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60588,7 +58872,7 @@ func (s *Server) handleTestRequestRequiredStringUint64ArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60599,12 +58883,8 @@ func (s *Server) handleTestRequestRequiredStringUint64ArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60728,7 +59008,7 @@ func (s *Server) handleTestRequestRequiredStringUint64ArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60739,12 +59019,8 @@ func (s *Server) handleTestRequestRequiredStringUint64ArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -60868,7 +59144,7 @@ func (s *Server) handleTestRequestRequiredStringUint64NullableRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -60879,12 +59155,8 @@ func (s *Server) handleTestRequestRequiredStringUint64NullableRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61008,7 +59280,7 @@ func (s *Server) handleTestRequestRequiredStringUint64NullableArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61019,12 +59291,8 @@ func (s *Server) handleTestRequestRequiredStringUint64NullableArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61148,7 +59416,7 @@ func (s *Server) handleTestRequestRequiredStringUint64NullableArrayArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61159,12 +59427,8 @@ func (s *Server) handleTestRequestRequiredStringUint64NullableArrayArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61288,7 +59552,7 @@ func (s *Server) handleTestRequestRequiredStringUint8Request(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61299,12 +59563,8 @@ func (s *Server) handleTestRequestRequiredStringUint8Request(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61428,7 +59688,7 @@ func (s *Server) handleTestRequestRequiredStringUint8ArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61439,12 +59699,8 @@ func (s *Server) handleTestRequestRequiredStringUint8ArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61568,7 +59824,7 @@ func (s *Server) handleTestRequestRequiredStringUint8ArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61579,12 +59835,8 @@ func (s *Server) handleTestRequestRequiredStringUint8ArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61708,7 +59960,7 @@ func (s *Server) handleTestRequestRequiredStringUint8NullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61719,12 +59971,8 @@ func (s *Server) handleTestRequestRequiredStringUint8NullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61848,7 +60096,7 @@ func (s *Server) handleTestRequestRequiredStringUint8NullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61859,12 +60107,8 @@ func (s *Server) handleTestRequestRequiredStringUint8NullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -61988,7 +60232,7 @@ func (s *Server) handleTestRequestRequiredStringUint8NullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -61999,12 +60243,8 @@ func (s *Server) handleTestRequestRequiredStringUint8NullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62128,7 +60368,7 @@ func (s *Server) handleTestRequestRequiredStringUintArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62139,12 +60379,8 @@ func (s *Server) handleTestRequestRequiredStringUintArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62268,7 +60504,7 @@ func (s *Server) handleTestRequestRequiredStringUintArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62279,12 +60515,8 @@ func (s *Server) handleTestRequestRequiredStringUintArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62408,7 +60640,7 @@ func (s *Server) handleTestRequestRequiredStringUintNullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62419,12 +60651,8 @@ func (s *Server) handleTestRequestRequiredStringUintNullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62548,7 +60776,7 @@ func (s *Server) handleTestRequestRequiredStringUintNullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62559,12 +60787,8 @@ func (s *Server) handleTestRequestRequiredStringUintNullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62688,7 +60912,7 @@ func (s *Server) handleTestRequestRequiredStringUintNullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62699,12 +60923,8 @@ func (s *Server) handleTestRequestRequiredStringUintNullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62828,7 +61048,7 @@ func (s *Server) handleTestRequestRequiredStringUnixRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62839,12 +61059,8 @@ func (s *Server) handleTestRequestRequiredStringUnixRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -62968,7 +61184,7 @@ func (s *Server) handleTestRequestRequiredStringUnixArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -62979,12 +61195,8 @@ func (s *Server) handleTestRequestRequiredStringUnixArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63108,7 +61320,7 @@ func (s *Server) handleTestRequestRequiredStringUnixArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63119,12 +61331,8 @@ func (s *Server) handleTestRequestRequiredStringUnixArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63248,7 +61456,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63259,12 +61467,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63388,7 +61592,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63399,12 +61603,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63528,7 +61728,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63539,12 +61739,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63668,7 +61864,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroNullableRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63679,12 +61875,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroNullableRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63808,7 +62000,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroNullableArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63819,12 +62011,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroNullableArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -63948,7 +62136,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroNullableArrayArrayReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -63959,12 +62147,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroNullableArrayArrayReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64088,7 +62272,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64099,12 +62283,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64228,7 +62408,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64239,12 +62419,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64368,7 +62544,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64379,12 +62555,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64508,7 +62680,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliNullableRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64519,12 +62691,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliNullableRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64648,7 +62816,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliNullableArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64659,12 +62827,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliNullableArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64788,7 +62952,7 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliNullableArrayArrayReque s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64799,12 +62963,8 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliNullableArrayArrayReque // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -64928,7 +63088,7 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -64939,12 +63099,8 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65068,7 +63224,7 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65079,12 +63235,8 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65208,7 +63360,7 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65219,12 +63371,8 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65348,7 +63496,7 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoNullableRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65359,12 +63507,8 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoNullableRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65488,7 +63632,7 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoNullableArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65499,12 +63643,8 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoNullableArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65628,7 +63768,7 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoNullableArrayArrayReques s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65639,12 +63779,8 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoNullableArrayArrayReques // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65768,7 +63904,7 @@ func (s *Server) handleTestRequestRequiredStringUnixNullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65779,12 +63915,8 @@ func (s *Server) handleTestRequestRequiredStringUnixNullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -65908,7 +64040,7 @@ func (s *Server) handleTestRequestRequiredStringUnixNullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -65919,12 +64051,8 @@ func (s *Server) handleTestRequestRequiredStringUnixNullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66048,7 +64176,7 @@ func (s *Server) handleTestRequestRequiredStringUnixNullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66059,12 +64187,8 @@ func (s *Server) handleTestRequestRequiredStringUnixNullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66188,7 +64312,7 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66199,12 +64323,8 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66328,7 +64448,7 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66339,12 +64459,8 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66468,7 +64584,7 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsArrayArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66479,12 +64595,8 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsArrayArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66608,7 +64720,7 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsNullableRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66619,12 +64731,8 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsNullableRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66748,7 +64856,7 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsNullableArrayRequest( s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66759,12 +64867,8 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsNullableArrayRequest( // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -66888,7 +64992,7 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsNullableArrayArrayReq s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -66899,12 +65003,8 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsNullableArrayArrayReq // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67028,7 +65128,7 @@ func (s *Server) handleTestRequestStringRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67039,12 +65139,8 @@ func (s *Server) handleTestRequestStringRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67168,7 +65264,7 @@ func (s *Server) handleTestRequestStringArrayRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67179,12 +65275,8 @@ func (s *Server) handleTestRequestStringArrayRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67308,7 +65400,7 @@ func (s *Server) handleTestRequestStringArrayArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67319,12 +65411,8 @@ func (s *Server) handleTestRequestStringArrayArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67448,7 +65536,7 @@ func (s *Server) handleTestRequestStringBase64Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67459,12 +65547,8 @@ func (s *Server) handleTestRequestStringBase64Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67588,7 +65672,7 @@ func (s *Server) handleTestRequestStringBase64ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67599,12 +65683,8 @@ func (s *Server) handleTestRequestStringBase64ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67728,7 +65808,7 @@ func (s *Server) handleTestRequestStringBase64ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67739,12 +65819,8 @@ func (s *Server) handleTestRequestStringBase64ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -67868,7 +65944,7 @@ func (s *Server) handleTestRequestStringBase64NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -67879,12 +65955,8 @@ func (s *Server) handleTestRequestStringBase64NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68008,7 +66080,7 @@ func (s *Server) handleTestRequestStringBase64NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68019,12 +66091,8 @@ func (s *Server) handleTestRequestStringBase64NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68148,7 +66216,7 @@ func (s *Server) handleTestRequestStringBase64NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68159,12 +66227,8 @@ func (s *Server) handleTestRequestStringBase64NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68288,7 +66352,7 @@ func (s *Server) handleTestRequestStringBinaryRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68299,12 +66363,8 @@ func (s *Server) handleTestRequestStringBinaryRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68428,7 +66488,7 @@ func (s *Server) handleTestRequestStringBinaryArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68439,12 +66499,8 @@ func (s *Server) handleTestRequestStringBinaryArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68568,7 +66624,7 @@ func (s *Server) handleTestRequestStringBinaryArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68579,12 +66635,8 @@ func (s *Server) handleTestRequestStringBinaryArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68708,7 +66760,7 @@ func (s *Server) handleTestRequestStringBinaryNullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68719,12 +66771,8 @@ func (s *Server) handleTestRequestStringBinaryNullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68848,7 +66896,7 @@ func (s *Server) handleTestRequestStringBinaryNullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68859,12 +66907,8 @@ func (s *Server) handleTestRequestStringBinaryNullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -68988,7 +67032,7 @@ func (s *Server) handleTestRequestStringBinaryNullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -68999,12 +67043,8 @@ func (s *Server) handleTestRequestStringBinaryNullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69128,7 +67168,7 @@ func (s *Server) handleTestRequestStringByteRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69139,12 +67179,8 @@ func (s *Server) handleTestRequestStringByteRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69268,7 +67304,7 @@ func (s *Server) handleTestRequestStringByteArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69279,12 +67315,8 @@ func (s *Server) handleTestRequestStringByteArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69408,7 +67440,7 @@ func (s *Server) handleTestRequestStringByteArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69419,12 +67451,8 @@ func (s *Server) handleTestRequestStringByteArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69548,7 +67576,7 @@ func (s *Server) handleTestRequestStringByteNullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69559,12 +67587,8 @@ func (s *Server) handleTestRequestStringByteNullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69688,7 +67712,7 @@ func (s *Server) handleTestRequestStringByteNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69699,12 +67723,8 @@ func (s *Server) handleTestRequestStringByteNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69828,7 +67848,7 @@ func (s *Server) handleTestRequestStringByteNullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69839,12 +67859,8 @@ func (s *Server) handleTestRequestStringByteNullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -69968,7 +67984,7 @@ func (s *Server) handleTestRequestStringDateRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -69979,12 +67995,8 @@ func (s *Server) handleTestRequestStringDateRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70108,7 +68120,7 @@ func (s *Server) handleTestRequestStringDateArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70119,12 +68131,8 @@ func (s *Server) handleTestRequestStringDateArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70248,7 +68256,7 @@ func (s *Server) handleTestRequestStringDateArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70259,12 +68267,8 @@ func (s *Server) handleTestRequestStringDateArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70388,7 +68392,7 @@ func (s *Server) handleTestRequestStringDateNullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70399,12 +68403,8 @@ func (s *Server) handleTestRequestStringDateNullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70528,7 +68528,7 @@ func (s *Server) handleTestRequestStringDateNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70539,12 +68539,8 @@ func (s *Server) handleTestRequestStringDateNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70668,7 +68664,7 @@ func (s *Server) handleTestRequestStringDateNullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70679,12 +68675,8 @@ func (s *Server) handleTestRequestStringDateNullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70808,7 +68800,7 @@ func (s *Server) handleTestRequestStringDateTimeRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70819,12 +68811,8 @@ func (s *Server) handleTestRequestStringDateTimeRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -70948,7 +68936,7 @@ func (s *Server) handleTestRequestStringDateTimeArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -70959,12 +68947,8 @@ func (s *Server) handleTestRequestStringDateTimeArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71088,7 +69072,7 @@ func (s *Server) handleTestRequestStringDateTimeArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71099,12 +69083,8 @@ func (s *Server) handleTestRequestStringDateTimeArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71228,7 +69208,7 @@ func (s *Server) handleTestRequestStringDateTimeNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71239,12 +69219,8 @@ func (s *Server) handleTestRequestStringDateTimeNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71368,7 +69344,7 @@ func (s *Server) handleTestRequestStringDateTimeNullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71379,12 +69355,8 @@ func (s *Server) handleTestRequestStringDateTimeNullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71508,7 +69480,7 @@ func (s *Server) handleTestRequestStringDateTimeNullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71519,12 +69491,8 @@ func (s *Server) handleTestRequestStringDateTimeNullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71648,7 +69616,7 @@ func (s *Server) handleTestRequestStringDurationRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71659,12 +69627,8 @@ func (s *Server) handleTestRequestStringDurationRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71788,7 +69752,7 @@ func (s *Server) handleTestRequestStringDurationArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71799,12 +69763,8 @@ func (s *Server) handleTestRequestStringDurationArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -71928,7 +69888,7 @@ func (s *Server) handleTestRequestStringDurationArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -71939,12 +69899,8 @@ func (s *Server) handleTestRequestStringDurationArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72068,7 +70024,7 @@ func (s *Server) handleTestRequestStringDurationNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72079,12 +70035,8 @@ func (s *Server) handleTestRequestStringDurationNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72208,7 +70160,7 @@ func (s *Server) handleTestRequestStringDurationNullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72219,12 +70171,8 @@ func (s *Server) handleTestRequestStringDurationNullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72348,7 +70296,7 @@ func (s *Server) handleTestRequestStringDurationNullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72359,12 +70307,8 @@ func (s *Server) handleTestRequestStringDurationNullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72488,7 +70432,7 @@ func (s *Server) handleTestRequestStringEmailRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72499,12 +70443,8 @@ func (s *Server) handleTestRequestStringEmailRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72628,7 +70568,7 @@ func (s *Server) handleTestRequestStringEmailArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72639,12 +70579,8 @@ func (s *Server) handleTestRequestStringEmailArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72768,7 +70704,7 @@ func (s *Server) handleTestRequestStringEmailArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72779,12 +70715,8 @@ func (s *Server) handleTestRequestStringEmailArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -72908,7 +70840,7 @@ func (s *Server) handleTestRequestStringEmailNullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -72919,12 +70851,8 @@ func (s *Server) handleTestRequestStringEmailNullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73048,7 +70976,7 @@ func (s *Server) handleTestRequestStringEmailNullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73059,12 +70987,8 @@ func (s *Server) handleTestRequestStringEmailNullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73188,7 +71112,7 @@ func (s *Server) handleTestRequestStringEmailNullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73199,12 +71123,8 @@ func (s *Server) handleTestRequestStringEmailNullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73328,7 +71248,7 @@ func (s *Server) handleTestRequestStringFloat32Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73339,12 +71259,8 @@ func (s *Server) handleTestRequestStringFloat32Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73468,7 +71384,7 @@ func (s *Server) handleTestRequestStringFloat32ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73479,12 +71395,8 @@ func (s *Server) handleTestRequestStringFloat32ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73608,7 +71520,7 @@ func (s *Server) handleTestRequestStringFloat32ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73619,12 +71531,8 @@ func (s *Server) handleTestRequestStringFloat32ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73748,7 +71656,7 @@ func (s *Server) handleTestRequestStringFloat32NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73759,12 +71667,8 @@ func (s *Server) handleTestRequestStringFloat32NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -73888,7 +71792,7 @@ func (s *Server) handleTestRequestStringFloat32NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -73899,12 +71803,8 @@ func (s *Server) handleTestRequestStringFloat32NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74028,7 +71928,7 @@ func (s *Server) handleTestRequestStringFloat32NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74039,12 +71939,8 @@ func (s *Server) handleTestRequestStringFloat32NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74168,7 +72064,7 @@ func (s *Server) handleTestRequestStringFloat64Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74179,12 +72075,8 @@ func (s *Server) handleTestRequestStringFloat64Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74308,7 +72200,7 @@ func (s *Server) handleTestRequestStringFloat64ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74319,12 +72211,8 @@ func (s *Server) handleTestRequestStringFloat64ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74448,7 +72336,7 @@ func (s *Server) handleTestRequestStringFloat64ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74459,12 +72347,8 @@ func (s *Server) handleTestRequestStringFloat64ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74588,7 +72472,7 @@ func (s *Server) handleTestRequestStringFloat64NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74599,12 +72483,8 @@ func (s *Server) handleTestRequestStringFloat64NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74728,7 +72608,7 @@ func (s *Server) handleTestRequestStringFloat64NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74739,12 +72619,8 @@ func (s *Server) handleTestRequestStringFloat64NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -74868,7 +72744,7 @@ func (s *Server) handleTestRequestStringFloat64NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -74879,12 +72755,8 @@ func (s *Server) handleTestRequestStringFloat64NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75008,7 +72880,7 @@ func (s *Server) handleTestRequestStringHostnameRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75019,12 +72891,8 @@ func (s *Server) handleTestRequestStringHostnameRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75148,7 +73016,7 @@ func (s *Server) handleTestRequestStringHostnameArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75159,12 +73027,8 @@ func (s *Server) handleTestRequestStringHostnameArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75288,7 +73152,7 @@ func (s *Server) handleTestRequestStringHostnameArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75299,12 +73163,8 @@ func (s *Server) handleTestRequestStringHostnameArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75428,7 +73288,7 @@ func (s *Server) handleTestRequestStringHostnameNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75439,12 +73299,8 @@ func (s *Server) handleTestRequestStringHostnameNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75568,7 +73424,7 @@ func (s *Server) handleTestRequestStringHostnameNullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75579,12 +73435,8 @@ func (s *Server) handleTestRequestStringHostnameNullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75708,7 +73560,7 @@ func (s *Server) handleTestRequestStringHostnameNullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75719,12 +73571,8 @@ func (s *Server) handleTestRequestStringHostnameNullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75848,7 +73696,7 @@ func (s *Server) handleTestRequestStringIPRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75859,12 +73707,8 @@ func (s *Server) handleTestRequestStringIPRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -75988,7 +73832,7 @@ func (s *Server) handleTestRequestStringIPArrayRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -75999,12 +73843,8 @@ func (s *Server) handleTestRequestStringIPArrayRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76128,7 +73968,7 @@ func (s *Server) handleTestRequestStringIPArrayArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76139,12 +73979,8 @@ func (s *Server) handleTestRequestStringIPArrayArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76268,7 +74104,7 @@ func (s *Server) handleTestRequestStringIPNullableRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76279,12 +74115,8 @@ func (s *Server) handleTestRequestStringIPNullableRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76408,7 +74240,7 @@ func (s *Server) handleTestRequestStringIPNullableArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76419,12 +74251,8 @@ func (s *Server) handleTestRequestStringIPNullableArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76548,7 +74376,7 @@ func (s *Server) handleTestRequestStringIPNullableArrayArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76559,12 +74387,8 @@ func (s *Server) handleTestRequestStringIPNullableArrayArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76688,7 +74512,7 @@ func (s *Server) handleTestRequestStringIntRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76699,12 +74523,8 @@ func (s *Server) handleTestRequestStringIntRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76828,7 +74648,7 @@ func (s *Server) handleTestRequestStringInt16Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76839,12 +74659,8 @@ func (s *Server) handleTestRequestStringInt16Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -76968,7 +74784,7 @@ func (s *Server) handleTestRequestStringInt16ArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -76979,12 +74795,8 @@ func (s *Server) handleTestRequestStringInt16ArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77108,7 +74920,7 @@ func (s *Server) handleTestRequestStringInt16ArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77119,12 +74931,8 @@ func (s *Server) handleTestRequestStringInt16ArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77248,7 +75056,7 @@ func (s *Server) handleTestRequestStringInt16NullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77259,12 +75067,8 @@ func (s *Server) handleTestRequestStringInt16NullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77388,7 +75192,7 @@ func (s *Server) handleTestRequestStringInt16NullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77399,12 +75203,8 @@ func (s *Server) handleTestRequestStringInt16NullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77528,7 +75328,7 @@ func (s *Server) handleTestRequestStringInt16NullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77539,12 +75339,8 @@ func (s *Server) handleTestRequestStringInt16NullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77668,7 +75464,7 @@ func (s *Server) handleTestRequestStringInt32Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77679,12 +75475,8 @@ func (s *Server) handleTestRequestStringInt32Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77808,7 +75600,7 @@ func (s *Server) handleTestRequestStringInt32ArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77819,12 +75611,8 @@ func (s *Server) handleTestRequestStringInt32ArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -77948,7 +75736,7 @@ func (s *Server) handleTestRequestStringInt32ArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -77959,12 +75747,8 @@ func (s *Server) handleTestRequestStringInt32ArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78088,7 +75872,7 @@ func (s *Server) handleTestRequestStringInt32NullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78099,12 +75883,8 @@ func (s *Server) handleTestRequestStringInt32NullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78228,7 +76008,7 @@ func (s *Server) handleTestRequestStringInt32NullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78239,12 +76019,8 @@ func (s *Server) handleTestRequestStringInt32NullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78368,7 +76144,7 @@ func (s *Server) handleTestRequestStringInt32NullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78379,12 +76155,8 @@ func (s *Server) handleTestRequestStringInt32NullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78508,7 +76280,7 @@ func (s *Server) handleTestRequestStringInt64Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78519,12 +76291,8 @@ func (s *Server) handleTestRequestStringInt64Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78648,7 +76416,7 @@ func (s *Server) handleTestRequestStringInt64ArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78659,12 +76427,8 @@ func (s *Server) handleTestRequestStringInt64ArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78788,7 +76552,7 @@ func (s *Server) handleTestRequestStringInt64ArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78799,12 +76563,8 @@ func (s *Server) handleTestRequestStringInt64ArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -78928,7 +76688,7 @@ func (s *Server) handleTestRequestStringInt64NullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -78939,12 +76699,8 @@ func (s *Server) handleTestRequestStringInt64NullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79068,7 +76824,7 @@ func (s *Server) handleTestRequestStringInt64NullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79079,12 +76835,8 @@ func (s *Server) handleTestRequestStringInt64NullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79208,7 +76960,7 @@ func (s *Server) handleTestRequestStringInt64NullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79219,12 +76971,8 @@ func (s *Server) handleTestRequestStringInt64NullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79348,7 +77096,7 @@ func (s *Server) handleTestRequestStringInt8Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79359,12 +77107,8 @@ func (s *Server) handleTestRequestStringInt8Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79488,7 +77232,7 @@ func (s *Server) handleTestRequestStringInt8ArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79499,12 +77243,8 @@ func (s *Server) handleTestRequestStringInt8ArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79628,7 +77368,7 @@ func (s *Server) handleTestRequestStringInt8ArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79639,12 +77379,8 @@ func (s *Server) handleTestRequestStringInt8ArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79768,7 +77504,7 @@ func (s *Server) handleTestRequestStringInt8NullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79779,12 +77515,8 @@ func (s *Server) handleTestRequestStringInt8NullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -79908,7 +77640,7 @@ func (s *Server) handleTestRequestStringInt8NullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -79919,12 +77651,8 @@ func (s *Server) handleTestRequestStringInt8NullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80048,7 +77776,7 @@ func (s *Server) handleTestRequestStringInt8NullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80059,12 +77787,8 @@ func (s *Server) handleTestRequestStringInt8NullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80188,7 +77912,7 @@ func (s *Server) handleTestRequestStringIntArrayRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80199,12 +77923,8 @@ func (s *Server) handleTestRequestStringIntArrayRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80328,7 +78048,7 @@ func (s *Server) handleTestRequestStringIntArrayArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80339,12 +78059,8 @@ func (s *Server) handleTestRequestStringIntArrayArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80468,7 +78184,7 @@ func (s *Server) handleTestRequestStringIntNullableRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80479,12 +78195,8 @@ func (s *Server) handleTestRequestStringIntNullableRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80608,7 +78320,7 @@ func (s *Server) handleTestRequestStringIntNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80619,12 +78331,8 @@ func (s *Server) handleTestRequestStringIntNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80748,7 +78456,7 @@ func (s *Server) handleTestRequestStringIntNullableArrayArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80759,12 +78467,8 @@ func (s *Server) handleTestRequestStringIntNullableArrayArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -80888,7 +78592,7 @@ func (s *Server) handleTestRequestStringIpv4Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80899,12 +78603,8 @@ func (s *Server) handleTestRequestStringIpv4Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81028,7 +78728,7 @@ func (s *Server) handleTestRequestStringIpv4ArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81039,12 +78739,8 @@ func (s *Server) handleTestRequestStringIpv4ArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81168,7 +78864,7 @@ func (s *Server) handleTestRequestStringIpv4ArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81179,12 +78875,8 @@ func (s *Server) handleTestRequestStringIpv4ArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81308,7 +79000,7 @@ func (s *Server) handleTestRequestStringIpv4NullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81319,12 +79011,8 @@ func (s *Server) handleTestRequestStringIpv4NullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81448,7 +79136,7 @@ func (s *Server) handleTestRequestStringIpv4NullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81459,12 +79147,8 @@ func (s *Server) handleTestRequestStringIpv4NullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81588,7 +79272,7 @@ func (s *Server) handleTestRequestStringIpv4NullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81599,12 +79283,8 @@ func (s *Server) handleTestRequestStringIpv4NullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81728,7 +79408,7 @@ func (s *Server) handleTestRequestStringIpv6Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81739,12 +79419,8 @@ func (s *Server) handleTestRequestStringIpv6Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -81868,7 +79544,7 @@ func (s *Server) handleTestRequestStringIpv6ArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81879,12 +79555,8 @@ func (s *Server) handleTestRequestStringIpv6ArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82008,7 +79680,7 @@ func (s *Server) handleTestRequestStringIpv6ArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82019,12 +79691,8 @@ func (s *Server) handleTestRequestStringIpv6ArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82148,7 +79816,7 @@ func (s *Server) handleTestRequestStringIpv6NullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82159,12 +79827,8 @@ func (s *Server) handleTestRequestStringIpv6NullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82288,7 +79952,7 @@ func (s *Server) handleTestRequestStringIpv6NullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82299,12 +79963,8 @@ func (s *Server) handleTestRequestStringIpv6NullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82428,7 +80088,7 @@ func (s *Server) handleTestRequestStringIpv6NullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82439,12 +80099,8 @@ func (s *Server) handleTestRequestStringIpv6NullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82568,7 +80224,7 @@ func (s *Server) handleTestRequestStringMACRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82579,12 +80235,8 @@ func (s *Server) handleTestRequestStringMACRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82708,7 +80360,7 @@ func (s *Server) handleTestRequestStringMACArrayRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82719,12 +80371,8 @@ func (s *Server) handleTestRequestStringMACArrayRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82848,7 +80496,7 @@ func (s *Server) handleTestRequestStringMACArrayArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82859,12 +80507,8 @@ func (s *Server) handleTestRequestStringMACArrayArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -82988,7 +80632,7 @@ func (s *Server) handleTestRequestStringMACNullableRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82999,12 +80643,8 @@ func (s *Server) handleTestRequestStringMACNullableRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83128,7 +80768,7 @@ func (s *Server) handleTestRequestStringMACNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83139,12 +80779,8 @@ func (s *Server) handleTestRequestStringMACNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83268,7 +80904,7 @@ func (s *Server) handleTestRequestStringMACNullableArrayArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83279,12 +80915,8 @@ func (s *Server) handleTestRequestStringMACNullableArrayArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83408,7 +81040,7 @@ func (s *Server) handleTestRequestStringNullableRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83419,12 +81051,8 @@ func (s *Server) handleTestRequestStringNullableRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83548,7 +81176,7 @@ func (s *Server) handleTestRequestStringNullableArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83559,12 +81187,8 @@ func (s *Server) handleTestRequestStringNullableArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83688,7 +81312,7 @@ func (s *Server) handleTestRequestStringNullableArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83699,12 +81323,8 @@ func (s *Server) handleTestRequestStringNullableArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83828,7 +81448,7 @@ func (s *Server) handleTestRequestStringPasswordRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83839,12 +81459,8 @@ func (s *Server) handleTestRequestStringPasswordRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -83968,7 +81584,7 @@ func (s *Server) handleTestRequestStringPasswordArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83979,12 +81595,8 @@ func (s *Server) handleTestRequestStringPasswordArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84108,7 +81720,7 @@ func (s *Server) handleTestRequestStringPasswordArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84119,12 +81731,8 @@ func (s *Server) handleTestRequestStringPasswordArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84248,7 +81856,7 @@ func (s *Server) handleTestRequestStringPasswordNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84259,12 +81867,8 @@ func (s *Server) handleTestRequestStringPasswordNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84388,7 +81992,7 @@ func (s *Server) handleTestRequestStringPasswordNullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84399,12 +82003,8 @@ func (s *Server) handleTestRequestStringPasswordNullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84528,7 +82128,7 @@ func (s *Server) handleTestRequestStringPasswordNullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84539,12 +82139,8 @@ func (s *Server) handleTestRequestStringPasswordNullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84668,7 +82264,7 @@ func (s *Server) handleTestRequestStringTimeRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84679,12 +82275,8 @@ func (s *Server) handleTestRequestStringTimeRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84808,7 +82400,7 @@ func (s *Server) handleTestRequestStringTimeArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84819,12 +82411,8 @@ func (s *Server) handleTestRequestStringTimeArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -84948,7 +82536,7 @@ func (s *Server) handleTestRequestStringTimeArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84959,12 +82547,8 @@ func (s *Server) handleTestRequestStringTimeArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85088,7 +82672,7 @@ func (s *Server) handleTestRequestStringTimeNullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85099,12 +82683,8 @@ func (s *Server) handleTestRequestStringTimeNullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85228,7 +82808,7 @@ func (s *Server) handleTestRequestStringTimeNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85239,12 +82819,8 @@ func (s *Server) handleTestRequestStringTimeNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85368,7 +82944,7 @@ func (s *Server) handleTestRequestStringTimeNullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85379,12 +82955,8 @@ func (s *Server) handleTestRequestStringTimeNullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85508,7 +83080,7 @@ func (s *Server) handleTestRequestStringURIRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85519,12 +83091,8 @@ func (s *Server) handleTestRequestStringURIRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85648,7 +83216,7 @@ func (s *Server) handleTestRequestStringURIArrayRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85659,12 +83227,8 @@ func (s *Server) handleTestRequestStringURIArrayRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85788,7 +83352,7 @@ func (s *Server) handleTestRequestStringURIArrayArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85799,12 +83363,8 @@ func (s *Server) handleTestRequestStringURIArrayArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -85928,7 +83488,7 @@ func (s *Server) handleTestRequestStringURINullableRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85939,12 +83499,8 @@ func (s *Server) handleTestRequestStringURINullableRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86068,7 +83624,7 @@ func (s *Server) handleTestRequestStringURINullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86079,12 +83635,8 @@ func (s *Server) handleTestRequestStringURINullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86208,7 +83760,7 @@ func (s *Server) handleTestRequestStringURINullableArrayArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86219,12 +83771,8 @@ func (s *Server) handleTestRequestStringURINullableArrayArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86348,7 +83896,7 @@ func (s *Server) handleTestRequestStringUUIDRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86359,12 +83907,8 @@ func (s *Server) handleTestRequestStringUUIDRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86488,7 +84032,7 @@ func (s *Server) handleTestRequestStringUUIDArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86499,12 +84043,8 @@ func (s *Server) handleTestRequestStringUUIDArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86628,7 +84168,7 @@ func (s *Server) handleTestRequestStringUUIDArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86639,12 +84179,8 @@ func (s *Server) handleTestRequestStringUUIDArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86768,7 +84304,7 @@ func (s *Server) handleTestRequestStringUUIDNullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86779,12 +84315,8 @@ func (s *Server) handleTestRequestStringUUIDNullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -86908,7 +84440,7 @@ func (s *Server) handleTestRequestStringUUIDNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -86919,12 +84451,8 @@ func (s *Server) handleTestRequestStringUUIDNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87048,7 +84576,7 @@ func (s *Server) handleTestRequestStringUUIDNullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87059,12 +84587,8 @@ func (s *Server) handleTestRequestStringUUIDNullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87188,7 +84712,7 @@ func (s *Server) handleTestRequestStringUintRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87199,12 +84723,8 @@ func (s *Server) handleTestRequestStringUintRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87328,7 +84848,7 @@ func (s *Server) handleTestRequestStringUint16Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87339,12 +84859,8 @@ func (s *Server) handleTestRequestStringUint16Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87468,7 +84984,7 @@ func (s *Server) handleTestRequestStringUint16ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87479,12 +84995,8 @@ func (s *Server) handleTestRequestStringUint16ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87608,7 +85120,7 @@ func (s *Server) handleTestRequestStringUint16ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87619,12 +85131,8 @@ func (s *Server) handleTestRequestStringUint16ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87748,7 +85256,7 @@ func (s *Server) handleTestRequestStringUint16NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87759,12 +85267,8 @@ func (s *Server) handleTestRequestStringUint16NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -87888,7 +85392,7 @@ func (s *Server) handleTestRequestStringUint16NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -87899,12 +85403,8 @@ func (s *Server) handleTestRequestStringUint16NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88028,7 +85528,7 @@ func (s *Server) handleTestRequestStringUint16NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88039,12 +85539,8 @@ func (s *Server) handleTestRequestStringUint16NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88168,7 +85664,7 @@ func (s *Server) handleTestRequestStringUint32Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88179,12 +85675,8 @@ func (s *Server) handleTestRequestStringUint32Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88308,7 +85800,7 @@ func (s *Server) handleTestRequestStringUint32ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88319,12 +85811,8 @@ func (s *Server) handleTestRequestStringUint32ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88448,7 +85936,7 @@ func (s *Server) handleTestRequestStringUint32ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88459,12 +85947,8 @@ func (s *Server) handleTestRequestStringUint32ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88588,7 +86072,7 @@ func (s *Server) handleTestRequestStringUint32NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88599,12 +86083,8 @@ func (s *Server) handleTestRequestStringUint32NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88728,7 +86208,7 @@ func (s *Server) handleTestRequestStringUint32NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88739,12 +86219,8 @@ func (s *Server) handleTestRequestStringUint32NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -88868,7 +86344,7 @@ func (s *Server) handleTestRequestStringUint32NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -88879,12 +86355,8 @@ func (s *Server) handleTestRequestStringUint32NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89008,7 +86480,7 @@ func (s *Server) handleTestRequestStringUint64Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89019,12 +86491,8 @@ func (s *Server) handleTestRequestStringUint64Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89148,7 +86616,7 @@ func (s *Server) handleTestRequestStringUint64ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89159,12 +86627,8 @@ func (s *Server) handleTestRequestStringUint64ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89288,7 +86752,7 @@ func (s *Server) handleTestRequestStringUint64ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89299,12 +86763,8 @@ func (s *Server) handleTestRequestStringUint64ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89428,7 +86888,7 @@ func (s *Server) handleTestRequestStringUint64NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89439,12 +86899,8 @@ func (s *Server) handleTestRequestStringUint64NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89568,7 +87024,7 @@ func (s *Server) handleTestRequestStringUint64NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89579,12 +87035,8 @@ func (s *Server) handleTestRequestStringUint64NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89708,7 +87160,7 @@ func (s *Server) handleTestRequestStringUint64NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89719,12 +87171,8 @@ func (s *Server) handleTestRequestStringUint64NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89848,7 +87296,7 @@ func (s *Server) handleTestRequestStringUint8Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89859,12 +87307,8 @@ func (s *Server) handleTestRequestStringUint8Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -89988,7 +87432,7 @@ func (s *Server) handleTestRequestStringUint8ArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -89999,12 +87443,8 @@ func (s *Server) handleTestRequestStringUint8ArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90128,7 +87568,7 @@ func (s *Server) handleTestRequestStringUint8ArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90139,12 +87579,8 @@ func (s *Server) handleTestRequestStringUint8ArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90268,7 +87704,7 @@ func (s *Server) handleTestRequestStringUint8NullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90279,12 +87715,8 @@ func (s *Server) handleTestRequestStringUint8NullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90408,7 +87840,7 @@ func (s *Server) handleTestRequestStringUint8NullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90419,12 +87851,8 @@ func (s *Server) handleTestRequestStringUint8NullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90548,7 +87976,7 @@ func (s *Server) handleTestRequestStringUint8NullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90559,12 +87987,8 @@ func (s *Server) handleTestRequestStringUint8NullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90688,7 +88112,7 @@ func (s *Server) handleTestRequestStringUintArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90699,12 +88123,8 @@ func (s *Server) handleTestRequestStringUintArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90828,7 +88248,7 @@ func (s *Server) handleTestRequestStringUintArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90839,12 +88259,8 @@ func (s *Server) handleTestRequestStringUintArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -90968,7 +88384,7 @@ func (s *Server) handleTestRequestStringUintNullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90979,12 +88395,8 @@ func (s *Server) handleTestRequestStringUintNullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91108,7 +88520,7 @@ func (s *Server) handleTestRequestStringUintNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91119,12 +88531,8 @@ func (s *Server) handleTestRequestStringUintNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91248,7 +88656,7 @@ func (s *Server) handleTestRequestStringUintNullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91259,12 +88667,8 @@ func (s *Server) handleTestRequestStringUintNullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91388,7 +88792,7 @@ func (s *Server) handleTestRequestStringUnixRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91399,12 +88803,8 @@ func (s *Server) handleTestRequestStringUnixRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91528,7 +88928,7 @@ func (s *Server) handleTestRequestStringUnixArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91539,12 +88939,8 @@ func (s *Server) handleTestRequestStringUnixArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91668,7 +89064,7 @@ func (s *Server) handleTestRequestStringUnixArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91679,12 +89075,8 @@ func (s *Server) handleTestRequestStringUnixArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91808,7 +89200,7 @@ func (s *Server) handleTestRequestStringUnixMicroRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91819,12 +89211,8 @@ func (s *Server) handleTestRequestStringUnixMicroRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -91948,7 +89336,7 @@ func (s *Server) handleTestRequestStringUnixMicroArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -91959,12 +89347,8 @@ func (s *Server) handleTestRequestStringUnixMicroArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92088,7 +89472,7 @@ func (s *Server) handleTestRequestStringUnixMicroArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92099,12 +89483,8 @@ func (s *Server) handleTestRequestStringUnixMicroArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92228,7 +89608,7 @@ func (s *Server) handleTestRequestStringUnixMicroNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92239,12 +89619,8 @@ func (s *Server) handleTestRequestStringUnixMicroNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92368,7 +89744,7 @@ func (s *Server) handleTestRequestStringUnixMicroNullableArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92379,12 +89755,8 @@ func (s *Server) handleTestRequestStringUnixMicroNullableArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92508,7 +89880,7 @@ func (s *Server) handleTestRequestStringUnixMicroNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92519,12 +89891,8 @@ func (s *Server) handleTestRequestStringUnixMicroNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92648,7 +90016,7 @@ func (s *Server) handleTestRequestStringUnixMilliRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92659,12 +90027,8 @@ func (s *Server) handleTestRequestStringUnixMilliRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92788,7 +90152,7 @@ func (s *Server) handleTestRequestStringUnixMilliArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92799,12 +90163,8 @@ func (s *Server) handleTestRequestStringUnixMilliArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -92928,7 +90288,7 @@ func (s *Server) handleTestRequestStringUnixMilliArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -92939,12 +90299,8 @@ func (s *Server) handleTestRequestStringUnixMilliArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93068,7 +90424,7 @@ func (s *Server) handleTestRequestStringUnixMilliNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93079,12 +90435,8 @@ func (s *Server) handleTestRequestStringUnixMilliNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93208,7 +90560,7 @@ func (s *Server) handleTestRequestStringUnixMilliNullableArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93219,12 +90571,8 @@ func (s *Server) handleTestRequestStringUnixMilliNullableArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93348,7 +90696,7 @@ func (s *Server) handleTestRequestStringUnixMilliNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93359,12 +90707,8 @@ func (s *Server) handleTestRequestStringUnixMilliNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93488,7 +90832,7 @@ func (s *Server) handleTestRequestStringUnixNanoRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93499,12 +90843,8 @@ func (s *Server) handleTestRequestStringUnixNanoRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93628,7 +90968,7 @@ func (s *Server) handleTestRequestStringUnixNanoArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93639,12 +90979,8 @@ func (s *Server) handleTestRequestStringUnixNanoArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93768,7 +91104,7 @@ func (s *Server) handleTestRequestStringUnixNanoArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93779,12 +91115,8 @@ func (s *Server) handleTestRequestStringUnixNanoArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -93908,7 +91240,7 @@ func (s *Server) handleTestRequestStringUnixNanoNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -93919,12 +91251,8 @@ func (s *Server) handleTestRequestStringUnixNanoNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94048,7 +91376,7 @@ func (s *Server) handleTestRequestStringUnixNanoNullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94059,12 +91387,8 @@ func (s *Server) handleTestRequestStringUnixNanoNullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94188,7 +91512,7 @@ func (s *Server) handleTestRequestStringUnixNanoNullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94199,12 +91523,8 @@ func (s *Server) handleTestRequestStringUnixNanoNullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94328,7 +91648,7 @@ func (s *Server) handleTestRequestStringUnixNullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94339,12 +91659,8 @@ func (s *Server) handleTestRequestStringUnixNullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94468,7 +91784,7 @@ func (s *Server) handleTestRequestStringUnixNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94479,12 +91795,8 @@ func (s *Server) handleTestRequestStringUnixNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94608,7 +91920,7 @@ func (s *Server) handleTestRequestStringUnixNullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94619,12 +91931,8 @@ func (s *Server) handleTestRequestStringUnixNullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94748,7 +92056,7 @@ func (s *Server) handleTestRequestStringUnixSecondsRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94759,12 +92067,8 @@ func (s *Server) handleTestRequestStringUnixSecondsRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -94888,7 +92192,7 @@ func (s *Server) handleTestRequestStringUnixSecondsArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -94899,12 +92203,8 @@ func (s *Server) handleTestRequestStringUnixSecondsArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95028,7 +92328,7 @@ func (s *Server) handleTestRequestStringUnixSecondsArrayArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95039,12 +92339,8 @@ func (s *Server) handleTestRequestStringUnixSecondsArrayArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95168,7 +92464,7 @@ func (s *Server) handleTestRequestStringUnixSecondsNullableRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95179,12 +92475,8 @@ func (s *Server) handleTestRequestStringUnixSecondsNullableRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95308,7 +92600,7 @@ func (s *Server) handleTestRequestStringUnixSecondsNullableArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95319,12 +92611,8 @@ func (s *Server) handleTestRequestStringUnixSecondsNullableArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95448,7 +92736,7 @@ func (s *Server) handleTestRequestStringUnixSecondsNullableArrayArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95459,12 +92747,8 @@ func (s *Server) handleTestRequestStringUnixSecondsNullableArrayArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95588,7 +92872,7 @@ func (s *Server) handleTestResponseAnyRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95599,12 +92883,8 @@ func (s *Server) handleTestResponseAnyRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95728,7 +93008,7 @@ func (s *Server) handleTestResponseBooleanRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95739,12 +93019,8 @@ func (s *Server) handleTestResponseBooleanRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -95868,7 +93144,7 @@ func (s *Server) handleTestResponseBooleanArrayRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -95879,12 +93155,8 @@ func (s *Server) handleTestResponseBooleanArrayRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96008,7 +93280,7 @@ func (s *Server) handleTestResponseBooleanArrayArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96019,12 +93291,8 @@ func (s *Server) handleTestResponseBooleanArrayArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96148,7 +93416,7 @@ func (s *Server) handleTestResponseBooleanNullableRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96159,12 +93427,8 @@ func (s *Server) handleTestResponseBooleanNullableRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96288,7 +93552,7 @@ func (s *Server) handleTestResponseBooleanNullableArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96299,12 +93563,8 @@ func (s *Server) handleTestResponseBooleanNullableArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96428,7 +93688,7 @@ func (s *Server) handleTestResponseBooleanNullableArrayArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96439,12 +93699,8 @@ func (s *Server) handleTestResponseBooleanNullableArrayArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96568,7 +93824,7 @@ func (s *Server) handleTestResponseEmptyStructRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96579,12 +93835,8 @@ func (s *Server) handleTestResponseEmptyStructRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96708,7 +93960,7 @@ func (s *Server) handleTestResponseFormatTestRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96719,12 +93971,8 @@ func (s *Server) handleTestResponseFormatTestRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96848,7 +94096,7 @@ func (s *Server) handleTestResponseIntegerRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96859,12 +94107,8 @@ func (s *Server) handleTestResponseIntegerRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -96988,7 +94232,7 @@ func (s *Server) handleTestResponseIntegerArrayRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -96999,12 +94243,8 @@ func (s *Server) handleTestResponseIntegerArrayRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97128,7 +94368,7 @@ func (s *Server) handleTestResponseIntegerArrayArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97139,12 +94379,8 @@ func (s *Server) handleTestResponseIntegerArrayArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97268,7 +94504,7 @@ func (s *Server) handleTestResponseIntegerInt16Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97279,12 +94515,8 @@ func (s *Server) handleTestResponseIntegerInt16Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97408,7 +94640,7 @@ func (s *Server) handleTestResponseIntegerInt16ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97419,12 +94651,8 @@ func (s *Server) handleTestResponseIntegerInt16ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97548,7 +94776,7 @@ func (s *Server) handleTestResponseIntegerInt16ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97559,12 +94787,8 @@ func (s *Server) handleTestResponseIntegerInt16ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97688,7 +94912,7 @@ func (s *Server) handleTestResponseIntegerInt16NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97699,12 +94923,8 @@ func (s *Server) handleTestResponseIntegerInt16NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97828,7 +95048,7 @@ func (s *Server) handleTestResponseIntegerInt16NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97839,12 +95059,8 @@ func (s *Server) handleTestResponseIntegerInt16NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -97968,7 +95184,7 @@ func (s *Server) handleTestResponseIntegerInt16NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -97979,12 +95195,8 @@ func (s *Server) handleTestResponseIntegerInt16NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98108,7 +95320,7 @@ func (s *Server) handleTestResponseIntegerInt32Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98119,12 +95331,8 @@ func (s *Server) handleTestResponseIntegerInt32Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98248,7 +95456,7 @@ func (s *Server) handleTestResponseIntegerInt32ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98259,12 +95467,8 @@ func (s *Server) handleTestResponseIntegerInt32ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98388,7 +95592,7 @@ func (s *Server) handleTestResponseIntegerInt32ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98399,12 +95603,8 @@ func (s *Server) handleTestResponseIntegerInt32ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98528,7 +95728,7 @@ func (s *Server) handleTestResponseIntegerInt32NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98539,12 +95739,8 @@ func (s *Server) handleTestResponseIntegerInt32NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98668,7 +95864,7 @@ func (s *Server) handleTestResponseIntegerInt32NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98679,12 +95875,8 @@ func (s *Server) handleTestResponseIntegerInt32NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98808,7 +96000,7 @@ func (s *Server) handleTestResponseIntegerInt32NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98819,12 +96011,8 @@ func (s *Server) handleTestResponseIntegerInt32NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -98948,7 +96136,7 @@ func (s *Server) handleTestResponseIntegerInt64Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -98959,12 +96147,8 @@ func (s *Server) handleTestResponseIntegerInt64Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99088,7 +96272,7 @@ func (s *Server) handleTestResponseIntegerInt64ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99099,12 +96283,8 @@ func (s *Server) handleTestResponseIntegerInt64ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99228,7 +96408,7 @@ func (s *Server) handleTestResponseIntegerInt64ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99239,12 +96419,8 @@ func (s *Server) handleTestResponseIntegerInt64ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99368,7 +96544,7 @@ func (s *Server) handleTestResponseIntegerInt64NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99379,12 +96555,8 @@ func (s *Server) handleTestResponseIntegerInt64NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99508,7 +96680,7 @@ func (s *Server) handleTestResponseIntegerInt64NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99519,12 +96691,8 @@ func (s *Server) handleTestResponseIntegerInt64NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99648,7 +96816,7 @@ func (s *Server) handleTestResponseIntegerInt64NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99659,12 +96827,8 @@ func (s *Server) handleTestResponseIntegerInt64NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99788,7 +96952,7 @@ func (s *Server) handleTestResponseIntegerInt8Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99799,12 +96963,8 @@ func (s *Server) handleTestResponseIntegerInt8Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -99928,7 +97088,7 @@ func (s *Server) handleTestResponseIntegerInt8ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -99939,12 +97099,8 @@ func (s *Server) handleTestResponseIntegerInt8ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100068,7 +97224,7 @@ func (s *Server) handleTestResponseIntegerInt8ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100079,12 +97235,8 @@ func (s *Server) handleTestResponseIntegerInt8ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100208,7 +97360,7 @@ func (s *Server) handleTestResponseIntegerInt8NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100219,12 +97371,8 @@ func (s *Server) handleTestResponseIntegerInt8NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100348,7 +97496,7 @@ func (s *Server) handleTestResponseIntegerInt8NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100359,12 +97507,8 @@ func (s *Server) handleTestResponseIntegerInt8NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100488,7 +97632,7 @@ func (s *Server) handleTestResponseIntegerInt8NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100499,12 +97643,8 @@ func (s *Server) handleTestResponseIntegerInt8NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100628,7 +97768,7 @@ func (s *Server) handleTestResponseIntegerNullableRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100639,12 +97779,8 @@ func (s *Server) handleTestResponseIntegerNullableRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100768,7 +97904,7 @@ func (s *Server) handleTestResponseIntegerNullableArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100779,12 +97915,8 @@ func (s *Server) handleTestResponseIntegerNullableArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -100908,7 +98040,7 @@ func (s *Server) handleTestResponseIntegerNullableArrayArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -100919,12 +98051,8 @@ func (s *Server) handleTestResponseIntegerNullableArrayArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101048,7 +98176,7 @@ func (s *Server) handleTestResponseIntegerUintRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101059,12 +98187,8 @@ func (s *Server) handleTestResponseIntegerUintRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101188,7 +98312,7 @@ func (s *Server) handleTestResponseIntegerUint16Request(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101199,12 +98323,8 @@ func (s *Server) handleTestResponseIntegerUint16Request(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101328,7 +98448,7 @@ func (s *Server) handleTestResponseIntegerUint16ArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101339,12 +98459,8 @@ func (s *Server) handleTestResponseIntegerUint16ArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101468,7 +98584,7 @@ func (s *Server) handleTestResponseIntegerUint16ArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101479,12 +98595,8 @@ func (s *Server) handleTestResponseIntegerUint16ArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101608,7 +98720,7 @@ func (s *Server) handleTestResponseIntegerUint16NullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101619,12 +98731,8 @@ func (s *Server) handleTestResponseIntegerUint16NullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101748,7 +98856,7 @@ func (s *Server) handleTestResponseIntegerUint16NullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101759,12 +98867,8 @@ func (s *Server) handleTestResponseIntegerUint16NullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -101888,7 +98992,7 @@ func (s *Server) handleTestResponseIntegerUint16NullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -101899,12 +99003,8 @@ func (s *Server) handleTestResponseIntegerUint16NullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102028,7 +99128,7 @@ func (s *Server) handleTestResponseIntegerUint32Request(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102039,12 +99139,8 @@ func (s *Server) handleTestResponseIntegerUint32Request(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102168,7 +99264,7 @@ func (s *Server) handleTestResponseIntegerUint32ArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102179,12 +99275,8 @@ func (s *Server) handleTestResponseIntegerUint32ArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102308,7 +99400,7 @@ func (s *Server) handleTestResponseIntegerUint32ArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102319,12 +99411,8 @@ func (s *Server) handleTestResponseIntegerUint32ArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102448,7 +99536,7 @@ func (s *Server) handleTestResponseIntegerUint32NullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102459,12 +99547,8 @@ func (s *Server) handleTestResponseIntegerUint32NullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102588,7 +99672,7 @@ func (s *Server) handleTestResponseIntegerUint32NullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102599,12 +99683,8 @@ func (s *Server) handleTestResponseIntegerUint32NullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102728,7 +99808,7 @@ func (s *Server) handleTestResponseIntegerUint32NullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102739,12 +99819,8 @@ func (s *Server) handleTestResponseIntegerUint32NullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -102868,7 +99944,7 @@ func (s *Server) handleTestResponseIntegerUint64Request(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -102879,12 +99955,8 @@ func (s *Server) handleTestResponseIntegerUint64Request(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103008,7 +100080,7 @@ func (s *Server) handleTestResponseIntegerUint64ArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103019,12 +100091,8 @@ func (s *Server) handleTestResponseIntegerUint64ArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103148,7 +100216,7 @@ func (s *Server) handleTestResponseIntegerUint64ArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103159,12 +100227,8 @@ func (s *Server) handleTestResponseIntegerUint64ArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103288,7 +100352,7 @@ func (s *Server) handleTestResponseIntegerUint64NullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103299,12 +100363,8 @@ func (s *Server) handleTestResponseIntegerUint64NullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103428,7 +100488,7 @@ func (s *Server) handleTestResponseIntegerUint64NullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103439,12 +100499,8 @@ func (s *Server) handleTestResponseIntegerUint64NullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103568,7 +100624,7 @@ func (s *Server) handleTestResponseIntegerUint64NullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103579,12 +100635,8 @@ func (s *Server) handleTestResponseIntegerUint64NullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103708,7 +100760,7 @@ func (s *Server) handleTestResponseIntegerUint8Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103719,12 +100771,8 @@ func (s *Server) handleTestResponseIntegerUint8Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103848,7 +100896,7 @@ func (s *Server) handleTestResponseIntegerUint8ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103859,12 +100907,8 @@ func (s *Server) handleTestResponseIntegerUint8ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -103988,7 +101032,7 @@ func (s *Server) handleTestResponseIntegerUint8ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -103999,12 +101043,8 @@ func (s *Server) handleTestResponseIntegerUint8ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104128,7 +101168,7 @@ func (s *Server) handleTestResponseIntegerUint8NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104139,12 +101179,8 @@ func (s *Server) handleTestResponseIntegerUint8NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104268,7 +101304,7 @@ func (s *Server) handleTestResponseIntegerUint8NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104279,12 +101315,8 @@ func (s *Server) handleTestResponseIntegerUint8NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104408,7 +101440,7 @@ func (s *Server) handleTestResponseIntegerUint8NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104419,12 +101451,8 @@ func (s *Server) handleTestResponseIntegerUint8NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104548,7 +101576,7 @@ func (s *Server) handleTestResponseIntegerUintArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104559,12 +101587,8 @@ func (s *Server) handleTestResponseIntegerUintArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104688,7 +101712,7 @@ func (s *Server) handleTestResponseIntegerUintArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104699,12 +101723,8 @@ func (s *Server) handleTestResponseIntegerUintArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104828,7 +101848,7 @@ func (s *Server) handleTestResponseIntegerUintNullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104839,12 +101859,8 @@ func (s *Server) handleTestResponseIntegerUintNullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -104968,7 +101984,7 @@ func (s *Server) handleTestResponseIntegerUintNullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -104979,12 +101995,8 @@ func (s *Server) handleTestResponseIntegerUintNullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105108,7 +102120,7 @@ func (s *Server) handleTestResponseIntegerUintNullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105119,12 +102131,8 @@ func (s *Server) handleTestResponseIntegerUintNullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105248,7 +102256,7 @@ func (s *Server) handleTestResponseIntegerUnixRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105259,12 +102267,8 @@ func (s *Server) handleTestResponseIntegerUnixRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105388,7 +102392,7 @@ func (s *Server) handleTestResponseIntegerUnixArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105399,12 +102403,8 @@ func (s *Server) handleTestResponseIntegerUnixArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105528,7 +102528,7 @@ func (s *Server) handleTestResponseIntegerUnixArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105539,12 +102539,8 @@ func (s *Server) handleTestResponseIntegerUnixArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105668,7 +102664,7 @@ func (s *Server) handleTestResponseIntegerUnixMicroRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105679,12 +102675,8 @@ func (s *Server) handleTestResponseIntegerUnixMicroRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105808,7 +102800,7 @@ func (s *Server) handleTestResponseIntegerUnixMicroArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105819,12 +102811,8 @@ func (s *Server) handleTestResponseIntegerUnixMicroArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -105948,7 +102936,7 @@ func (s *Server) handleTestResponseIntegerUnixMicroArrayArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -105959,12 +102947,8 @@ func (s *Server) handleTestResponseIntegerUnixMicroArrayArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106088,7 +103072,7 @@ func (s *Server) handleTestResponseIntegerUnixMicroNullableRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106099,12 +103083,8 @@ func (s *Server) handleTestResponseIntegerUnixMicroNullableRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106228,7 +103208,7 @@ func (s *Server) handleTestResponseIntegerUnixMicroNullableArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106239,12 +103219,8 @@ func (s *Server) handleTestResponseIntegerUnixMicroNullableArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106368,7 +103344,7 @@ func (s *Server) handleTestResponseIntegerUnixMicroNullableArrayArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106379,12 +103355,8 @@ func (s *Server) handleTestResponseIntegerUnixMicroNullableArrayArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106508,7 +103480,7 @@ func (s *Server) handleTestResponseIntegerUnixMilliRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106519,12 +103491,8 @@ func (s *Server) handleTestResponseIntegerUnixMilliRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106648,7 +103616,7 @@ func (s *Server) handleTestResponseIntegerUnixMilliArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106659,12 +103627,8 @@ func (s *Server) handleTestResponseIntegerUnixMilliArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106788,7 +103752,7 @@ func (s *Server) handleTestResponseIntegerUnixMilliArrayArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106799,12 +103763,8 @@ func (s *Server) handleTestResponseIntegerUnixMilliArrayArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -106928,7 +103888,7 @@ func (s *Server) handleTestResponseIntegerUnixMilliNullableRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -106939,12 +103899,8 @@ func (s *Server) handleTestResponseIntegerUnixMilliNullableRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107068,7 +104024,7 @@ func (s *Server) handleTestResponseIntegerUnixMilliNullableArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107079,12 +104035,8 @@ func (s *Server) handleTestResponseIntegerUnixMilliNullableArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107208,7 +104160,7 @@ func (s *Server) handleTestResponseIntegerUnixMilliNullableArrayArrayRequest(arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107219,12 +104171,8 @@ func (s *Server) handleTestResponseIntegerUnixMilliNullableArrayArrayRequest(arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107348,7 +104296,7 @@ func (s *Server) handleTestResponseIntegerUnixNanoRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107359,12 +104307,8 @@ func (s *Server) handleTestResponseIntegerUnixNanoRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107488,7 +104432,7 @@ func (s *Server) handleTestResponseIntegerUnixNanoArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107499,12 +104443,8 @@ func (s *Server) handleTestResponseIntegerUnixNanoArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107628,7 +104568,7 @@ func (s *Server) handleTestResponseIntegerUnixNanoArrayArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107639,12 +104579,8 @@ func (s *Server) handleTestResponseIntegerUnixNanoArrayArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107768,7 +104704,7 @@ func (s *Server) handleTestResponseIntegerUnixNanoNullableRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107779,12 +104715,8 @@ func (s *Server) handleTestResponseIntegerUnixNanoNullableRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -107908,7 +104840,7 @@ func (s *Server) handleTestResponseIntegerUnixNanoNullableArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -107919,12 +104851,8 @@ func (s *Server) handleTestResponseIntegerUnixNanoNullableArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108048,7 +104976,7 @@ func (s *Server) handleTestResponseIntegerUnixNanoNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108059,12 +104987,8 @@ func (s *Server) handleTestResponseIntegerUnixNanoNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108188,7 +105112,7 @@ func (s *Server) handleTestResponseIntegerUnixNullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108199,12 +105123,8 @@ func (s *Server) handleTestResponseIntegerUnixNullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108328,7 +105248,7 @@ func (s *Server) handleTestResponseIntegerUnixNullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108339,12 +105259,8 @@ func (s *Server) handleTestResponseIntegerUnixNullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108468,7 +105384,7 @@ func (s *Server) handleTestResponseIntegerUnixNullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108479,12 +105395,8 @@ func (s *Server) handleTestResponseIntegerUnixNullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108608,7 +105520,7 @@ func (s *Server) handleTestResponseIntegerUnixSecondsRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108619,12 +105531,8 @@ func (s *Server) handleTestResponseIntegerUnixSecondsRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108748,7 +105656,7 @@ func (s *Server) handleTestResponseIntegerUnixSecondsArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108759,12 +105667,8 @@ func (s *Server) handleTestResponseIntegerUnixSecondsArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -108888,7 +105792,7 @@ func (s *Server) handleTestResponseIntegerUnixSecondsArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -108899,12 +105803,8 @@ func (s *Server) handleTestResponseIntegerUnixSecondsArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109028,7 +105928,7 @@ func (s *Server) handleTestResponseIntegerUnixSecondsNullableRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109039,12 +105939,8 @@ func (s *Server) handleTestResponseIntegerUnixSecondsNullableRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109168,7 +106064,7 @@ func (s *Server) handleTestResponseIntegerUnixSecondsNullableArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109179,12 +106075,8 @@ func (s *Server) handleTestResponseIntegerUnixSecondsNullableArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109308,7 +106200,7 @@ func (s *Server) handleTestResponseIntegerUnixSecondsNullableArrayArrayRequest(a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109319,12 +106211,8 @@ func (s *Server) handleTestResponseIntegerUnixSecondsNullableArrayArrayRequest(a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109448,7 +106336,7 @@ func (s *Server) handleTestResponseNullRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109459,12 +106347,8 @@ func (s *Server) handleTestResponseNullRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109588,7 +106472,7 @@ func (s *Server) handleTestResponseNullArrayRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109599,12 +106483,8 @@ func (s *Server) handleTestResponseNullArrayRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109728,7 +106608,7 @@ func (s *Server) handleTestResponseNullArrayArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109739,12 +106619,8 @@ func (s *Server) handleTestResponseNullArrayArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -109868,7 +106744,7 @@ func (s *Server) handleTestResponseNullNullableRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -109879,12 +106755,8 @@ func (s *Server) handleTestResponseNullNullableRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110008,7 +106880,7 @@ func (s *Server) handleTestResponseNullNullableArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110019,12 +106891,8 @@ func (s *Server) handleTestResponseNullNullableArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110148,7 +107016,7 @@ func (s *Server) handleTestResponseNullNullableArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110159,12 +107027,8 @@ func (s *Server) handleTestResponseNullNullableArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110288,7 +107152,7 @@ func (s *Server) handleTestResponseNumberRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110299,12 +107163,8 @@ func (s *Server) handleTestResponseNumberRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110428,7 +107288,7 @@ func (s *Server) handleTestResponseNumberArrayRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110439,12 +107299,8 @@ func (s *Server) handleTestResponseNumberArrayRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110568,7 +107424,7 @@ func (s *Server) handleTestResponseNumberArrayArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110579,12 +107435,8 @@ func (s *Server) handleTestResponseNumberArrayArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110708,7 +107560,7 @@ func (s *Server) handleTestResponseNumberDoubleRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110719,12 +107571,8 @@ func (s *Server) handleTestResponseNumberDoubleRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110848,7 +107696,7 @@ func (s *Server) handleTestResponseNumberDoubleArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110859,12 +107707,8 @@ func (s *Server) handleTestResponseNumberDoubleArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -110988,7 +107832,7 @@ func (s *Server) handleTestResponseNumberDoubleArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -110999,12 +107843,8 @@ func (s *Server) handleTestResponseNumberDoubleArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111128,7 +107968,7 @@ func (s *Server) handleTestResponseNumberDoubleNullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111139,12 +107979,8 @@ func (s *Server) handleTestResponseNumberDoubleNullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111268,7 +108104,7 @@ func (s *Server) handleTestResponseNumberDoubleNullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111279,12 +108115,8 @@ func (s *Server) handleTestResponseNumberDoubleNullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111408,7 +108240,7 @@ func (s *Server) handleTestResponseNumberDoubleNullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111419,12 +108251,8 @@ func (s *Server) handleTestResponseNumberDoubleNullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111548,7 +108376,7 @@ func (s *Server) handleTestResponseNumberFloatRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111559,12 +108387,8 @@ func (s *Server) handleTestResponseNumberFloatRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111688,7 +108512,7 @@ func (s *Server) handleTestResponseNumberFloatArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111699,12 +108523,8 @@ func (s *Server) handleTestResponseNumberFloatArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111828,7 +108648,7 @@ func (s *Server) handleTestResponseNumberFloatArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111839,12 +108659,8 @@ func (s *Server) handleTestResponseNumberFloatArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -111968,7 +108784,7 @@ func (s *Server) handleTestResponseNumberFloatNullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -111979,12 +108795,8 @@ func (s *Server) handleTestResponseNumberFloatNullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112108,7 +108920,7 @@ func (s *Server) handleTestResponseNumberFloatNullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112119,12 +108931,8 @@ func (s *Server) handleTestResponseNumberFloatNullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112248,7 +109056,7 @@ func (s *Server) handleTestResponseNumberFloatNullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112259,12 +109067,8 @@ func (s *Server) handleTestResponseNumberFloatNullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112388,7 +109192,7 @@ func (s *Server) handleTestResponseNumberInt32Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112399,12 +109203,8 @@ func (s *Server) handleTestResponseNumberInt32Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112528,7 +109328,7 @@ func (s *Server) handleTestResponseNumberInt32ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112539,12 +109339,8 @@ func (s *Server) handleTestResponseNumberInt32ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112668,7 +109464,7 @@ func (s *Server) handleTestResponseNumberInt32ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112679,12 +109475,8 @@ func (s *Server) handleTestResponseNumberInt32ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112808,7 +109600,7 @@ func (s *Server) handleTestResponseNumberInt32NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112819,12 +109611,8 @@ func (s *Server) handleTestResponseNumberInt32NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -112948,7 +109736,7 @@ func (s *Server) handleTestResponseNumberInt32NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -112959,12 +109747,8 @@ func (s *Server) handleTestResponseNumberInt32NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113088,7 +109872,7 @@ func (s *Server) handleTestResponseNumberInt32NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113099,12 +109883,8 @@ func (s *Server) handleTestResponseNumberInt32NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113228,7 +110008,7 @@ func (s *Server) handleTestResponseNumberInt64Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113239,12 +110019,8 @@ func (s *Server) handleTestResponseNumberInt64Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113368,7 +110144,7 @@ func (s *Server) handleTestResponseNumberInt64ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113379,12 +110155,8 @@ func (s *Server) handleTestResponseNumberInt64ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113508,7 +110280,7 @@ func (s *Server) handleTestResponseNumberInt64ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113519,12 +110291,8 @@ func (s *Server) handleTestResponseNumberInt64ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113648,7 +110416,7 @@ func (s *Server) handleTestResponseNumberInt64NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113659,12 +110427,8 @@ func (s *Server) handleTestResponseNumberInt64NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113788,7 +110552,7 @@ func (s *Server) handleTestResponseNumberInt64NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113799,12 +110563,8 @@ func (s *Server) handleTestResponseNumberInt64NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -113928,7 +110688,7 @@ func (s *Server) handleTestResponseNumberInt64NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -113939,12 +110699,8 @@ func (s *Server) handleTestResponseNumberInt64NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -114068,7 +110824,7 @@ func (s *Server) handleTestResponseNumberNullableRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -114079,12 +110835,8 @@ func (s *Server) handleTestResponseNumberNullableRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -114208,7 +110960,7 @@ func (s *Server) handleTestResponseNumberNullableArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -114219,12 +110971,8 @@ func (s *Server) handleTestResponseNumberNullableArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -114348,7 +111096,7 @@ func (s *Server) handleTestResponseNumberNullableArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -114359,12 +111107,8 @@ func (s *Server) handleTestResponseNumberNullableArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -114488,7 +111232,7 @@ func (s *Server) handleTestResponseStringRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -114499,12 +111243,8 @@ func (s *Server) handleTestResponseStringRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -114628,7 +111368,7 @@ func (s *Server) handleTestResponseStringArrayRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -114639,12 +111379,8 @@ func (s *Server) handleTestResponseStringArrayRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -114768,7 +111504,7 @@ func (s *Server) handleTestResponseStringArrayArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -114779,12 +111515,8 @@ func (s *Server) handleTestResponseStringArrayArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -114908,7 +111640,7 @@ func (s *Server) handleTestResponseStringBase64Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -114919,12 +111651,8 @@ func (s *Server) handleTestResponseStringBase64Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -115048,7 +111776,7 @@ func (s *Server) handleTestResponseStringBase64ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -115059,12 +111787,8 @@ func (s *Server) handleTestResponseStringBase64ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -115188,7 +111912,7 @@ func (s *Server) handleTestResponseStringBase64ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -115199,12 +111923,8 @@ func (s *Server) handleTestResponseStringBase64ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -115328,7 +112048,7 @@ func (s *Server) handleTestResponseStringBase64NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -115339,12 +112059,8 @@ func (s *Server) handleTestResponseStringBase64NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -115468,7 +112184,7 @@ func (s *Server) handleTestResponseStringBase64NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -115479,12 +112195,8 @@ func (s *Server) handleTestResponseStringBase64NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -115608,7 +112320,7 @@ func (s *Server) handleTestResponseStringBase64NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -115619,12 +112331,8 @@ func (s *Server) handleTestResponseStringBase64NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -115748,7 +112456,7 @@ func (s *Server) handleTestResponseStringBinaryRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -115759,12 +112467,8 @@ func (s *Server) handleTestResponseStringBinaryRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -115888,7 +112592,7 @@ func (s *Server) handleTestResponseStringBinaryArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -115899,12 +112603,8 @@ func (s *Server) handleTestResponseStringBinaryArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -116028,7 +112728,7 @@ func (s *Server) handleTestResponseStringBinaryArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -116039,12 +112739,8 @@ func (s *Server) handleTestResponseStringBinaryArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -116168,7 +112864,7 @@ func (s *Server) handleTestResponseStringBinaryNullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -116179,12 +112875,8 @@ func (s *Server) handleTestResponseStringBinaryNullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -116308,7 +113000,7 @@ func (s *Server) handleTestResponseStringBinaryNullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -116319,12 +113011,8 @@ func (s *Server) handleTestResponseStringBinaryNullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -116448,7 +113136,7 @@ func (s *Server) handleTestResponseStringBinaryNullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -116459,12 +113147,8 @@ func (s *Server) handleTestResponseStringBinaryNullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -116588,7 +113272,7 @@ func (s *Server) handleTestResponseStringByteRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -116599,12 +113283,8 @@ func (s *Server) handleTestResponseStringByteRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -116728,7 +113408,7 @@ func (s *Server) handleTestResponseStringByteArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -116739,12 +113419,8 @@ func (s *Server) handleTestResponseStringByteArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -116868,7 +113544,7 @@ func (s *Server) handleTestResponseStringByteArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -116879,12 +113555,8 @@ func (s *Server) handleTestResponseStringByteArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -117008,7 +113680,7 @@ func (s *Server) handleTestResponseStringByteNullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -117019,12 +113691,8 @@ func (s *Server) handleTestResponseStringByteNullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -117148,7 +113816,7 @@ func (s *Server) handleTestResponseStringByteNullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -117159,12 +113827,8 @@ func (s *Server) handleTestResponseStringByteNullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -117288,7 +113952,7 @@ func (s *Server) handleTestResponseStringByteNullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -117299,12 +113963,8 @@ func (s *Server) handleTestResponseStringByteNullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -117428,7 +114088,7 @@ func (s *Server) handleTestResponseStringDateRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -117439,12 +114099,8 @@ func (s *Server) handleTestResponseStringDateRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -117568,7 +114224,7 @@ func (s *Server) handleTestResponseStringDateArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -117579,12 +114235,8 @@ func (s *Server) handleTestResponseStringDateArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -117708,7 +114360,7 @@ func (s *Server) handleTestResponseStringDateArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -117719,12 +114371,8 @@ func (s *Server) handleTestResponseStringDateArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -117848,7 +114496,7 @@ func (s *Server) handleTestResponseStringDateNullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -117859,12 +114507,8 @@ func (s *Server) handleTestResponseStringDateNullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -117988,7 +114632,7 @@ func (s *Server) handleTestResponseStringDateNullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -117999,12 +114643,8 @@ func (s *Server) handleTestResponseStringDateNullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -118128,7 +114768,7 @@ func (s *Server) handleTestResponseStringDateNullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -118139,12 +114779,8 @@ func (s *Server) handleTestResponseStringDateNullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -118268,7 +114904,7 @@ func (s *Server) handleTestResponseStringDateTimeRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -118279,12 +114915,8 @@ func (s *Server) handleTestResponseStringDateTimeRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -118408,7 +115040,7 @@ func (s *Server) handleTestResponseStringDateTimeArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -118419,12 +115051,8 @@ func (s *Server) handleTestResponseStringDateTimeArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -118548,7 +115176,7 @@ func (s *Server) handleTestResponseStringDateTimeArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -118559,12 +115187,8 @@ func (s *Server) handleTestResponseStringDateTimeArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -118688,7 +115312,7 @@ func (s *Server) handleTestResponseStringDateTimeNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -118699,12 +115323,8 @@ func (s *Server) handleTestResponseStringDateTimeNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -118828,7 +115448,7 @@ func (s *Server) handleTestResponseStringDateTimeNullableArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -118839,12 +115459,8 @@ func (s *Server) handleTestResponseStringDateTimeNullableArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -118968,7 +115584,7 @@ func (s *Server) handleTestResponseStringDateTimeNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -118979,12 +115595,8 @@ func (s *Server) handleTestResponseStringDateTimeNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -119108,7 +115720,7 @@ func (s *Server) handleTestResponseStringDurationRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -119119,12 +115731,8 @@ func (s *Server) handleTestResponseStringDurationRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -119248,7 +115856,7 @@ func (s *Server) handleTestResponseStringDurationArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -119259,12 +115867,8 @@ func (s *Server) handleTestResponseStringDurationArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -119388,7 +115992,7 @@ func (s *Server) handleTestResponseStringDurationArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -119399,12 +116003,8 @@ func (s *Server) handleTestResponseStringDurationArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -119528,7 +116128,7 @@ func (s *Server) handleTestResponseStringDurationNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -119539,12 +116139,8 @@ func (s *Server) handleTestResponseStringDurationNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -119668,7 +116264,7 @@ func (s *Server) handleTestResponseStringDurationNullableArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -119679,12 +116275,8 @@ func (s *Server) handleTestResponseStringDurationNullableArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -119808,7 +116400,7 @@ func (s *Server) handleTestResponseStringDurationNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -119819,12 +116411,8 @@ func (s *Server) handleTestResponseStringDurationNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -119948,7 +116536,7 @@ func (s *Server) handleTestResponseStringEmailRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -119959,12 +116547,8 @@ func (s *Server) handleTestResponseStringEmailRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -120088,7 +116672,7 @@ func (s *Server) handleTestResponseStringEmailArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -120099,12 +116683,8 @@ func (s *Server) handleTestResponseStringEmailArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -120228,7 +116808,7 @@ func (s *Server) handleTestResponseStringEmailArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -120239,12 +116819,8 @@ func (s *Server) handleTestResponseStringEmailArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -120368,7 +116944,7 @@ func (s *Server) handleTestResponseStringEmailNullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -120379,12 +116955,8 @@ func (s *Server) handleTestResponseStringEmailNullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -120508,7 +117080,7 @@ func (s *Server) handleTestResponseStringEmailNullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -120519,12 +117091,8 @@ func (s *Server) handleTestResponseStringEmailNullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -120648,7 +117216,7 @@ func (s *Server) handleTestResponseStringEmailNullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -120659,12 +117227,8 @@ func (s *Server) handleTestResponseStringEmailNullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -120788,7 +117352,7 @@ func (s *Server) handleTestResponseStringFloat32Request(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -120799,12 +117363,8 @@ func (s *Server) handleTestResponseStringFloat32Request(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -120928,7 +117488,7 @@ func (s *Server) handleTestResponseStringFloat32ArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -120939,12 +117499,8 @@ func (s *Server) handleTestResponseStringFloat32ArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -121068,7 +117624,7 @@ func (s *Server) handleTestResponseStringFloat32ArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -121079,12 +117635,8 @@ func (s *Server) handleTestResponseStringFloat32ArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -121208,7 +117760,7 @@ func (s *Server) handleTestResponseStringFloat32NullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -121219,12 +117771,8 @@ func (s *Server) handleTestResponseStringFloat32NullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -121348,7 +117896,7 @@ func (s *Server) handleTestResponseStringFloat32NullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -121359,12 +117907,8 @@ func (s *Server) handleTestResponseStringFloat32NullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -121488,7 +118032,7 @@ func (s *Server) handleTestResponseStringFloat32NullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -121499,12 +118043,8 @@ func (s *Server) handleTestResponseStringFloat32NullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -121628,7 +118168,7 @@ func (s *Server) handleTestResponseStringFloat64Request(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -121639,12 +118179,8 @@ func (s *Server) handleTestResponseStringFloat64Request(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -121768,7 +118304,7 @@ func (s *Server) handleTestResponseStringFloat64ArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -121779,12 +118315,8 @@ func (s *Server) handleTestResponseStringFloat64ArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -121908,7 +118440,7 @@ func (s *Server) handleTestResponseStringFloat64ArrayArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -121919,12 +118451,8 @@ func (s *Server) handleTestResponseStringFloat64ArrayArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -122048,7 +118576,7 @@ func (s *Server) handleTestResponseStringFloat64NullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -122059,12 +118587,8 @@ func (s *Server) handleTestResponseStringFloat64NullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -122188,7 +118712,7 @@ func (s *Server) handleTestResponseStringFloat64NullableArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -122199,12 +118723,8 @@ func (s *Server) handleTestResponseStringFloat64NullableArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -122328,7 +118848,7 @@ func (s *Server) handleTestResponseStringFloat64NullableArrayArrayRequest(args [ s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -122339,12 +118859,8 @@ func (s *Server) handleTestResponseStringFloat64NullableArrayArrayRequest(args [ // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -122468,7 +118984,7 @@ func (s *Server) handleTestResponseStringHostnameRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -122479,12 +118995,8 @@ func (s *Server) handleTestResponseStringHostnameRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -122608,7 +119120,7 @@ func (s *Server) handleTestResponseStringHostnameArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -122619,12 +119131,8 @@ func (s *Server) handleTestResponseStringHostnameArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -122748,7 +119256,7 @@ func (s *Server) handleTestResponseStringHostnameArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -122759,12 +119267,8 @@ func (s *Server) handleTestResponseStringHostnameArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -122888,7 +119392,7 @@ func (s *Server) handleTestResponseStringHostnameNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -122899,12 +119403,8 @@ func (s *Server) handleTestResponseStringHostnameNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -123028,7 +119528,7 @@ func (s *Server) handleTestResponseStringHostnameNullableArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -123039,12 +119539,8 @@ func (s *Server) handleTestResponseStringHostnameNullableArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -123168,7 +119664,7 @@ func (s *Server) handleTestResponseStringHostnameNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -123179,12 +119675,8 @@ func (s *Server) handleTestResponseStringHostnameNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -123308,7 +119800,7 @@ func (s *Server) handleTestResponseStringIPRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -123319,12 +119811,8 @@ func (s *Server) handleTestResponseStringIPRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -123448,7 +119936,7 @@ func (s *Server) handleTestResponseStringIPArrayRequest(args [0]string, argsEsca s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -123459,12 +119947,8 @@ func (s *Server) handleTestResponseStringIPArrayRequest(args [0]string, argsEsca // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -123588,7 +120072,7 @@ func (s *Server) handleTestResponseStringIPArrayArrayRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -123599,12 +120083,8 @@ func (s *Server) handleTestResponseStringIPArrayArrayRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -123728,7 +120208,7 @@ func (s *Server) handleTestResponseStringIPNullableRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -123739,12 +120219,8 @@ func (s *Server) handleTestResponseStringIPNullableRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -123868,7 +120344,7 @@ func (s *Server) handleTestResponseStringIPNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -123879,12 +120355,8 @@ func (s *Server) handleTestResponseStringIPNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -124008,7 +120480,7 @@ func (s *Server) handleTestResponseStringIPNullableArrayArrayRequest(args [0]str s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -124019,12 +120491,8 @@ func (s *Server) handleTestResponseStringIPNullableArrayArrayRequest(args [0]str // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -124148,7 +120616,7 @@ func (s *Server) handleTestResponseStringIntRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -124159,12 +120627,8 @@ func (s *Server) handleTestResponseStringIntRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -124288,7 +120752,7 @@ func (s *Server) handleTestResponseStringInt16Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -124299,12 +120763,8 @@ func (s *Server) handleTestResponseStringInt16Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -124428,7 +120888,7 @@ func (s *Server) handleTestResponseStringInt16ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -124439,12 +120899,8 @@ func (s *Server) handleTestResponseStringInt16ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -124568,7 +121024,7 @@ func (s *Server) handleTestResponseStringInt16ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -124579,12 +121035,8 @@ func (s *Server) handleTestResponseStringInt16ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -124708,7 +121160,7 @@ func (s *Server) handleTestResponseStringInt16NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -124719,12 +121171,8 @@ func (s *Server) handleTestResponseStringInt16NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -124848,7 +121296,7 @@ func (s *Server) handleTestResponseStringInt16NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -124859,12 +121307,8 @@ func (s *Server) handleTestResponseStringInt16NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -124988,7 +121432,7 @@ func (s *Server) handleTestResponseStringInt16NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -124999,12 +121443,8 @@ func (s *Server) handleTestResponseStringInt16NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -125128,7 +121568,7 @@ func (s *Server) handleTestResponseStringInt32Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -125139,12 +121579,8 @@ func (s *Server) handleTestResponseStringInt32Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -125268,7 +121704,7 @@ func (s *Server) handleTestResponseStringInt32ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -125279,12 +121715,8 @@ func (s *Server) handleTestResponseStringInt32ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -125408,7 +121840,7 @@ func (s *Server) handleTestResponseStringInt32ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -125419,12 +121851,8 @@ func (s *Server) handleTestResponseStringInt32ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -125548,7 +121976,7 @@ func (s *Server) handleTestResponseStringInt32NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -125559,12 +121987,8 @@ func (s *Server) handleTestResponseStringInt32NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -125688,7 +122112,7 @@ func (s *Server) handleTestResponseStringInt32NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -125699,12 +122123,8 @@ func (s *Server) handleTestResponseStringInt32NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -125828,7 +122248,7 @@ func (s *Server) handleTestResponseStringInt32NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -125839,12 +122259,8 @@ func (s *Server) handleTestResponseStringInt32NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -125968,7 +122384,7 @@ func (s *Server) handleTestResponseStringInt64Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -125979,12 +122395,8 @@ func (s *Server) handleTestResponseStringInt64Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -126108,7 +122520,7 @@ func (s *Server) handleTestResponseStringInt64ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -126119,12 +122531,8 @@ func (s *Server) handleTestResponseStringInt64ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -126248,7 +122656,7 @@ func (s *Server) handleTestResponseStringInt64ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -126259,12 +122667,8 @@ func (s *Server) handleTestResponseStringInt64ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -126388,7 +122792,7 @@ func (s *Server) handleTestResponseStringInt64NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -126399,12 +122803,8 @@ func (s *Server) handleTestResponseStringInt64NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -126528,7 +122928,7 @@ func (s *Server) handleTestResponseStringInt64NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -126539,12 +122939,8 @@ func (s *Server) handleTestResponseStringInt64NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -126668,7 +123064,7 @@ func (s *Server) handleTestResponseStringInt64NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -126679,12 +123075,8 @@ func (s *Server) handleTestResponseStringInt64NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -126808,7 +123200,7 @@ func (s *Server) handleTestResponseStringInt8Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -126819,12 +123211,8 @@ func (s *Server) handleTestResponseStringInt8Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -126948,7 +123336,7 @@ func (s *Server) handleTestResponseStringInt8ArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -126959,12 +123347,8 @@ func (s *Server) handleTestResponseStringInt8ArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -127088,7 +123472,7 @@ func (s *Server) handleTestResponseStringInt8ArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -127099,12 +123483,8 @@ func (s *Server) handleTestResponseStringInt8ArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -127228,7 +123608,7 @@ func (s *Server) handleTestResponseStringInt8NullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -127239,12 +123619,8 @@ func (s *Server) handleTestResponseStringInt8NullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -127368,7 +123744,7 @@ func (s *Server) handleTestResponseStringInt8NullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -127379,12 +123755,8 @@ func (s *Server) handleTestResponseStringInt8NullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -127508,7 +123880,7 @@ func (s *Server) handleTestResponseStringInt8NullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -127519,12 +123891,8 @@ func (s *Server) handleTestResponseStringInt8NullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -127648,7 +124016,7 @@ func (s *Server) handleTestResponseStringIntArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -127659,12 +124027,8 @@ func (s *Server) handleTestResponseStringIntArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -127788,7 +124152,7 @@ func (s *Server) handleTestResponseStringIntArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -127799,12 +124163,8 @@ func (s *Server) handleTestResponseStringIntArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -127928,7 +124288,7 @@ func (s *Server) handleTestResponseStringIntNullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -127939,12 +124299,8 @@ func (s *Server) handleTestResponseStringIntNullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -128068,7 +124424,7 @@ func (s *Server) handleTestResponseStringIntNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -128079,12 +124435,8 @@ func (s *Server) handleTestResponseStringIntNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -128208,7 +124560,7 @@ func (s *Server) handleTestResponseStringIntNullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -128219,12 +124571,8 @@ func (s *Server) handleTestResponseStringIntNullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -128348,7 +124696,7 @@ func (s *Server) handleTestResponseStringIpv4Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -128359,12 +124707,8 @@ func (s *Server) handleTestResponseStringIpv4Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -128488,7 +124832,7 @@ func (s *Server) handleTestResponseStringIpv4ArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -128499,12 +124843,8 @@ func (s *Server) handleTestResponseStringIpv4ArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -128628,7 +124968,7 @@ func (s *Server) handleTestResponseStringIpv4ArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -128639,12 +124979,8 @@ func (s *Server) handleTestResponseStringIpv4ArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -128768,7 +125104,7 @@ func (s *Server) handleTestResponseStringIpv4NullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -128779,12 +125115,8 @@ func (s *Server) handleTestResponseStringIpv4NullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -128908,7 +125240,7 @@ func (s *Server) handleTestResponseStringIpv4NullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -128919,12 +125251,8 @@ func (s *Server) handleTestResponseStringIpv4NullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -129048,7 +125376,7 @@ func (s *Server) handleTestResponseStringIpv4NullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -129059,12 +125387,8 @@ func (s *Server) handleTestResponseStringIpv4NullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -129188,7 +125512,7 @@ func (s *Server) handleTestResponseStringIpv6Request(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -129199,12 +125523,8 @@ func (s *Server) handleTestResponseStringIpv6Request(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -129328,7 +125648,7 @@ func (s *Server) handleTestResponseStringIpv6ArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -129339,12 +125659,8 @@ func (s *Server) handleTestResponseStringIpv6ArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -129468,7 +125784,7 @@ func (s *Server) handleTestResponseStringIpv6ArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -129479,12 +125795,8 @@ func (s *Server) handleTestResponseStringIpv6ArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -129608,7 +125920,7 @@ func (s *Server) handleTestResponseStringIpv6NullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -129619,12 +125931,8 @@ func (s *Server) handleTestResponseStringIpv6NullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -129748,7 +126056,7 @@ func (s *Server) handleTestResponseStringIpv6NullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -129759,12 +126067,8 @@ func (s *Server) handleTestResponseStringIpv6NullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -129888,7 +126192,7 @@ func (s *Server) handleTestResponseStringIpv6NullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -129899,12 +126203,8 @@ func (s *Server) handleTestResponseStringIpv6NullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -130028,7 +126328,7 @@ func (s *Server) handleTestResponseStringMACRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -130039,12 +126339,8 @@ func (s *Server) handleTestResponseStringMACRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -130168,7 +126464,7 @@ func (s *Server) handleTestResponseStringMACArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -130179,12 +126475,8 @@ func (s *Server) handleTestResponseStringMACArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -130308,7 +126600,7 @@ func (s *Server) handleTestResponseStringMACArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -130319,12 +126611,8 @@ func (s *Server) handleTestResponseStringMACArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -130448,7 +126736,7 @@ func (s *Server) handleTestResponseStringMACNullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -130459,12 +126747,8 @@ func (s *Server) handleTestResponseStringMACNullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -130588,7 +126872,7 @@ func (s *Server) handleTestResponseStringMACNullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -130599,12 +126883,8 @@ func (s *Server) handleTestResponseStringMACNullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -130728,7 +127008,7 @@ func (s *Server) handleTestResponseStringMACNullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -130739,12 +127019,8 @@ func (s *Server) handleTestResponseStringMACNullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -130868,7 +127144,7 @@ func (s *Server) handleTestResponseStringNullableRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -130879,12 +127155,8 @@ func (s *Server) handleTestResponseStringNullableRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -131008,7 +127280,7 @@ func (s *Server) handleTestResponseStringNullableArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -131019,12 +127291,8 @@ func (s *Server) handleTestResponseStringNullableArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -131148,7 +127416,7 @@ func (s *Server) handleTestResponseStringNullableArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -131159,12 +127427,8 @@ func (s *Server) handleTestResponseStringNullableArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -131288,7 +127552,7 @@ func (s *Server) handleTestResponseStringPasswordRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -131299,12 +127563,8 @@ func (s *Server) handleTestResponseStringPasswordRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -131428,7 +127688,7 @@ func (s *Server) handleTestResponseStringPasswordArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -131439,12 +127699,8 @@ func (s *Server) handleTestResponseStringPasswordArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -131568,7 +127824,7 @@ func (s *Server) handleTestResponseStringPasswordArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -131579,12 +127835,8 @@ func (s *Server) handleTestResponseStringPasswordArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -131708,7 +127960,7 @@ func (s *Server) handleTestResponseStringPasswordNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -131719,12 +127971,8 @@ func (s *Server) handleTestResponseStringPasswordNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -131848,7 +128096,7 @@ func (s *Server) handleTestResponseStringPasswordNullableArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -131859,12 +128107,8 @@ func (s *Server) handleTestResponseStringPasswordNullableArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -131988,7 +128232,7 @@ func (s *Server) handleTestResponseStringPasswordNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -131999,12 +128243,8 @@ func (s *Server) handleTestResponseStringPasswordNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -132128,7 +128368,7 @@ func (s *Server) handleTestResponseStringTimeRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -132139,12 +128379,8 @@ func (s *Server) handleTestResponseStringTimeRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -132268,7 +128504,7 @@ func (s *Server) handleTestResponseStringTimeArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -132279,12 +128515,8 @@ func (s *Server) handleTestResponseStringTimeArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -132408,7 +128640,7 @@ func (s *Server) handleTestResponseStringTimeArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -132419,12 +128651,8 @@ func (s *Server) handleTestResponseStringTimeArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -132548,7 +128776,7 @@ func (s *Server) handleTestResponseStringTimeNullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -132559,12 +128787,8 @@ func (s *Server) handleTestResponseStringTimeNullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -132688,7 +128912,7 @@ func (s *Server) handleTestResponseStringTimeNullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -132699,12 +128923,8 @@ func (s *Server) handleTestResponseStringTimeNullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -132828,7 +129048,7 @@ func (s *Server) handleTestResponseStringTimeNullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -132839,12 +129059,8 @@ func (s *Server) handleTestResponseStringTimeNullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -132968,7 +129184,7 @@ func (s *Server) handleTestResponseStringURIRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -132979,12 +129195,8 @@ func (s *Server) handleTestResponseStringURIRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -133108,7 +129320,7 @@ func (s *Server) handleTestResponseStringURIArrayRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -133119,12 +129331,8 @@ func (s *Server) handleTestResponseStringURIArrayRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -133248,7 +129456,7 @@ func (s *Server) handleTestResponseStringURIArrayArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -133259,12 +129467,8 @@ func (s *Server) handleTestResponseStringURIArrayArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -133388,7 +129592,7 @@ func (s *Server) handleTestResponseStringURINullableRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -133399,12 +129603,8 @@ func (s *Server) handleTestResponseStringURINullableRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -133528,7 +129728,7 @@ func (s *Server) handleTestResponseStringURINullableArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -133539,12 +129739,8 @@ func (s *Server) handleTestResponseStringURINullableArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -133668,7 +129864,7 @@ func (s *Server) handleTestResponseStringURINullableArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -133679,12 +129875,8 @@ func (s *Server) handleTestResponseStringURINullableArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -133808,7 +130000,7 @@ func (s *Server) handleTestResponseStringUUIDRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -133819,12 +130011,8 @@ func (s *Server) handleTestResponseStringUUIDRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -133948,7 +130136,7 @@ func (s *Server) handleTestResponseStringUUIDArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -133959,12 +130147,8 @@ func (s *Server) handleTestResponseStringUUIDArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -134088,7 +130272,7 @@ func (s *Server) handleTestResponseStringUUIDArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -134099,12 +130283,8 @@ func (s *Server) handleTestResponseStringUUIDArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -134228,7 +130408,7 @@ func (s *Server) handleTestResponseStringUUIDNullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -134239,12 +130419,8 @@ func (s *Server) handleTestResponseStringUUIDNullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -134368,7 +130544,7 @@ func (s *Server) handleTestResponseStringUUIDNullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -134379,12 +130555,8 @@ func (s *Server) handleTestResponseStringUUIDNullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -134508,7 +130680,7 @@ func (s *Server) handleTestResponseStringUUIDNullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -134519,12 +130691,8 @@ func (s *Server) handleTestResponseStringUUIDNullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -134648,7 +130816,7 @@ func (s *Server) handleTestResponseStringUintRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -134659,12 +130827,8 @@ func (s *Server) handleTestResponseStringUintRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -134788,7 +130952,7 @@ func (s *Server) handleTestResponseStringUint16Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -134799,12 +130963,8 @@ func (s *Server) handleTestResponseStringUint16Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -134928,7 +131088,7 @@ func (s *Server) handleTestResponseStringUint16ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -134939,12 +131099,8 @@ func (s *Server) handleTestResponseStringUint16ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -135068,7 +131224,7 @@ func (s *Server) handleTestResponseStringUint16ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -135079,12 +131235,8 @@ func (s *Server) handleTestResponseStringUint16ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -135208,7 +131360,7 @@ func (s *Server) handleTestResponseStringUint16NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -135219,12 +131371,8 @@ func (s *Server) handleTestResponseStringUint16NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -135348,7 +131496,7 @@ func (s *Server) handleTestResponseStringUint16NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -135359,12 +131507,8 @@ func (s *Server) handleTestResponseStringUint16NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -135488,7 +131632,7 @@ func (s *Server) handleTestResponseStringUint16NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -135499,12 +131643,8 @@ func (s *Server) handleTestResponseStringUint16NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -135628,7 +131768,7 @@ func (s *Server) handleTestResponseStringUint32Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -135639,12 +131779,8 @@ func (s *Server) handleTestResponseStringUint32Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -135768,7 +131904,7 @@ func (s *Server) handleTestResponseStringUint32ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -135779,12 +131915,8 @@ func (s *Server) handleTestResponseStringUint32ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -135908,7 +132040,7 @@ func (s *Server) handleTestResponseStringUint32ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -135919,12 +132051,8 @@ func (s *Server) handleTestResponseStringUint32ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -136048,7 +132176,7 @@ func (s *Server) handleTestResponseStringUint32NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -136059,12 +132187,8 @@ func (s *Server) handleTestResponseStringUint32NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -136188,7 +132312,7 @@ func (s *Server) handleTestResponseStringUint32NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -136199,12 +132323,8 @@ func (s *Server) handleTestResponseStringUint32NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -136328,7 +132448,7 @@ func (s *Server) handleTestResponseStringUint32NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -136339,12 +132459,8 @@ func (s *Server) handleTestResponseStringUint32NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -136468,7 +132584,7 @@ func (s *Server) handleTestResponseStringUint64Request(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -136479,12 +132595,8 @@ func (s *Server) handleTestResponseStringUint64Request(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -136608,7 +132720,7 @@ func (s *Server) handleTestResponseStringUint64ArrayRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -136619,12 +132731,8 @@ func (s *Server) handleTestResponseStringUint64ArrayRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -136748,7 +132856,7 @@ func (s *Server) handleTestResponseStringUint64ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -136759,12 +132867,8 @@ func (s *Server) handleTestResponseStringUint64ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -136888,7 +132992,7 @@ func (s *Server) handleTestResponseStringUint64NullableRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -136899,12 +133003,8 @@ func (s *Server) handleTestResponseStringUint64NullableRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -137028,7 +133128,7 @@ func (s *Server) handleTestResponseStringUint64NullableArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -137039,12 +133139,8 @@ func (s *Server) handleTestResponseStringUint64NullableArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -137168,7 +133264,7 @@ func (s *Server) handleTestResponseStringUint64NullableArrayArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -137179,12 +133275,8 @@ func (s *Server) handleTestResponseStringUint64NullableArrayArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -137308,7 +133400,7 @@ func (s *Server) handleTestResponseStringUint8Request(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -137319,12 +133411,8 @@ func (s *Server) handleTestResponseStringUint8Request(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -137448,7 +133536,7 @@ func (s *Server) handleTestResponseStringUint8ArrayRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -137459,12 +133547,8 @@ func (s *Server) handleTestResponseStringUint8ArrayRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -137588,7 +133672,7 @@ func (s *Server) handleTestResponseStringUint8ArrayArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -137599,12 +133683,8 @@ func (s *Server) handleTestResponseStringUint8ArrayArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -137728,7 +133808,7 @@ func (s *Server) handleTestResponseStringUint8NullableRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -137739,12 +133819,8 @@ func (s *Server) handleTestResponseStringUint8NullableRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -137868,7 +133944,7 @@ func (s *Server) handleTestResponseStringUint8NullableArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -137879,12 +133955,8 @@ func (s *Server) handleTestResponseStringUint8NullableArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -138008,7 +134080,7 @@ func (s *Server) handleTestResponseStringUint8NullableArrayArrayRequest(args [0] s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -138019,12 +134091,8 @@ func (s *Server) handleTestResponseStringUint8NullableArrayArrayRequest(args [0] // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -138148,7 +134216,7 @@ func (s *Server) handleTestResponseStringUintArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -138159,12 +134227,8 @@ func (s *Server) handleTestResponseStringUintArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -138288,7 +134352,7 @@ func (s *Server) handleTestResponseStringUintArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -138299,12 +134363,8 @@ func (s *Server) handleTestResponseStringUintArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -138428,7 +134488,7 @@ func (s *Server) handleTestResponseStringUintNullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -138439,12 +134499,8 @@ func (s *Server) handleTestResponseStringUintNullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -138568,7 +134624,7 @@ func (s *Server) handleTestResponseStringUintNullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -138579,12 +134635,8 @@ func (s *Server) handleTestResponseStringUintNullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -138708,7 +134760,7 @@ func (s *Server) handleTestResponseStringUintNullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -138719,12 +134771,8 @@ func (s *Server) handleTestResponseStringUintNullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -138848,7 +134896,7 @@ func (s *Server) handleTestResponseStringUnixRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -138859,12 +134907,8 @@ func (s *Server) handleTestResponseStringUnixRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -138988,7 +135032,7 @@ func (s *Server) handleTestResponseStringUnixArrayRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -138999,12 +135043,8 @@ func (s *Server) handleTestResponseStringUnixArrayRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -139128,7 +135168,7 @@ func (s *Server) handleTestResponseStringUnixArrayArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -139139,12 +135179,8 @@ func (s *Server) handleTestResponseStringUnixArrayArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -139268,7 +135304,7 @@ func (s *Server) handleTestResponseStringUnixMicroRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -139279,12 +135315,8 @@ func (s *Server) handleTestResponseStringUnixMicroRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -139408,7 +135440,7 @@ func (s *Server) handleTestResponseStringUnixMicroArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -139419,12 +135451,8 @@ func (s *Server) handleTestResponseStringUnixMicroArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -139548,7 +135576,7 @@ func (s *Server) handleTestResponseStringUnixMicroArrayArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -139559,12 +135587,8 @@ func (s *Server) handleTestResponseStringUnixMicroArrayArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -139688,7 +135712,7 @@ func (s *Server) handleTestResponseStringUnixMicroNullableRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -139699,12 +135723,8 @@ func (s *Server) handleTestResponseStringUnixMicroNullableRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -139828,7 +135848,7 @@ func (s *Server) handleTestResponseStringUnixMicroNullableArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -139839,12 +135859,8 @@ func (s *Server) handleTestResponseStringUnixMicroNullableArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -139968,7 +135984,7 @@ func (s *Server) handleTestResponseStringUnixMicroNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -139979,12 +135995,8 @@ func (s *Server) handleTestResponseStringUnixMicroNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -140108,7 +136120,7 @@ func (s *Server) handleTestResponseStringUnixMilliRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -140119,12 +136131,8 @@ func (s *Server) handleTestResponseStringUnixMilliRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -140248,7 +136256,7 @@ func (s *Server) handleTestResponseStringUnixMilliArrayRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -140259,12 +136267,8 @@ func (s *Server) handleTestResponseStringUnixMilliArrayRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -140388,7 +136392,7 @@ func (s *Server) handleTestResponseStringUnixMilliArrayArrayRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -140399,12 +136403,8 @@ func (s *Server) handleTestResponseStringUnixMilliArrayArrayRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -140528,7 +136528,7 @@ func (s *Server) handleTestResponseStringUnixMilliNullableRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -140539,12 +136539,8 @@ func (s *Server) handleTestResponseStringUnixMilliNullableRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -140668,7 +136664,7 @@ func (s *Server) handleTestResponseStringUnixMilliNullableArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -140679,12 +136675,8 @@ func (s *Server) handleTestResponseStringUnixMilliNullableArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -140808,7 +136800,7 @@ func (s *Server) handleTestResponseStringUnixMilliNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -140819,12 +136811,8 @@ func (s *Server) handleTestResponseStringUnixMilliNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -140948,7 +136936,7 @@ func (s *Server) handleTestResponseStringUnixNanoRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -140959,12 +136947,8 @@ func (s *Server) handleTestResponseStringUnixNanoRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -141088,7 +137072,7 @@ func (s *Server) handleTestResponseStringUnixNanoArrayRequest(args [0]string, ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -141099,12 +137083,8 @@ func (s *Server) handleTestResponseStringUnixNanoArrayRequest(args [0]string, ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -141228,7 +137208,7 @@ func (s *Server) handleTestResponseStringUnixNanoArrayArrayRequest(args [0]strin s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -141239,12 +137219,8 @@ func (s *Server) handleTestResponseStringUnixNanoArrayArrayRequest(args [0]strin // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -141368,7 +137344,7 @@ func (s *Server) handleTestResponseStringUnixNanoNullableRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -141379,12 +137355,8 @@ func (s *Server) handleTestResponseStringUnixNanoNullableRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -141508,7 +137480,7 @@ func (s *Server) handleTestResponseStringUnixNanoNullableArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -141519,12 +137491,8 @@ func (s *Server) handleTestResponseStringUnixNanoNullableArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -141648,7 +137616,7 @@ func (s *Server) handleTestResponseStringUnixNanoNullableArrayArrayRequest(args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -141659,12 +137627,8 @@ func (s *Server) handleTestResponseStringUnixNanoNullableArrayArrayRequest(args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -141788,7 +137752,7 @@ func (s *Server) handleTestResponseStringUnixNullableRequest(args [0]string, arg s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -141799,12 +137763,8 @@ func (s *Server) handleTestResponseStringUnixNullableRequest(args [0]string, arg // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -141928,7 +137888,7 @@ func (s *Server) handleTestResponseStringUnixNullableArrayRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -141939,12 +137899,8 @@ func (s *Server) handleTestResponseStringUnixNullableArrayRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -142068,7 +138024,7 @@ func (s *Server) handleTestResponseStringUnixNullableArrayArrayRequest(args [0]s s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -142079,12 +138035,8 @@ func (s *Server) handleTestResponseStringUnixNullableArrayArrayRequest(args [0]s // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -142208,7 +138160,7 @@ func (s *Server) handleTestResponseStringUnixSecondsRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -142219,12 +138171,8 @@ func (s *Server) handleTestResponseStringUnixSecondsRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -142348,7 +138296,7 @@ func (s *Server) handleTestResponseStringUnixSecondsArrayRequest(args [0]string, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -142359,12 +138307,8 @@ func (s *Server) handleTestResponseStringUnixSecondsArrayRequest(args [0]string, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -142488,7 +138432,7 @@ func (s *Server) handleTestResponseStringUnixSecondsArrayArrayRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -142499,12 +138443,8 @@ func (s *Server) handleTestResponseStringUnixSecondsArrayArrayRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -142628,7 +138568,7 @@ func (s *Server) handleTestResponseStringUnixSecondsNullableRequest(args [0]stri s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -142639,12 +138579,8 @@ func (s *Server) handleTestResponseStringUnixSecondsNullableRequest(args [0]stri // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -142768,7 +138704,7 @@ func (s *Server) handleTestResponseStringUnixSecondsNullableArrayRequest(args [0 s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -142779,12 +138715,8 @@ func (s *Server) handleTestResponseStringUnixSecondsNullableArrayRequest(args [0 // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -142908,7 +138840,7 @@ func (s *Server) handleTestResponseStringUnixSecondsNullableArrayArrayRequest(ar s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -142919,12 +138851,8 @@ func (s *Server) handleTestResponseStringUnixSecondsNullableArrayArrayRequest(ar // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/examples/ex_tinkoff/oas_client_gen.go b/examples/ex_tinkoff/oas_client_gen.go index ff1bccddc..5d09b4098 100644 --- a/examples/ex_tinkoff/oas_client_gen.go +++ b/examples/ex_tinkoff/oas_client_gen.go @@ -222,7 +222,7 @@ func (c *Client) sendMarketBondsGet(ctx context.Context) (res MarketBondsGetRes, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -326,7 +326,7 @@ func (c *Client) sendMarketCandlesGet(ctx context.Context, params MarketCandlesG defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -490,7 +490,7 @@ func (c *Client) sendMarketCurrenciesGet(ctx context.Context) (res MarketCurrenc defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -594,7 +594,7 @@ func (c *Client) sendMarketEtfsGet(ctx context.Context) (res MarketEtfsGetRes, e defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -698,7 +698,7 @@ func (c *Client) sendMarketOrderbookGet(ctx context.Context, params MarketOrderb defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -834,7 +834,7 @@ func (c *Client) sendMarketSearchByFigiGet(ctx context.Context, params MarketSea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -956,7 +956,7 @@ func (c *Client) sendMarketSearchByTickerGet(ctx context.Context, params MarketS defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1078,7 +1078,7 @@ func (c *Client) sendMarketStocksGet(ctx context.Context) (res MarketStocksGetRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1182,7 +1182,7 @@ func (c *Client) sendOperationsGet(ctx context.Context, params OperationsGetPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1352,7 +1352,7 @@ func (c *Client) sendOrdersCancelPost(ctx context.Context, params OrdersCancelPo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1491,7 +1491,7 @@ func (c *Client) sendOrdersGet(ctx context.Context, params OrdersGetParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1616,7 +1616,7 @@ func (c *Client) sendOrdersLimitOrderPost(ctx context.Context, request *LimitOrd defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1758,7 +1758,7 @@ func (c *Client) sendOrdersMarketOrderPost(ctx context.Context, request *MarketO defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1900,7 +1900,7 @@ func (c *Client) sendPortfolioCurrenciesGet(ctx context.Context, params Portfoli defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2025,7 +2025,7 @@ func (c *Client) sendPortfolioGet(ctx context.Context, params PortfolioGetParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2150,7 +2150,7 @@ func (c *Client) sendSandboxClearPost(ctx context.Context, params SandboxClearPo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2275,7 +2275,7 @@ func (c *Client) sendSandboxCurrenciesBalancePost(ctx context.Context, request * defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2403,7 +2403,7 @@ func (c *Client) sendSandboxPositionsBalancePost(ctx context.Context, request *S defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2531,7 +2531,7 @@ func (c *Client) sendSandboxRegisterPost(ctx context.Context, request OptSandbox defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2638,7 +2638,7 @@ func (c *Client) sendSandboxRemovePost(ctx context.Context, params SandboxRemove defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2763,7 +2763,7 @@ func (c *Client) sendUserAccountsGet(ctx context.Context) (res UserAccountsGetRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/examples/ex_tinkoff/oas_handlers_gen.go b/examples/ex_tinkoff/oas_handlers_gen.go index 7ab6a8f77..0a06c7423 100644 --- a/examples/ex_tinkoff/oas_handlers_gen.go +++ b/examples/ex_tinkoff/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handleMarketBondsGetRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handleMarketBondsGetRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -242,7 +238,7 @@ func (s *Server) handleMarketCandlesGetRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -253,12 +249,8 @@ func (s *Server) handleMarketCandlesGetRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -439,7 +431,7 @@ func (s *Server) handleMarketCurrenciesGetRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -450,12 +442,8 @@ func (s *Server) handleMarketCurrenciesGetRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -609,7 +597,7 @@ func (s *Server) handleMarketEtfsGetRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -620,12 +608,8 @@ func (s *Server) handleMarketEtfsGetRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -779,7 +763,7 @@ func (s *Server) handleMarketOrderbookGetRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -790,12 +774,8 @@ func (s *Server) handleMarketOrderbookGetRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -968,7 +948,7 @@ func (s *Server) handleMarketSearchByFigiGetRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -979,12 +959,8 @@ func (s *Server) handleMarketSearchByFigiGetRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1153,7 +1129,7 @@ func (s *Server) handleMarketSearchByTickerGetRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1164,12 +1140,8 @@ func (s *Server) handleMarketSearchByTickerGetRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1338,7 +1310,7 @@ func (s *Server) handleMarketStocksGetRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1349,12 +1321,8 @@ func (s *Server) handleMarketStocksGetRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1508,7 +1476,7 @@ func (s *Server) handleOperationsGetRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1519,12 +1487,8 @@ func (s *Server) handleOperationsGetRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1705,7 +1669,7 @@ func (s *Server) handleOrdersCancelPostRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1716,12 +1680,8 @@ func (s *Server) handleOrdersCancelPostRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1894,7 +1854,7 @@ func (s *Server) handleOrdersGetRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1905,12 +1865,8 @@ func (s *Server) handleOrdersGetRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2079,7 +2035,7 @@ func (s *Server) handleOrdersLimitOrderPostRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2090,12 +2046,8 @@ func (s *Server) handleOrdersLimitOrderPostRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2283,7 +2235,7 @@ func (s *Server) handleOrdersMarketOrderPostRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2294,12 +2246,8 @@ func (s *Server) handleOrdersMarketOrderPostRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2487,7 +2435,7 @@ func (s *Server) handlePortfolioCurrenciesGetRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2498,12 +2446,8 @@ func (s *Server) handlePortfolioCurrenciesGetRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2672,7 +2616,7 @@ func (s *Server) handlePortfolioGetRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2683,12 +2627,8 @@ func (s *Server) handlePortfolioGetRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2857,7 +2797,7 @@ func (s *Server) handleSandboxClearPostRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2868,12 +2808,8 @@ func (s *Server) handleSandboxClearPostRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3042,7 +2978,7 @@ func (s *Server) handleSandboxCurrenciesBalancePostRequest(args [0]string, argsE s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3053,12 +2989,8 @@ func (s *Server) handleSandboxCurrenciesBalancePostRequest(args [0]string, argsE // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3242,7 +3174,7 @@ func (s *Server) handleSandboxPositionsBalancePostRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3253,12 +3185,8 @@ func (s *Server) handleSandboxPositionsBalancePostRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3442,7 +3370,7 @@ func (s *Server) handleSandboxRegisterPostRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3453,12 +3381,8 @@ func (s *Server) handleSandboxRegisterPostRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3627,7 +3551,7 @@ func (s *Server) handleSandboxRemovePostRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3638,12 +3562,8 @@ func (s *Server) handleSandboxRemovePostRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3812,7 +3732,7 @@ func (s *Server) handleUserAccountsGetRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3823,12 +3743,8 @@ func (s *Server) handleUserAccountsGetRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/gen/_template/client.tmpl b/gen/_template/client.tmpl index 98e178995..7908b2388 100644 --- a/gen/_template/client.tmpl +++ b/gen/_template/client.tmpl @@ -213,7 +213,7 @@ func (c *{{ if $op.WebhookInfo }}Webhook{{ end }}Client) send{{ $op.Name }}(ctx defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/gen/_template/handlers.tmpl b/gen/_template/handlers.tmpl index 43af04911..2945a1750 100644 --- a/gen/_template/handlers.tmpl +++ b/gen/_template/handlers.tmpl @@ -4,12 +4,12 @@ type codeRecorder struct { http.ResponseWriter - status int + status int } func (c *codeRecorder) WriteHeader(status int) { - c.status = status - c.ResponseWriter.WriteHeader(status) + c.status = status + c.ResponseWriter.WriteHeader(status) } {{- if not $.OpenTelemetryEnabled }} @@ -76,21 +76,21 @@ func (s *{{ if $op.WebhookInfo }}Webhook{{ end }}Server) handle{{ $op.Name }}Req defer func() { elapsedDuration := time.Since(startTime) - attrSet := labeler.AttributeSet() - attrs := attrSet.ToSlice() - code := statusWriter.status - if code != 0 { - codeAttr := semconv.HTTPResponseStatusCode(code) - attrs = append(attrs, codeAttr) - span.SetAttributes(codeAttr) - } - attrOpt := metric.WithAttributes(attrs...) + attrSet := labeler.AttributeSet() + attrs := attrSet.ToSlice() + code := statusWriter.status + if code != 0 { + codeAttr := semconv.HTTPResponseStatusCode(code) + attrs = append(attrs, codeAttr) + span.SetAttributes(codeAttr) + } + attrOpt := metric.WithAttributes(attrs...) // Increment request counter. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() {{- else }} ctx := r.Context() @@ -105,20 +105,16 @@ func (s *{{ if $op.WebhookInfo }}Webhook{{ end }}Server) handle{{ $op.Name }}Req // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true - code := statusWriter.status -if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { - span.SetStatus(codes.Error, stage) + code := statusWriter.status + if code >= 100 && code < 500 { + span.SetStatus(codes.Error, stage) } - attrSet := labeler.AttributeSet() - attrs := attrSet.ToSlice() - if code != 0 { - attrs = append(attrs, semconv.HTTPResponseStatusCode(code)) - } + attrSet := labeler.AttributeSet() + attrs := attrSet.ToSlice() + if code != 0 { + attrs = append(attrs, semconv.HTTPResponseStatusCode(code)) + } s.errors.Add(ctx, 1, metric.WithAttributes(attrs...)) } diff --git a/internal/integration/referenced_path_item/oas_client_gen.go b/internal/integration/referenced_path_item/oas_client_gen.go index 4515ceecd..1df2660ca 100644 --- a/internal/integration/referenced_path_item/oas_client_gen.go +++ b/internal/integration/referenced_path_item/oas_client_gen.go @@ -94,7 +94,7 @@ func (c *Client) sendFooGet(ctx context.Context) (res string, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/referenced_path_item/oas_handlers_gen.go b/internal/integration/referenced_path_item/oas_handlers_gen.go index 377f2e927..00b50306b 100644 --- a/internal/integration/referenced_path_item/oas_handlers_gen.go +++ b/internal/integration/referenced_path_item/oas_handlers_gen.go @@ -69,7 +69,7 @@ func (s *Server) handleFooGetRequest(args [0]string, argsEscaped bool, w http.Re s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80,12 +80,8 @@ func (s *Server) handleFooGetRequest(args [0]string, argsEscaped bool, w http.Re // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/sample_api/oas_client_gen.go b/internal/integration/sample_api/oas_client_gen.go index 94ec4cae0..308074d22 100644 --- a/internal/integration/sample_api/oas_client_gen.go +++ b/internal/integration/sample_api/oas_client_gen.go @@ -247,7 +247,7 @@ func (c *Client) sendDataGetFormat(ctx context.Context, params DataGetFormatPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -420,7 +420,7 @@ func (c *Client) sendDefaultTest(ctx context.Context, request *DefaultTest, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -516,7 +516,7 @@ func (c *Client) sendErrorGet(ctx context.Context) (res *ErrorStatusCode, err er defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -588,7 +588,7 @@ func (c *Client) sendFoobarGet(ctx context.Context, params FoobarGetParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -708,7 +708,7 @@ func (c *Client) sendFoobarPost(ctx context.Context, request OptPet) (res Foobar defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -780,7 +780,7 @@ func (c *Client) sendFoobarPut(ctx context.Context) (res *FoobarPutDef, err erro defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -850,7 +850,7 @@ func (c *Client) sendNoAdditionalPropertiesTest(ctx context.Context) (res *NoAdd defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -920,7 +920,7 @@ func (c *Client) sendNullableDefaultResponse(ctx context.Context) (res *NilIntSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -999,7 +999,7 @@ func (c *Client) sendOneofBug(ctx context.Context, request *OneOfBugs) (res *One defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1071,7 +1071,7 @@ func (c *Client) sendPatternRecursiveMapGet(ctx context.Context) (res PatternRec defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1159,7 +1159,7 @@ func (c *Client) sendPetCreate(ctx context.Context, request OptPet) (res *Pet, e defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1234,7 +1234,7 @@ func (c *Client) sendPetFriendsNamesByID(ctx context.Context, params PetFriendsN defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1324,7 +1324,7 @@ func (c *Client) sendPetGet(ctx context.Context, params PetGetParams) (res PetGe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1471,7 +1471,7 @@ func (c *Client) sendPetGetAvatarByID(ctx context.Context, params PetGetAvatarBy defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1561,7 +1561,7 @@ func (c *Client) sendPetGetAvatarByName(ctx context.Context, params PetGetAvatar defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1652,7 +1652,7 @@ func (c *Client) sendPetGetByName(ctx context.Context, params PetGetByNameParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1742,7 +1742,7 @@ func (c *Client) sendPetNameByID(ctx context.Context, params PetNameByIDParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1845,7 +1845,7 @@ func (c *Client) sendPetUpdateNameAliasPost(ctx context.Context, request OptPetN defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1941,7 +1941,7 @@ func (c *Client) sendPetUpdateNamePost(ctx context.Context, request OptString) ( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2016,7 +2016,7 @@ func (c *Client) sendPetUploadAvatarByID(ctx context.Context, request PetUploadA defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2106,7 +2106,7 @@ func (c *Client) sendRecursiveArrayGet(ctx context.Context) (res RecursiveArray, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2175,7 +2175,7 @@ func (c *Client) sendRecursiveMapGet(ctx context.Context) (res *RecursiveMap, er defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2245,7 +2245,7 @@ func (c *Client) sendSecurityTest(ctx context.Context) (res string, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2347,7 +2347,7 @@ func (c *Client) sendStringIntMapGet(ctx context.Context) (res *StringIntMap, er defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2426,7 +2426,7 @@ func (c *Client) sendTestFloatValidation(ctx context.Context, request *TestFloat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2499,7 +2499,7 @@ func (c *Client) sendTestInlineOneof(ctx context.Context) (res *TestInlineOneOf, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2569,7 +2569,7 @@ func (c *Client) sendTestIssue1310(ctx context.Context) (res *Issue1310, err err defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2639,7 +2639,7 @@ func (c *Client) sendTestNullableOneofs(ctx context.Context) (res TestNullableOn defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2709,7 +2709,7 @@ func (c *Client) sendTestTuple(ctx context.Context) (res *TupleTest, err error) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2779,7 +2779,7 @@ func (c *Client) sendTestTupleNamed(ctx context.Context) (res *TupleNamedTest, e defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2849,7 +2849,7 @@ func (c *Client) sendTestUniqueItems(ctx context.Context) (res *UniqueItemsTest, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/sample_api/oas_handlers_gen.go b/internal/integration/sample_api/oas_handlers_gen.go index 0222e19cf..7fef4bed5 100644 --- a/internal/integration/sample_api/oas_handlers_gen.go +++ b/internal/integration/sample_api/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleDataGetFormatRequest(args [5]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleDataGetFormatRequest(args [5]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -230,7 +226,7 @@ func (s *Server) handleDefaultTestRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -241,12 +237,8 @@ func (s *Server) handleDefaultTestRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -387,7 +379,7 @@ func (s *Server) handleErrorGetRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -398,12 +390,8 @@ func (s *Server) handleErrorGetRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -510,7 +498,7 @@ func (s *Server) handleFoobarGetRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -521,12 +509,8 @@ func (s *Server) handleFoobarGetRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -656,7 +640,7 @@ func (s *Server) handleFoobarPostRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -667,12 +651,8 @@ func (s *Server) handleFoobarPostRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -795,7 +775,7 @@ func (s *Server) handleFoobarPutRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -806,12 +786,8 @@ func (s *Server) handleFoobarPutRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -916,7 +892,7 @@ func (s *Server) handleNoAdditionalPropertiesTestRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -927,12 +903,8 @@ func (s *Server) handleNoAdditionalPropertiesTestRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1037,7 +1009,7 @@ func (s *Server) handleNullableDefaultResponseRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1048,12 +1020,8 @@ func (s *Server) handleNullableDefaultResponseRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1158,7 +1126,7 @@ func (s *Server) handleOneofBugRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1169,12 +1137,8 @@ func (s *Server) handleOneofBugRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1297,7 +1261,7 @@ func (s *Server) handlePatternRecursiveMapGetRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1308,12 +1272,8 @@ func (s *Server) handlePatternRecursiveMapGetRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1420,7 +1380,7 @@ func (s *Server) handlePetCreateRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1431,12 +1391,8 @@ func (s *Server) handlePetCreateRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1562,7 +1518,7 @@ func (s *Server) handlePetFriendsNamesByIDRequest(args [1]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1573,12 +1529,8 @@ func (s *Server) handlePetFriendsNamesByIDRequest(args [1]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1704,7 +1656,7 @@ func (s *Server) handlePetGetRequest(args [0]string, argsEscaped bool, w http.Re s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1715,12 +1667,8 @@ func (s *Server) handlePetGetRequest(args [0]string, argsEscaped bool, w http.Re // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1858,7 +1806,7 @@ func (s *Server) handlePetGetAvatarByIDRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1869,12 +1817,8 @@ func (s *Server) handlePetGetAvatarByIDRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2000,7 +1944,7 @@ func (s *Server) handlePetGetAvatarByNameRequest(args [1]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2011,12 +1955,8 @@ func (s *Server) handlePetGetAvatarByNameRequest(args [1]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2142,7 +2082,7 @@ func (s *Server) handlePetGetByNameRequest(args [1]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2153,12 +2093,8 @@ func (s *Server) handlePetGetByNameRequest(args [1]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2284,7 +2220,7 @@ func (s *Server) handlePetNameByIDRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2295,12 +2231,8 @@ func (s *Server) handlePetNameByIDRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2423,7 +2355,7 @@ func (s *Server) handlePetUpdateNameAliasPostRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2434,12 +2366,8 @@ func (s *Server) handlePetUpdateNameAliasPostRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2562,7 +2490,7 @@ func (s *Server) handlePetUpdateNamePostRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2573,12 +2501,8 @@ func (s *Server) handlePetUpdateNamePostRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2704,7 +2628,7 @@ func (s *Server) handlePetUploadAvatarByIDRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2715,12 +2639,8 @@ func (s *Server) handlePetUploadAvatarByIDRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2858,7 +2778,7 @@ func (s *Server) handleRecursiveArrayGetRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2869,12 +2789,8 @@ func (s *Server) handleRecursiveArrayGetRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2978,7 +2894,7 @@ func (s *Server) handleRecursiveMapGetRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2989,12 +2905,8 @@ func (s *Server) handleRecursiveMapGetRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3099,7 +3011,7 @@ func (s *Server) handleSecurityTestRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3110,12 +3022,8 @@ func (s *Server) handleSecurityTestRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3267,7 +3175,7 @@ func (s *Server) handleStringIntMapGetRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3278,12 +3186,8 @@ func (s *Server) handleStringIntMapGetRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3388,7 +3292,7 @@ func (s *Server) handleTestFloatValidationRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3399,12 +3303,8 @@ func (s *Server) handleTestFloatValidationRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3528,7 +3428,7 @@ func (s *Server) handleTestInlineOneofRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3539,12 +3439,8 @@ func (s *Server) handleTestInlineOneofRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3649,7 +3545,7 @@ func (s *Server) handleTestIssue1310Request(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3660,12 +3556,8 @@ func (s *Server) handleTestIssue1310Request(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3770,7 +3662,7 @@ func (s *Server) handleTestNullableOneofsRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3781,12 +3673,8 @@ func (s *Server) handleTestNullableOneofsRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3891,7 +3779,7 @@ func (s *Server) handleTestTupleRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3902,12 +3790,8 @@ func (s *Server) handleTestTupleRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4012,7 +3896,7 @@ func (s *Server) handleTestTupleNamedRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4023,12 +3907,8 @@ func (s *Server) handleTestTupleNamedRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4133,7 +4013,7 @@ func (s *Server) handleTestUniqueItemsRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4144,12 +4024,8 @@ func (s *Server) handleTestUniqueItemsRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/sample_api_nc/oas_handlers_gen.go b/internal/integration/sample_api_nc/oas_handlers_gen.go index 0222e19cf..7fef4bed5 100644 --- a/internal/integration/sample_api_nc/oas_handlers_gen.go +++ b/internal/integration/sample_api_nc/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleDataGetFormatRequest(args [5]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleDataGetFormatRequest(args [5]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -230,7 +226,7 @@ func (s *Server) handleDefaultTestRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -241,12 +237,8 @@ func (s *Server) handleDefaultTestRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -387,7 +379,7 @@ func (s *Server) handleErrorGetRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -398,12 +390,8 @@ func (s *Server) handleErrorGetRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -510,7 +498,7 @@ func (s *Server) handleFoobarGetRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -521,12 +509,8 @@ func (s *Server) handleFoobarGetRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -656,7 +640,7 @@ func (s *Server) handleFoobarPostRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -667,12 +651,8 @@ func (s *Server) handleFoobarPostRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -795,7 +775,7 @@ func (s *Server) handleFoobarPutRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -806,12 +786,8 @@ func (s *Server) handleFoobarPutRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -916,7 +892,7 @@ func (s *Server) handleNoAdditionalPropertiesTestRequest(args [0]string, argsEsc s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -927,12 +903,8 @@ func (s *Server) handleNoAdditionalPropertiesTestRequest(args [0]string, argsEsc // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1037,7 +1009,7 @@ func (s *Server) handleNullableDefaultResponseRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1048,12 +1020,8 @@ func (s *Server) handleNullableDefaultResponseRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1158,7 +1126,7 @@ func (s *Server) handleOneofBugRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1169,12 +1137,8 @@ func (s *Server) handleOneofBugRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1297,7 +1261,7 @@ func (s *Server) handlePatternRecursiveMapGetRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1308,12 +1272,8 @@ func (s *Server) handlePatternRecursiveMapGetRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1420,7 +1380,7 @@ func (s *Server) handlePetCreateRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1431,12 +1391,8 @@ func (s *Server) handlePetCreateRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1562,7 +1518,7 @@ func (s *Server) handlePetFriendsNamesByIDRequest(args [1]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1573,12 +1529,8 @@ func (s *Server) handlePetFriendsNamesByIDRequest(args [1]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1704,7 +1656,7 @@ func (s *Server) handlePetGetRequest(args [0]string, argsEscaped bool, w http.Re s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1715,12 +1667,8 @@ func (s *Server) handlePetGetRequest(args [0]string, argsEscaped bool, w http.Re // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1858,7 +1806,7 @@ func (s *Server) handlePetGetAvatarByIDRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1869,12 +1817,8 @@ func (s *Server) handlePetGetAvatarByIDRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2000,7 +1944,7 @@ func (s *Server) handlePetGetAvatarByNameRequest(args [1]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2011,12 +1955,8 @@ func (s *Server) handlePetGetAvatarByNameRequest(args [1]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2142,7 +2082,7 @@ func (s *Server) handlePetGetByNameRequest(args [1]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2153,12 +2093,8 @@ func (s *Server) handlePetGetByNameRequest(args [1]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2284,7 +2220,7 @@ func (s *Server) handlePetNameByIDRequest(args [1]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2295,12 +2231,8 @@ func (s *Server) handlePetNameByIDRequest(args [1]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2423,7 +2355,7 @@ func (s *Server) handlePetUpdateNameAliasPostRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2434,12 +2366,8 @@ func (s *Server) handlePetUpdateNameAliasPostRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2562,7 +2490,7 @@ func (s *Server) handlePetUpdateNamePostRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2573,12 +2501,8 @@ func (s *Server) handlePetUpdateNamePostRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2704,7 +2628,7 @@ func (s *Server) handlePetUploadAvatarByIDRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2715,12 +2639,8 @@ func (s *Server) handlePetUploadAvatarByIDRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2858,7 +2778,7 @@ func (s *Server) handleRecursiveArrayGetRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2869,12 +2789,8 @@ func (s *Server) handleRecursiveArrayGetRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -2978,7 +2894,7 @@ func (s *Server) handleRecursiveMapGetRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -2989,12 +2905,8 @@ func (s *Server) handleRecursiveMapGetRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3099,7 +3011,7 @@ func (s *Server) handleSecurityTestRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3110,12 +3022,8 @@ func (s *Server) handleSecurityTestRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3267,7 +3175,7 @@ func (s *Server) handleStringIntMapGetRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3278,12 +3186,8 @@ func (s *Server) handleStringIntMapGetRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3388,7 +3292,7 @@ func (s *Server) handleTestFloatValidationRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3399,12 +3303,8 @@ func (s *Server) handleTestFloatValidationRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3528,7 +3428,7 @@ func (s *Server) handleTestInlineOneofRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3539,12 +3439,8 @@ func (s *Server) handleTestInlineOneofRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3649,7 +3545,7 @@ func (s *Server) handleTestIssue1310Request(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3660,12 +3556,8 @@ func (s *Server) handleTestIssue1310Request(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3770,7 +3662,7 @@ func (s *Server) handleTestNullableOneofsRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3781,12 +3673,8 @@ func (s *Server) handleTestNullableOneofsRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -3891,7 +3779,7 @@ func (s *Server) handleTestTupleRequest(args [0]string, argsEscaped bool, w http s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -3902,12 +3790,8 @@ func (s *Server) handleTestTupleRequest(args [0]string, argsEscaped bool, w http // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4012,7 +3896,7 @@ func (s *Server) handleTestTupleNamedRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4023,12 +3907,8 @@ func (s *Server) handleTestTupleNamedRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -4133,7 +4013,7 @@ func (s *Server) handleTestUniqueItemsRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -4144,12 +4024,8 @@ func (s *Server) handleTestUniqueItemsRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/sample_api_ns/oas_client_gen.go b/internal/integration/sample_api_ns/oas_client_gen.go index e66916cf0..e37e204d7 100644 --- a/internal/integration/sample_api_ns/oas_client_gen.go +++ b/internal/integration/sample_api_ns/oas_client_gen.go @@ -242,7 +242,7 @@ func (c *Client) sendDataGetFormat(ctx context.Context, params DataGetFormatPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -406,7 +406,7 @@ func (c *Client) sendDefaultTest(ctx context.Context, request *DefaultTest, para defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -502,7 +502,7 @@ func (c *Client) sendErrorGet(ctx context.Context) (res *ErrorStatusCode, err er defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -574,7 +574,7 @@ func (c *Client) sendFoobarGet(ctx context.Context, params FoobarGetParams) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -678,7 +678,7 @@ func (c *Client) sendFoobarPost(ctx context.Context, request OptPet) (res Foobar defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -750,7 +750,7 @@ func (c *Client) sendFoobarPut(ctx context.Context) (res *FoobarPutDef, err erro defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -820,7 +820,7 @@ func (c *Client) sendNoAdditionalPropertiesTest(ctx context.Context) (res *NoAdd defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -890,7 +890,7 @@ func (c *Client) sendNullableDefaultResponse(ctx context.Context) (res *NilIntSt defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -960,7 +960,7 @@ func (c *Client) sendOneofBug(ctx context.Context, request *OneOfBugs) (res *One defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1032,7 +1032,7 @@ func (c *Client) sendPatternRecursiveMapGet(ctx context.Context) (res PatternRec defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1104,7 +1104,7 @@ func (c *Client) sendPetCreate(ctx context.Context, request OptPet) (res *Pet, e defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1179,7 +1179,7 @@ func (c *Client) sendPetFriendsNamesByID(ctx context.Context, params PetFriendsN defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1269,7 +1269,7 @@ func (c *Client) sendPetGet(ctx context.Context, params PetGetParams) (res PetGe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1416,7 +1416,7 @@ func (c *Client) sendPetGetAvatarByID(ctx context.Context, params PetGetAvatarBy defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1506,7 +1506,7 @@ func (c *Client) sendPetGetAvatarByName(ctx context.Context, params PetGetAvatar defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1597,7 +1597,7 @@ func (c *Client) sendPetGetByName(ctx context.Context, params PetGetByNameParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1687,7 +1687,7 @@ func (c *Client) sendPetNameByID(ctx context.Context, params PetNameByIDParams) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1774,7 +1774,7 @@ func (c *Client) sendPetUpdateNameAliasPost(ctx context.Context, request OptPetN defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1846,7 +1846,7 @@ func (c *Client) sendPetUpdateNamePost(ctx context.Context, request OptString) ( defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1921,7 +1921,7 @@ func (c *Client) sendPetUploadAvatarByID(ctx context.Context, request PetUploadA defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2011,7 +2011,7 @@ func (c *Client) sendRecursiveArrayGet(ctx context.Context) (res RecursiveArray, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2080,7 +2080,7 @@ func (c *Client) sendRecursiveMapGet(ctx context.Context) (res *RecursiveMap, er defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2150,7 +2150,7 @@ func (c *Client) sendSecurityTest(ctx context.Context) (res string, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2252,7 +2252,7 @@ func (c *Client) sendStringIntMapGet(ctx context.Context) (res *StringIntMap, er defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2322,7 +2322,7 @@ func (c *Client) sendTestFloatValidation(ctx context.Context, request *TestFloat defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2395,7 +2395,7 @@ func (c *Client) sendTestInlineOneof(ctx context.Context) (res *TestInlineOneOf, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2465,7 +2465,7 @@ func (c *Client) sendTestIssue1310(ctx context.Context) (res *Issue1310, err err defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2535,7 +2535,7 @@ func (c *Client) sendTestNullableOneofs(ctx context.Context) (res TestNullableOn defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2605,7 +2605,7 @@ func (c *Client) sendTestTuple(ctx context.Context) (res *TupleTest, err error) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2675,7 +2675,7 @@ func (c *Client) sendTestTupleNamed(ctx context.Context) (res *TupleNamedTest, e defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -2745,7 +2745,7 @@ func (c *Client) sendTestUniqueItems(ctx context.Context) (res *UniqueItemsTest, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/sample_err/oas_client_gen.go b/internal/integration/sample_err/oas_client_gen.go index 6c55848c3..dd367c4ec 100644 --- a/internal/integration/sample_err/oas_client_gen.go +++ b/internal/integration/sample_err/oas_client_gen.go @@ -110,7 +110,7 @@ func (c *Client) sendDataCreate(ctx context.Context, request OptData) (res *Data defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -185,7 +185,7 @@ func (c *Client) sendDataGet(ctx context.Context) (res *Data, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/sample_err/oas_handlers_gen.go b/internal/integration/sample_err/oas_handlers_gen.go index fc5c46040..e793ae0de 100644 --- a/internal/integration/sample_err/oas_handlers_gen.go +++ b/internal/integration/sample_err/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleDataCreateRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleDataCreateRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -227,7 +223,7 @@ func (s *Server) handleDataGetRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -238,12 +234,8 @@ func (s *Server) handleDataGetRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/security_reentrant/oas_client_gen.go b/internal/integration/security_reentrant/oas_client_gen.go index 7f936e14d..2acd95e2f 100644 --- a/internal/integration/security_reentrant/oas_client_gen.go +++ b/internal/integration/security_reentrant/oas_client_gen.go @@ -111,7 +111,7 @@ func (c *Client) sendCustomSecurity(ctx context.Context) (res *CustomSecurityOK, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -214,7 +214,7 @@ func (c *Client) sendDisjointSecurity(ctx context.Context) (res *DisjointSecurit defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -351,7 +351,7 @@ func (c *Client) sendIntersectSecurity(ctx context.Context) (res *IntersectSecur defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -477,7 +477,7 @@ func (c *Client) sendOptionalSecurity(ctx context.Context) (res *OptionalSecurit defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/security_reentrant/oas_handlers_gen.go b/internal/integration/security_reentrant/oas_handlers_gen.go index 6931e4777..520e76643 100644 --- a/internal/integration/security_reentrant/oas_handlers_gen.go +++ b/internal/integration/security_reentrant/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handleCustomSecurityRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handleCustomSecurityRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -241,7 +237,7 @@ func (s *Server) handleDisjointSecurityRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -252,12 +248,8 @@ func (s *Server) handleDisjointSecurityRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -462,7 +454,7 @@ func (s *Server) handleIntersectSecurityRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -473,12 +465,8 @@ func (s *Server) handleIntersectSecurityRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -666,7 +654,7 @@ func (s *Server) handleOptionalSecurityRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -677,12 +665,8 @@ func (s *Server) handleOptionalSecurityRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/techempower/oas_client_gen.go b/internal/integration/techempower/oas_client_gen.go index c63bac7b5..b02581d71 100644 --- a/internal/integration/techempower/oas_client_gen.go +++ b/internal/integration/techempower/oas_client_gen.go @@ -143,7 +143,7 @@ func (c *Client) sendCaching(ctx context.Context, params CachingParams) (res Wor defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -234,7 +234,7 @@ func (c *Client) sendDB(ctx context.Context) (res *WorldObject, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -308,7 +308,7 @@ func (c *Client) sendJSON(ctx context.Context) (res *HelloWorld, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -383,7 +383,7 @@ func (c *Client) sendQueries(ctx context.Context, params QueriesParams) (res Wor defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -475,7 +475,7 @@ func (c *Client) sendUpdates(ctx context.Context, params UpdatesParams) (res Wor defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/techempower/oas_handlers_gen.go b/internal/integration/techempower/oas_handlers_gen.go index 4fae054d2..0712315f5 100644 --- a/internal/integration/techempower/oas_handlers_gen.go +++ b/internal/integration/techempower/oas_handlers_gen.go @@ -79,7 +79,7 @@ func (s *Server) handleCachingRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -90,12 +90,8 @@ func (s *Server) handleCachingRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -222,7 +218,7 @@ func (s *Server) handleDBRequest(args [0]string, argsEscaped bool, w http.Respon s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -233,12 +229,8 @@ func (s *Server) handleDBRequest(args [0]string, argsEscaped bool, w http.Respon // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -347,7 +339,7 @@ func (s *Server) handleJSONRequest(args [0]string, argsEscaped bool, w http.Resp s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -358,12 +350,8 @@ func (s *Server) handleJSONRequest(args [0]string, argsEscaped bool, w http.Resp // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -473,7 +461,7 @@ func (s *Server) handleQueriesRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -484,12 +472,8 @@ func (s *Server) handleQueriesRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -617,7 +601,7 @@ func (s *Server) handleUpdatesRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -628,12 +612,8 @@ func (s *Server) handleUpdatesRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_allof/oas_client_gen.go b/internal/integration/test_allof/oas_client_gen.go index f3cb43bf3..c3bddf271 100644 --- a/internal/integration/test_allof/oas_client_gen.go +++ b/internal/integration/test_allof/oas_client_gen.go @@ -165,7 +165,7 @@ func (c *Client) sendNullableStrings(ctx context.Context, request NilString) (re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -249,7 +249,7 @@ func (c *Client) sendObjectsWithConflictingArrayProperty(ctx context.Context, re defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -333,7 +333,7 @@ func (c *Client) sendObjectsWithConflictingProperties(ctx context.Context, reque defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -431,7 +431,7 @@ func (c *Client) sendReferencedAllof(ctx context.Context, request ReferencedAllo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -531,7 +531,7 @@ func (c *Client) sendReferencedAllofOptional(ctx context.Context, request Refere defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -624,7 +624,7 @@ func (c *Client) sendSimpleInteger(ctx context.Context, request int) (res *Simpl defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -699,7 +699,7 @@ func (c *Client) sendSimpleObjects(ctx context.Context, request *SimpleObjectsRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -796,7 +796,7 @@ func (c *Client) sendStringsNotype(ctx context.Context, request NilString) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_allof/oas_handlers_gen.go b/internal/integration/test_allof/oas_handlers_gen.go index bf6f24c9f..f267205fe 100644 --- a/internal/integration/test_allof/oas_handlers_gen.go +++ b/internal/integration/test_allof/oas_handlers_gen.go @@ -74,7 +74,7 @@ func (s *Server) handleNullableStringsRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -85,12 +85,8 @@ func (s *Server) handleNullableStringsRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -216,7 +212,7 @@ func (s *Server) handleObjectsWithConflictingArrayPropertyRequest(args [0]string s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -227,12 +223,8 @@ func (s *Server) handleObjectsWithConflictingArrayPropertyRequest(args [0]string // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -358,7 +350,7 @@ func (s *Server) handleObjectsWithConflictingPropertiesRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -369,12 +361,8 @@ func (s *Server) handleObjectsWithConflictingPropertiesRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -500,7 +488,7 @@ func (s *Server) handleReferencedAllofRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -511,12 +499,8 @@ func (s *Server) handleReferencedAllofRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -642,7 +626,7 @@ func (s *Server) handleReferencedAllofOptionalRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -653,12 +637,8 @@ func (s *Server) handleReferencedAllofOptionalRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -784,7 +764,7 @@ func (s *Server) handleSimpleIntegerRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -795,12 +775,8 @@ func (s *Server) handleSimpleIntegerRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -926,7 +902,7 @@ func (s *Server) handleSimpleObjectsRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -937,12 +913,8 @@ func (s *Server) handleSimpleObjectsRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1066,7 +1038,7 @@ func (s *Server) handleStringsNotypeRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1077,12 +1049,8 @@ func (s *Server) handleStringsNotypeRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_anyof/oas_client_gen.go b/internal/integration/test_anyof/oas_client_gen.go index 318bdae66..24be4f242 100644 --- a/internal/integration/test_anyof/oas_client_gen.go +++ b/internal/integration/test_anyof/oas_client_gen.go @@ -104,7 +104,7 @@ func (c *Client) sendIntegerNumber(ctx context.Context) (res *IntegerNumber, err defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -174,7 +174,7 @@ func (c *Client) sendJaegerAnyOf(ctx context.Context) (res *JaegerAnyOf, err err defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -244,7 +244,7 @@ func (c *Client) sendOneUUID(ctx context.Context) (res *OneUUID, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_anyof/oas_handlers_gen.go b/internal/integration/test_anyof/oas_handlers_gen.go index 0ed1f0961..bb022f67c 100644 --- a/internal/integration/test_anyof/oas_handlers_gen.go +++ b/internal/integration/test_anyof/oas_handlers_gen.go @@ -71,7 +71,7 @@ func (s *Server) handleIntegerNumberRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82,12 +82,8 @@ func (s *Server) handleIntegerNumberRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -192,7 +188,7 @@ func (s *Server) handleJaegerAnyOfRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -203,12 +199,8 @@ func (s *Server) handleJaegerAnyOfRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -313,7 +305,7 @@ func (s *Server) handleOneUUIDRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -324,12 +316,8 @@ func (s *Server) handleOneUUIDRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_enum_naming/oas_client_gen.go b/internal/integration/test_enum_naming/oas_client_gen.go index 075ea1f02..276c222a4 100644 --- a/internal/integration/test_enum_naming/oas_client_gen.go +++ b/internal/integration/test_enum_naming/oas_client_gen.go @@ -100,7 +100,7 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res *ProbeLivenessOK, e defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_enum_naming/oas_handlers_gen.go b/internal/integration/test_enum_naming/oas_handlers_gen.go index 4f76395d8..0bb94d333 100644 --- a/internal/integration/test_enum_naming/oas_handlers_gen.go +++ b/internal/integration/test_enum_naming/oas_handlers_gen.go @@ -73,7 +73,7 @@ func (s *Server) handleProbeLivenessRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84,12 +84,8 @@ func (s *Server) handleProbeLivenessRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_form/oas_client_gen.go b/internal/integration/test_form/oas_client_gen.go index 9c4c825c3..3c97e93f7 100644 --- a/internal/integration/test_form/oas_client_gen.go +++ b/internal/integration/test_form/oas_client_gen.go @@ -128,7 +128,7 @@ func (c *Client) sendOnlyForm(ctx context.Context, request *OnlyFormReq) (res *O defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -201,7 +201,7 @@ func (c *Client) sendOnlyMultipartFile(ctx context.Context, request *OnlyMultipa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -274,7 +274,7 @@ func (c *Client) sendOnlyMultipartForm(ctx context.Context, request *OnlyMultipa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -347,7 +347,7 @@ func (c *Client) sendTestFormURLEncoded(ctx context.Context, request *TestForm) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -420,7 +420,7 @@ func (c *Client) sendTestMultipart(ctx context.Context, request *TestFormMultipa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -493,7 +493,7 @@ func (c *Client) sendTestMultipartUpload(ctx context.Context, request *TestMulti defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -566,7 +566,7 @@ func (c *Client) sendTestReuseFormOptionalSchema(ctx context.Context, request Op defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -639,7 +639,7 @@ func (c *Client) sendTestReuseFormSchema(ctx context.Context, request *SharedReq defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -712,7 +712,7 @@ func (c *Client) sendTestShareFormSchema(ctx context.Context, request TestShareF defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_form/oas_handlers_gen.go b/internal/integration/test_form/oas_handlers_gen.go index 81ef89dba..c44cd95a4 100644 --- a/internal/integration/test_form/oas_handlers_gen.go +++ b/internal/integration/test_form/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handleOnlyFormRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handleOnlyFormRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -212,7 +208,7 @@ func (s *Server) handleOnlyMultipartFileRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -223,12 +219,8 @@ func (s *Server) handleOnlyMultipartFileRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -352,7 +344,7 @@ func (s *Server) handleOnlyMultipartFormRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -363,12 +355,8 @@ func (s *Server) handleOnlyMultipartFormRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -492,7 +480,7 @@ func (s *Server) handleTestFormURLEncodedRequest(args [0]string, argsEscaped boo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -503,12 +491,8 @@ func (s *Server) handleTestFormURLEncodedRequest(args [0]string, argsEscaped boo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -632,7 +616,7 @@ func (s *Server) handleTestMultipartRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -643,12 +627,8 @@ func (s *Server) handleTestMultipartRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -772,7 +752,7 @@ func (s *Server) handleTestMultipartUploadRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -783,12 +763,8 @@ func (s *Server) handleTestMultipartUploadRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -912,7 +888,7 @@ func (s *Server) handleTestReuseFormOptionalSchemaRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -923,12 +899,8 @@ func (s *Server) handleTestReuseFormOptionalSchemaRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1052,7 +1024,7 @@ func (s *Server) handleTestReuseFormSchemaRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1063,12 +1035,8 @@ func (s *Server) handleTestReuseFormSchemaRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1192,7 +1160,7 @@ func (s *Server) handleTestShareFormSchemaRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1203,12 +1171,8 @@ func (s *Server) handleTestShareFormSchemaRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_http_requests/oas_client_gen.go b/internal/integration/test_http_requests/oas_client_gen.go index 97473c0c4..cf1190b4b 100644 --- a/internal/integration/test_http_requests/oas_client_gen.go +++ b/internal/integration/test_http_requests/oas_client_gen.go @@ -116,7 +116,7 @@ func (c *Client) sendAllRequestBodies(ctx context.Context, request AllRequestBod defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -189,7 +189,7 @@ func (c *Client) sendAllRequestBodiesOptional(ctx context.Context, request AllRe defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -262,7 +262,7 @@ func (c *Client) sendBase64Request(ctx context.Context, request Base64RequestReq defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -335,7 +335,7 @@ func (c *Client) sendMaskContentType(ctx context.Context, request *MaskContentTy defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -408,7 +408,7 @@ func (c *Client) sendMaskContentTypeOptional(ctx context.Context, request *MaskC defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -481,7 +481,7 @@ func (c *Client) sendStreamJSON(ctx context.Context, request []float64) (res flo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_http_requests/oas_handlers_gen.go b/internal/integration/test_http_requests/oas_handlers_gen.go index 0a8e4f59a..9605bbb74 100644 --- a/internal/integration/test_http_requests/oas_handlers_gen.go +++ b/internal/integration/test_http_requests/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handleAllRequestBodiesRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handleAllRequestBodiesRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -212,7 +208,7 @@ func (s *Server) handleAllRequestBodiesOptionalRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -223,12 +219,8 @@ func (s *Server) handleAllRequestBodiesOptionalRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -352,7 +344,7 @@ func (s *Server) handleBase64RequestRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -363,12 +355,8 @@ func (s *Server) handleBase64RequestRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -492,7 +480,7 @@ func (s *Server) handleMaskContentTypeRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -503,12 +491,8 @@ func (s *Server) handleMaskContentTypeRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -632,7 +616,7 @@ func (s *Server) handleMaskContentTypeOptionalRequest(args [0]string, argsEscape s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -643,12 +627,8 @@ func (s *Server) handleMaskContentTypeOptionalRequest(args [0]string, argsEscape // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -772,7 +752,7 @@ func (s *Server) handleStreamJSONRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -783,12 +763,8 @@ func (s *Server) handleStreamJSONRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_http_responses/oas_client_gen.go b/internal/integration/test_http_responses/oas_client_gen.go index 151a800fd..731b6b55a 100644 --- a/internal/integration/test_http_responses/oas_client_gen.go +++ b/internal/integration/test_http_responses/oas_client_gen.go @@ -158,7 +158,7 @@ func (c *Client) sendAnyContentTypeBinaryStringSchema(ctx context.Context) (res defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -228,7 +228,7 @@ func (c *Client) sendAnyContentTypeBinaryStringSchemaDefault(ctx context.Context defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -298,7 +298,7 @@ func (c *Client) sendCombined(ctx context.Context, params CombinedParams) (res C defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -386,7 +386,7 @@ func (c *Client) sendHeaders200(ctx context.Context) (res *Headers200OK, err err defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -456,7 +456,7 @@ func (c *Client) sendHeadersCombined(ctx context.Context, params HeadersCombined defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -544,7 +544,7 @@ func (c *Client) sendHeadersDefault(ctx context.Context) (res *HeadersDefaultDef defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -614,7 +614,7 @@ func (c *Client) sendHeadersJSON(ctx context.Context) (res *HeadersJSONOK, err e defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -684,7 +684,7 @@ func (c *Client) sendHeadersPattern(ctx context.Context) (res *HeadersPattern4XX defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -757,7 +757,7 @@ func (c *Client) sendIntersectPatternCode(ctx context.Context, params IntersectP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -845,7 +845,7 @@ func (c *Client) sendMultipleGenericResponses(ctx context.Context) (res Multiple defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -915,7 +915,7 @@ func (c *Client) sendOctetStreamBinaryStringSchema(ctx context.Context) (res Oct defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -985,7 +985,7 @@ func (c *Client) sendOctetStreamEmptySchema(ctx context.Context) (res OctetStrea defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1057,7 +1057,7 @@ func (c *Client) sendOptionalHeaders(ctx context.Context) (res *OptionalHeadersO defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1127,7 +1127,7 @@ func (c *Client) sendStreamJSON(ctx context.Context, params StreamJSONParams) (r defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1215,7 +1215,7 @@ func (c *Client) sendTextPlainBinaryStringSchema(ctx context.Context) (res TextP defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_http_responses/oas_handlers_gen.go b/internal/integration/test_http_responses/oas_handlers_gen.go index 9ef17b045..d44a00c3d 100644 --- a/internal/integration/test_http_responses/oas_handlers_gen.go +++ b/internal/integration/test_http_responses/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handleAnyContentTypeBinaryStringSchemaRequest(args [0]string, a s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handleAnyContentTypeBinaryStringSchemaRequest(args [0]string, a // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -193,7 +189,7 @@ func (s *Server) handleAnyContentTypeBinaryStringSchemaDefaultRequest(args [0]st s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -204,12 +200,8 @@ func (s *Server) handleAnyContentTypeBinaryStringSchemaDefaultRequest(args [0]st // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -314,7 +306,7 @@ func (s *Server) handleCombinedRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -325,12 +317,8 @@ func (s *Server) handleCombinedRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -454,7 +442,7 @@ func (s *Server) handleHeaders200Request(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -465,12 +453,8 @@ func (s *Server) handleHeaders200Request(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -575,7 +559,7 @@ func (s *Server) handleHeadersCombinedRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -586,12 +570,8 @@ func (s *Server) handleHeadersCombinedRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -715,7 +695,7 @@ func (s *Server) handleHeadersDefaultRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -726,12 +706,8 @@ func (s *Server) handleHeadersDefaultRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -836,7 +812,7 @@ func (s *Server) handleHeadersJSONRequest(args [0]string, argsEscaped bool, w ht s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -847,12 +823,8 @@ func (s *Server) handleHeadersJSONRequest(args [0]string, argsEscaped bool, w ht // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -957,7 +929,7 @@ func (s *Server) handleHeadersPatternRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -968,12 +940,8 @@ func (s *Server) handleHeadersPatternRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1081,7 +1049,7 @@ func (s *Server) handleIntersectPatternCodeRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1092,12 +1060,8 @@ func (s *Server) handleIntersectPatternCodeRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1221,7 +1185,7 @@ func (s *Server) handleMultipleGenericResponsesRequest(args [0]string, argsEscap s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1232,12 +1196,8 @@ func (s *Server) handleMultipleGenericResponsesRequest(args [0]string, argsEscap // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1342,7 +1302,7 @@ func (s *Server) handleOctetStreamBinaryStringSchemaRequest(args [0]string, args s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1353,12 +1313,8 @@ func (s *Server) handleOctetStreamBinaryStringSchemaRequest(args [0]string, args // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1463,7 +1419,7 @@ func (s *Server) handleOctetStreamEmptySchemaRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1474,12 +1430,8 @@ func (s *Server) handleOctetStreamEmptySchemaRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1586,7 +1538,7 @@ func (s *Server) handleOptionalHeadersRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1597,12 +1549,8 @@ func (s *Server) handleOptionalHeadersRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1707,7 +1655,7 @@ func (s *Server) handleStreamJSONRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1718,12 +1666,8 @@ func (s *Server) handleStreamJSONRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1847,7 +1791,7 @@ func (s *Server) handleTextPlainBinaryStringSchemaRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1858,12 +1802,8 @@ func (s *Server) handleTextPlainBinaryStringSchemaRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_issue1161/oas_client_gen.go b/internal/integration/test_issue1161/oas_client_gen.go index f3750f59c..7c21da671 100644 --- a/internal/integration/test_issue1161/oas_client_gen.go +++ b/internal/integration/test_issue1161/oas_client_gen.go @@ -103,7 +103,7 @@ func (c *Client) sendFooBarBazGet(ctx context.Context) (res string, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -172,7 +172,7 @@ func (c *Client) sendFooBarQuxGet(ctx context.Context) (res string, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -241,7 +241,7 @@ func (c *Client) sendFooParamXyzGet(ctx context.Context, params FooParamXyzGetPa defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_issue1161/oas_handlers_gen.go b/internal/integration/test_issue1161/oas_handlers_gen.go index e0724239e..85d09e4ef 100644 --- a/internal/integration/test_issue1161/oas_handlers_gen.go +++ b/internal/integration/test_issue1161/oas_handlers_gen.go @@ -70,7 +70,7 @@ func (s *Server) handleFooBarBazGetRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -81,12 +81,8 @@ func (s *Server) handleFooBarBazGetRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -190,7 +186,7 @@ func (s *Server) handleFooBarQuxGetRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -201,12 +197,8 @@ func (s *Server) handleFooBarQuxGetRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -310,7 +302,7 @@ func (s *Server) handleFooParamXyzGetRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -321,12 +313,8 @@ func (s *Server) handleFooParamXyzGetRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_naming_extensions/oas_client_gen.go b/internal/integration/test_naming_extensions/oas_client_gen.go index 442fe863f..58a10e10c 100644 --- a/internal/integration/test_naming_extensions/oas_client_gen.go +++ b/internal/integration/test_naming_extensions/oas_client_gen.go @@ -94,7 +94,7 @@ func (c *Client) sendHealthzGet(ctx context.Context) (res *Person, err error) { defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_naming_extensions/oas_handlers_gen.go b/internal/integration/test_naming_extensions/oas_handlers_gen.go index ada01576f..6b495b32e 100644 --- a/internal/integration/test_naming_extensions/oas_handlers_gen.go +++ b/internal/integration/test_naming_extensions/oas_handlers_gen.go @@ -69,7 +69,7 @@ func (s *Server) handleHealthzGetRequest(args [0]string, argsEscaped bool, w htt s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -80,12 +80,8 @@ func (s *Server) handleHealthzGetRequest(args [0]string, argsEscaped bool, w htt // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_parameters/oas_client_gen.go b/internal/integration/test_parameters/oas_client_gen.go index 1eefea0bf..151badca3 100644 --- a/internal/integration/test_parameters/oas_client_gen.go +++ b/internal/integration/test_parameters/oas_client_gen.go @@ -143,7 +143,7 @@ func (c *Client) sendComplicatedParameterNameGet(ctx context.Context, params Com defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -287,7 +287,7 @@ func (c *Client) sendContentParameters(ctx context.Context, params ContentParame defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -441,7 +441,7 @@ func (c *Client) sendCookieParameter(ctx context.Context, params CookieParameter defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -529,7 +529,7 @@ func (c *Client) sendHeaderParameter(ctx context.Context, params HeaderParameter defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -613,7 +613,7 @@ func (c *Client) sendObjectCookieParameter(ctx context.Context, params ObjectCoo defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -699,7 +699,7 @@ func (c *Client) sendObjectQueryParameter(ctx context.Context, params ObjectQuer defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -807,7 +807,7 @@ func (c *Client) sendOptionalArrayParameter(ctx context.Context, params Optional defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -935,7 +935,7 @@ func (c *Client) sendPathParameter(ctx context.Context, params PathParameterPara defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1025,7 +1025,7 @@ func (c *Client) sendSameName(ctx context.Context, params SameNameParams) (res * defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -1133,7 +1133,7 @@ func (c *Client) sendSimilarNames(ctx context.Context, params SimilarNamesParams defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_parameters/oas_handlers_gen.go b/internal/integration/test_parameters/oas_handlers_gen.go index 4ef00961f..d12ce93ee 100644 --- a/internal/integration/test_parameters/oas_handlers_gen.go +++ b/internal/integration/test_parameters/oas_handlers_gen.go @@ -71,7 +71,7 @@ func (s *Server) handleComplicatedParameterNameGetRequest(args [0]string, argsEs s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -82,12 +82,8 @@ func (s *Server) handleComplicatedParameterNameGetRequest(args [0]string, argsEs // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -227,7 +223,7 @@ func (s *Server) handleContentParametersRequest(args [1]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -238,12 +234,8 @@ func (s *Server) handleContentParametersRequest(args [1]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -381,7 +373,7 @@ func (s *Server) handleCookieParameterRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -392,12 +384,8 @@ func (s *Server) handleCookieParameterRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -523,7 +511,7 @@ func (s *Server) handleHeaderParameterRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -534,12 +522,8 @@ func (s *Server) handleHeaderParameterRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -663,7 +647,7 @@ func (s *Server) handleObjectCookieParameterRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -674,12 +658,8 @@ func (s *Server) handleObjectCookieParameterRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -803,7 +783,7 @@ func (s *Server) handleObjectQueryParameterRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -814,12 +794,8 @@ func (s *Server) handleObjectQueryParameterRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -947,7 +923,7 @@ func (s *Server) handleOptionalArrayParameterRequest(args [0]string, argsEscaped s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -958,12 +934,8 @@ func (s *Server) handleOptionalArrayParameterRequest(args [0]string, argsEscaped // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1093,7 +1065,7 @@ func (s *Server) handlePathParameterRequest(args [1]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1104,12 +1076,8 @@ func (s *Server) handlePathParameterRequest(args [1]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1235,7 +1203,7 @@ func (s *Server) handleSameNameRequest(args [1]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1246,12 +1214,8 @@ func (s *Server) handleSameNameRequest(args [1]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -1381,7 +1345,7 @@ func (s *Server) handleSimilarNamesRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -1392,12 +1356,8 @@ func (s *Server) handleSimilarNamesRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_security/oas_client_gen.go b/internal/integration/test_security/oas_client_gen.go index 7f936e14d..2acd95e2f 100644 --- a/internal/integration/test_security/oas_client_gen.go +++ b/internal/integration/test_security/oas_client_gen.go @@ -111,7 +111,7 @@ func (c *Client) sendCustomSecurity(ctx context.Context) (res *CustomSecurityOK, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -214,7 +214,7 @@ func (c *Client) sendDisjointSecurity(ctx context.Context) (res *DisjointSecurit defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -351,7 +351,7 @@ func (c *Client) sendIntersectSecurity(ctx context.Context) (res *IntersectSecur defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -477,7 +477,7 @@ func (c *Client) sendOptionalSecurity(ctx context.Context) (res *OptionalSecurit defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_security/oas_handlers_gen.go b/internal/integration/test_security/oas_handlers_gen.go index 6931e4777..520e76643 100644 --- a/internal/integration/test_security/oas_handlers_gen.go +++ b/internal/integration/test_security/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handleCustomSecurityRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handleCustomSecurityRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -241,7 +237,7 @@ func (s *Server) handleDisjointSecurityRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -252,12 +248,8 @@ func (s *Server) handleDisjointSecurityRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -462,7 +454,7 @@ func (s *Server) handleIntersectSecurityRequest(args [0]string, argsEscaped bool s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -473,12 +465,8 @@ func (s *Server) handleIntersectSecurityRequest(args [0]string, argsEscaped bool // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -666,7 +654,7 @@ func (s *Server) handleOptionalSecurityRequest(args [0]string, argsEscaped bool, s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -677,12 +665,8 @@ func (s *Server) handleOptionalSecurityRequest(args [0]string, argsEscaped bool, // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_servers/oas_client_gen.go b/internal/integration/test_servers/oas_client_gen.go index 61307d0bc..24c06f025 100644 --- a/internal/integration/test_servers/oas_client_gen.go +++ b/internal/integration/test_servers/oas_client_gen.go @@ -104,7 +104,7 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res string, err error) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_servers/oas_handlers_gen.go b/internal/integration/test_servers/oas_handlers_gen.go index cc0e88b32..302456dd7 100644 --- a/internal/integration/test_servers/oas_handlers_gen.go +++ b/internal/integration/test_servers/oas_handlers_gen.go @@ -73,7 +73,7 @@ func (s *Server) handleProbeLivenessRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84,12 +84,8 @@ func (s *Server) handleProbeLivenessRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_single_endpoint/oas_client_gen.go b/internal/integration/test_single_endpoint/oas_client_gen.go index 61307d0bc..24c06f025 100644 --- a/internal/integration/test_single_endpoint/oas_client_gen.go +++ b/internal/integration/test_single_endpoint/oas_client_gen.go @@ -104,7 +104,7 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res string, err error) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_single_endpoint/oas_handlers_gen.go b/internal/integration/test_single_endpoint/oas_handlers_gen.go index cc0e88b32..302456dd7 100644 --- a/internal/integration/test_single_endpoint/oas_handlers_gen.go +++ b/internal/integration/test_single_endpoint/oas_handlers_gen.go @@ -73,7 +73,7 @@ func (s *Server) handleProbeLivenessRequest(args [0]string, argsEscaped bool, w s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -84,12 +84,8 @@ func (s *Server) handleProbeLivenessRequest(args [0]string, argsEscaped bool, w // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_time_extension/oas_client_gen.go b/internal/integration/test_time_extension/oas_client_gen.go index 5a6b91db7..10b55e9f9 100644 --- a/internal/integration/test_time_extension/oas_client_gen.go +++ b/internal/integration/test_time_extension/oas_client_gen.go @@ -100,7 +100,7 @@ func (c *Client) sendDefault(ctx context.Context, params DefaultParams) (res *De defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -225,7 +225,7 @@ func (c *Client) sendRequired(ctx context.Context, params RequiredParams) (res * defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_time_extension/oas_handlers_gen.go b/internal/integration/test_time_extension/oas_handlers_gen.go index b7d1e552a..2e9de9565 100644 --- a/internal/integration/test_time_extension/oas_handlers_gen.go +++ b/internal/integration/test_time_extension/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handleDefaultRequest(args [0]string, argsEscaped bool, w http.R s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handleDefaultRequest(args [0]string, argsEscaped bool, w http.R // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -220,7 +216,7 @@ func (s *Server) handleRequiredRequest(args [0]string, argsEscaped bool, w http. s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -231,12 +227,8 @@ func (s *Server) handleRequiredRequest(args [0]string, argsEscaped bool, w http. // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } diff --git a/internal/integration/test_webhooks/oas_client_gen.go b/internal/integration/test_webhooks/oas_client_gen.go index 7263e7ff4..b6b154ab5 100644 --- a/internal/integration/test_webhooks/oas_client_gen.go +++ b/internal/integration/test_webhooks/oas_client_gen.go @@ -101,7 +101,7 @@ func (c *Client) sendPublishEvent(ctx context.Context, request OptEvent) (res *E defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -187,7 +187,7 @@ func (c *WebhookClient) sendStatusWebhook(ctx context.Context, targetURL string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -254,7 +254,7 @@ func (c *WebhookClient) sendUpdateDelete(ctx context.Context, targetURL string) defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. @@ -322,7 +322,7 @@ func (c *WebhookClient) sendUpdateWebhook(ctx context.Context, targetURL string, defer func() { // Use floating point division here for higher precision (instead of Millisecond method). elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), metric.WithAttributes(otelAttrs...)) + c.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. diff --git a/internal/integration/test_webhooks/oas_handlers_gen.go b/internal/integration/test_webhooks/oas_handlers_gen.go index dd6a712ce..f45a32110 100644 --- a/internal/integration/test_webhooks/oas_handlers_gen.go +++ b/internal/integration/test_webhooks/oas_handlers_gen.go @@ -72,7 +72,7 @@ func (s *Server) handlePublishEventRequest(args [0]string, argsEscaped bool, w h s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -83,12 +83,8 @@ func (s *Server) handlePublishEventRequest(args [0]string, argsEscaped bool, w h // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -220,7 +216,7 @@ func (s *WebhookServer) handleStatusWebhookRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -231,12 +227,8 @@ func (s *WebhookServer) handleStatusWebhookRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -337,7 +329,7 @@ func (s *WebhookServer) handleUpdateDeleteRequest(args [0]string, argsEscaped bo s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -348,12 +340,8 @@ func (s *WebhookServer) handleUpdateDeleteRequest(args [0]string, argsEscaped bo // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) } @@ -455,7 +443,7 @@ func (s *WebhookServer) handleUpdateWebhookRequest(args [0]string, argsEscaped b s.requests.Add(ctx, 1, attrOpt) // Use floating point division here for higher precision (instead of Millisecond method). - s.duration.Record(ctx, float64(float64(elapsedDuration)/float64(time.Millisecond)), attrOpt) + s.duration.Record(ctx, float64(elapsedDuration)/float64(time.Millisecond), attrOpt) }() var ( @@ -466,12 +454,8 @@ func (s *WebhookServer) handleUpdateWebhookRequest(args [0]string, argsEscaped b // Span Status MUST be left unset if HTTP status code was in the 1xx, 2xx or 3xx ranges, // unless there was another error (e.g., network error receiving the response body; or 3xx codes with // max redirects exceeded), in which case status MUST be set to Error. - setStatus := true code := statusWriter.status - if code >= 100 && code < 400 { - setStatus = false - } - if setStatus { + if code >= 100 && code < 500 { span.SetStatus(codes.Error, stage) }